react-grid-layout 1.3.0 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc.js +3 -2
- package/.eslintignore +3 -0
- package/.flowconfig +2 -1
- package/.prettierignore +1 -0
- package/CHANGELOG.md +377 -262
- package/README.md +73 -51
- package/build/GridItem.js +7 -7
- package/build/ReactGridLayout.js +14 -10
- package/build/ReactGridLayoutPropTypes.js +1 -1
- package/build/ResponsiveReactGridLayout.js +5 -5
- package/build/calculateUtils.js +2 -2
- package/build/components/WidthProvider.js +8 -8
- package/build/responsiveUtils.js +1 -1
- package/build/utils.js +31 -33
- package/dist/react-grid-layout.min.js +1 -2
- package/dist/react-grid-layout.min.js.map +1 -1
- package/index.js +4 -2
- package/lib/GridItem.jsx +10 -5
- package/lib/ReactGridLayout.jsx +13 -6
- package/lib/components/WidthProvider.jsx +2 -2
- package/lib/utils.js +27 -32
- package/package.json +42 -30
- package/dist/react-grid-layout.min.js.LICENSE.txt +0 -5
- package/foo.html +0 -388
package/CHANGELOG.md
CHANGED
|
@@ -1,69 +1,98 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
1.3.
|
|
4
|
-
|
|
3
|
+
## 1.3.3 (Jan 24, 2022)
|
|
4
|
+
|
|
5
|
+
This was a quick release to improve package size and dependency use. Thanks @salvoravida [#1655](https://github.com/react-grid-layout/react-grid-layout/pull/1655)
|
|
6
|
+
|
|
7
|
+
### Bugfixes
|
|
8
|
+
|
|
9
|
+
- Removed `coverage/` folder from npm package to save size
|
|
10
|
+
- Moved eslint parser to `devDependencies`
|
|
11
|
+
|
|
12
|
+
## 1.3.2 (Jan 24, 2022)
|
|
13
|
+
|
|
14
|
+
### Internal Changes
|
|
15
|
+
|
|
16
|
+
- Package size reduced by ~30% by removing source in `dist/` source maps.
|
|
17
|
+
- Various tests added (thanks @imagineLife!)
|
|
18
|
+
- New GitHub Actions flow for PRs
|
|
19
|
+
|
|
20
|
+
## 1.3.1 (Nov 29, 2021)
|
|
21
|
+
|
|
22
|
+
### Bugfixes
|
|
23
|
+
|
|
24
|
+
- Fix `allowOverlap` not firing `onLayoutChange()`. [#1620](https://github.com/react-grid-layout/react-grid-layout/pull/1620)
|
|
25
|
+
- This was due to a short-circuiting of internal logic that did not properly clone the `layout` prop.
|
|
26
|
+
|
|
27
|
+
### Internal Changes
|
|
28
|
+
|
|
29
|
+
- Replace `classnames` with `clsx` for smaller package size. (#1543)
|
|
30
|
+
|
|
31
|
+
## 1.3.0 (Aug 27, 2021)
|
|
5
32
|
|
|
6
33
|
### New Features
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
34
|
+
|
|
35
|
+
- `allowOverlap` prop, when `true`, allows overlapping grid items. [#1470](https://github.com/react-grid-layout/react-grid-layout/pull/1470)
|
|
36
|
+
- Add `onDropDragOver` callback. [#1395](https://github.com/react-grid-layout/react-grid-layout/pull/1395)
|
|
37
|
+
- Use this callback to dynamically adjust the `droppingItem` based on what is being dragged over. Return `w` and `h` to adjust the item. It is then [spread into the dropping placeholder](https://github.com/react-grid-layout/react-grid-layout/pull/1395/files#diff-83ab569936bfd4bf0460a4f23653ecbe8bc88509062c95e75c9402218b2b8733R609).
|
|
38
|
+
- This callback has the type:
|
|
39
|
+
- `onDragOver: (e: DragOverEvent) => { w: number, h: number } | false;`
|
|
40
|
+
- Return `false` to short-circuit the dragover.
|
|
13
41
|
|
|
14
42
|
### Bugfixes
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
43
|
+
|
|
44
|
+
- Remove sorting when `compactType` is `null`. [#1474](https://github.com/react-grid-layout/react-grid-layout/pull/1474)
|
|
45
|
+
- Droppable fixes for Chrome behavior. [#1442](https://github.com/react-grid-layout/react-grid-layout/issues/1442) [#1448](https://github.com/react-grid-layout/react-grid-layout/issues/1442)
|
|
46
|
+
- Allow `null` children as a convenience so that inline expressions don't break the library. [#1296](https://github.com/react-grid-layout/react-grid-layout/pull/1296)
|
|
47
|
+
- Various dependency upgrades.
|
|
19
48
|
|
|
20
49
|
### Documentation
|
|
21
|
-
- Add docs on using custom components as grid children.
|
|
22
|
-
- Note required class on resizable handles for proper styling.
|
|
23
50
|
|
|
51
|
+
- Add docs on using custom components as grid children.
|
|
52
|
+
- Note required class on resizable handles for proper styling.
|
|
24
53
|
|
|
25
|
-
1.2.5 (May 10, 2021)
|
|
26
|
-
---
|
|
54
|
+
## 1.2.5 (May 10, 2021)
|
|
27
55
|
|
|
28
56
|
### Bugfixes
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
57
|
+
|
|
58
|
+
- Ensure no negative positions are possible when compacting
|
|
59
|
+
- Thanks @DonnyLi [#829](https://github.com/react-grid-layout/react-grid-layout/pull/829)
|
|
60
|
+
- Fixes [#535](https://github.com/react-grid-layout/react-grid-layout/issues/535)
|
|
61
|
+
- Fix resizing on mobile. This was caused by the `ref` refactor to remove ReactDOM in 1.2.3.
|
|
62
|
+
- Fixes #[1458](https://github.com/react-grid-layout/react-grid-layout/issues/1458)
|
|
63
|
+
- Note: this upgrades `react-resizable` to `3.0.1`, which like our other deps, is only compatible with `React@>=16.3`.
|
|
35
64
|
|
|
36
65
|
### Documentation
|
|
37
|
-
- Document new arity of `resizeHandle` (`(axis: ResizeHandleAxis, ref: ReactRef<HTMLElement>) => React$Element`)
|
|
38
|
-
- Remove references to the deprecated `verticalCompact` prop
|
|
39
66
|
|
|
40
|
-
|
|
41
|
-
|
|
67
|
+
- Document new arity of `resizeHandle` (`(axis: ResizeHandleAxis, ref: ReactRef<HTMLElement>) => React$Element`)
|
|
68
|
+
- Remove references to the deprecated `verticalCompact` prop
|
|
42
69
|
|
|
43
|
-
|
|
70
|
+
## 1.2.4 (Mar 18, 2021)
|
|
71
|
+
|
|
72
|
+
_This version fixes a serious render bug in `<WidthProvider>`. 1.2.3 should not be used._
|
|
44
73
|
|
|
45
74
|
### Bugfixes
|
|
46
|
-
- Fix failure to mount when layout is WidthProvider-wrapped and `measureBeforeMount` is `true`.
|
|
47
|
-
- Ref: [#1428](https://github.com/react-grid-layout/react-grid-layout/issues/1428)
|
|
48
|
-
- `<WidthProvider>` no longer updates grid with if it has been set to 0. This prevents unnecessary updates
|
|
49
|
-
if the grid is set to `display: none;`. Thanks @405go [#1427](https://github.com/react-grid-layout/react-grid-layout/pull/1427)
|
|
50
75
|
|
|
51
|
-
|
|
52
|
-
|
|
76
|
+
- Fix failure to mount when layout is WidthProvider-wrapped and `measureBeforeMount` is `true`.
|
|
77
|
+
- Ref: [#1428](https://github.com/react-grid-layout/react-grid-layout/issues/1428)
|
|
78
|
+
- `<WidthProvider>` no longer updates grid with if it has been set to 0. This prevents unnecessary updates
|
|
79
|
+
if the grid is set to `display: none;`. Thanks @405go [#1427](https://github.com/react-grid-layout/react-grid-layout/pull/1427)
|
|
80
|
+
|
|
81
|
+
## 1.2.3 (Mar 16, 2021)
|
|
53
82
|
|
|
54
83
|
### New Features
|
|
55
|
-
- React-Grid-Layout is now fully compatible with `<React.StrictMode>`.
|
|
56
|
-
- Usage of `ReactDOM` has been removed by using `React.createRef()` inside RGL, and the new [`nodeRef` prop](https://github.com/react-grid-layout/react-draggable/blob/master/CHANGELOG.md#440-may-12-2020) in `react-draggable`.
|
|
57
84
|
|
|
58
|
-
|
|
59
|
-
|
|
85
|
+
- React-Grid-Layout is now fully compatible with `<React.StrictMode>`.
|
|
86
|
+
- Usage of `ReactDOM` has been removed by using `React.createRef()` inside RGL, and the new [`nodeRef` prop](https://github.com/react-grid-layout/react-draggable/blob/master/CHANGELOG.md#440-may-12-2020) in `react-draggable`.
|
|
87
|
+
|
|
88
|
+
## 1.2.2 (Mar 1, 2021)
|
|
60
89
|
|
|
61
90
|
### Bugfixes
|
|
62
|
-
- `onResize` as changed in 1.2.1 did not correctly save the layout. This is now fixed.
|
|
63
|
-
- As you might guess, we need more test coverage! PRs are very welcome, I'll buy you beers on Cashapp or Patreon or whatever you like.
|
|
64
91
|
|
|
65
|
-
1.2.1
|
|
66
|
-
|
|
92
|
+
- `onResize` as changed in 1.2.1 did not correctly save the layout. This is now fixed.
|
|
93
|
+
- As you might guess, we need more test coverage! PRs are very welcome, I'll buy you beers on Cashapp or Patreon or whatever you like.
|
|
94
|
+
|
|
95
|
+
## 1.2.1 (Mar 1, 2021)
|
|
67
96
|
|
|
68
97
|
## Organization Changes
|
|
69
98
|
|
|
@@ -73,107 +102,117 @@ We have created the [React-Grid-Layout Organization](https://github.com/react-gr
|
|
|
73
102
|
This organization will grow as time goes on, and also contains the dependencies of RGL.
|
|
74
103
|
|
|
75
104
|
### Bugfixes
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
105
|
+
|
|
106
|
+
- Use `classList` in Firefox onDragOver hack. [#1310](https://github.com/STRML/react-grid-layout/pull/1310)
|
|
107
|
+
- Fix `scale` property. As `scale` support was added to dependencies, this caused double-compensation for scale, causing the dragged element not to follow the cursor. [#1393](https://github.com/STRML/react-grid-layout/pull/1393)
|
|
108
|
+
- Fix horizontal compact mode issue where it inadventently would compact the bottom of the grid. This is not useful nor intended. Thanks @s4m3. [#1390](https://github.com/STRML/react-grid-layout/pull/1390)
|
|
109
|
+
- Fix `onLayoutChange` sometimes not triggering on resize. We weren't cloning the layout item before modifying it. Thanks @xcqwan. [#1289](https://github.com/react-grid-layout/react-grid-layout/pull/1289)
|
|
80
110
|
|
|
81
111
|
### Internal Refactors
|
|
82
|
-
- Updated to the latest versions of all dependencies (enzyme, webpack, jest, flow).
|
|
83
|
-
- Held back React@17 as enzyme is [not yet ready](https://github.com/enzymejs/enzyme/issues/2429).
|
|
84
112
|
|
|
85
|
-
|
|
86
|
-
|
|
113
|
+
- Updated to the latest versions of all dependencies (enzyme, webpack, jest, flow).
|
|
114
|
+
- Held back React@17 as enzyme is [not yet ready](https://github.com/enzymejs/enzyme/issues/2429).
|
|
115
|
+
|
|
116
|
+
## 1.2.0 (Nov 17, 2020)
|
|
87
117
|
|
|
88
118
|
### New Features
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
119
|
+
|
|
120
|
+
- You can now customize your resizable handle component as supported by [`react-resizable`](https://github.com/STRML/react-resizable/blob/09fd865c0e1cc570caa8d67e44a2e56172d3d816/examples/ExampleLayout.js#L72). For example:
|
|
121
|
+
|
|
122
|
+
```js
|
|
123
|
+
<ReactGridLayout
|
|
124
|
+
resizeHandle={<span className="custom-handle custom-handle-se" />}
|
|
125
|
+
{...props}
|
|
126
|
+
/>
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Thanks @typeetfunc [#1303](https://github.com/STRML/react-grid-layout/pull/1303)
|
|
94
130
|
|
|
95
131
|
### Bugfixes
|
|
96
|
-
- Fix `onDrop` handler not firing on Firefox if you drop over the placeholder.
|
|
97
|
-
- Thanks @Charles-Lamoureux [#1333](https://github.com/STRML/react-grid-layout/pull/1333)
|
|
98
|
-
- Various example style fixes [#1283](https://github.com/STRML/react-grid-layout/pull/1283) [#1299](https://github.com/STRML/react-grid-layout/pull/1299)
|
|
99
132
|
|
|
100
|
-
|
|
101
|
-
|
|
133
|
+
- Fix `onDrop` handler not firing on Firefox if you drop over the placeholder.
|
|
134
|
+
- Thanks @Charles-Lamoureux [#1333](https://github.com/STRML/react-grid-layout/pull/1333)
|
|
135
|
+
- Various example style fixes [#1283](https://github.com/STRML/react-grid-layout/pull/1283) [#1299](https://github.com/STRML/react-grid-layout/pull/1299)
|
|
136
|
+
|
|
137
|
+
## 1.1.1 (Sep 10, 2020)
|
|
102
138
|
|
|
103
139
|
Republish to add `dist/` folder for unpkg use.
|
|
104
140
|
|
|
105
|
-
1.1.0 (Sep 3, 2020)
|
|
106
|
-
---
|
|
141
|
+
## 1.1.0 (Sep 3, 2020)
|
|
107
142
|
|
|
108
143
|
### New Features
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
-
|
|
144
|
+
|
|
145
|
+
- You can now place resizable handles on all corners. Use the `resizeHandles` prop, which is default `['se']` (for 'southeast').
|
|
146
|
+
- Allowable values are:
|
|
147
|
+
- 's' - South handle (bottom-center)
|
|
148
|
+
- 'w' - West handle (left-center)
|
|
149
|
+
- 'e' - East handle (right-center)
|
|
150
|
+
- 'n' - North handle (top-center)
|
|
151
|
+
- 'sw' - Southwest handle (bottom-left)
|
|
152
|
+
- 'nw' - Northwest handle (top-left)
|
|
153
|
+
- 'se' - Southeast handle (bottom-right)
|
|
154
|
+
- 'ne' - Northeast handle (top-right)
|
|
155
|
+
- These values may be combined, e.g. `['s', 'se', 'e']`, to place three handles on the bottom side, bottom-right corner, and right side.
|
|
120
156
|
|
|
121
157
|
### Bugfixes
|
|
122
|
-
- Revert `containerPadding` change in #1138. This change was meant to be types-only, but it caused a behavioral change where the default value of `containerPadding` became `[0, 0]`, not `margin`, which is default `[10, 10]`.
|
|
123
|
-
- Add a few more files to `npmignore` to improve package size.
|
|
124
158
|
|
|
125
|
-
|
|
126
|
-
|
|
159
|
+
- Revert `containerPadding` change in #1138. This change was meant to be types-only, but it caused a behavioral change where the default value of `containerPadding` became `[0, 0]`, not `margin`, which is default `[10, 10]`.
|
|
160
|
+
- Add a few more files to `npmignore` to improve package size.
|
|
161
|
+
|
|
162
|
+
## 1.0.0 (July 20, 2020)
|
|
127
163
|
|
|
128
164
|
React-Grid-Layout has been in `0.x` status for far too long. With the addition of some new features in this version and a breaking change, I thought it was time to move to a stable semver.
|
|
129
165
|
|
|
130
166
|
### Breaking Changes
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
-
|
|
167
|
+
|
|
168
|
+
- `onDrop` callback now has a form more consistent with other callbacks.
|
|
169
|
+
- Previous type: `(elemParams: { x: number, y: number, w: number, h: number, e: Event }) => void`
|
|
170
|
+
- New type: `(layout: Layout, item: ?LayoutItem, e: Event) => void`
|
|
171
|
+
- Thanks @ceberhar [#1169](https://github.com/STRML/react-grid-layout/pull/1169)
|
|
172
|
+
- Dropping Node 8 compatibility and testing due to devDep incompatibilities
|
|
136
173
|
|
|
137
174
|
### New Features
|
|
138
|
-
|
|
139
|
-
|
|
175
|
+
|
|
176
|
+
- Add `innerRef: React.Ref<'div'>` prop to expose a ref for the grid layout's outer div. Thanks @paul-sachs [#1176](https://github.com/STRML/react-grid-layout/pull/1176)
|
|
177
|
+
- Add `isBounded` property to prevent dragging items outside of the grid. Thanks @artembykov [#1248](https://github.com/STRML/react-grid-layout/pull/1248)
|
|
140
178
|
|
|
141
179
|
### Bugfixes
|
|
142
|
-
- Fix grid items stuck using percentages on first render. Thanks @rhbg [#1246](https://github.com/STRML/react-grid-layout/pull/1246)
|
|
143
180
|
|
|
144
|
-
|
|
145
|
-
|
|
181
|
+
- Fix grid items stuck using percentages on first render. Thanks @rhbg [#1246](https://github.com/STRML/react-grid-layout/pull/1246)
|
|
182
|
+
|
|
183
|
+
## 0.18.3 (Mar 16, 2020)
|
|
146
184
|
|
|
147
185
|
### Bugfixes
|
|
148
|
-
|
|
186
|
+
|
|
187
|
+
- Fix `shouldComponentUpdate` interfering with droppability ([#1152](https://github.com/STRML/react-grid-layout/issues/1152))
|
|
149
188
|
|
|
150
189
|
### Internal Changes
|
|
151
|
-
- New Enzyme test suite added to prevent regression. If you have time, we could really use more test cases that reflect your use cases!
|
|
152
190
|
|
|
153
|
-
|
|
154
|
-
|
|
191
|
+
- New Enzyme test suite added to prevent regression. If you have time, we could really use more test cases that reflect your use cases!
|
|
192
|
+
|
|
193
|
+
## 0.18.2 (Feb 26, 2020)
|
|
155
194
|
|
|
156
195
|
### Bugfixes
|
|
157
|
-
- `shouldComponentUpdate`:
|
|
158
|
-
- A too-aggressive implementation of `shouldComponentUpdate` was shipped in 0.18.0-0.18.1 ([#1123](https://github.com/STRML/react-grid-layout/pull/1123)), which did not compare the `children` object. While this works well in many simple implementations of RGL, it breaks in more complex applications.
|
|
159
|
-
- Reference equality of `props.children` and `nextProps.children` is now added to `<ReactGridLayout>` and `<GridItem>`. If you wish to take advantage of the performance improvements from the `shouldComponentUpdate` work, memoize your children.
|
|
160
|
-
- A section has been added to the [README](/README.md#Performance) explaining how this works.
|
|
161
|
-
- Fixed [#1150](https://github.com/STRML/react-grid-layout/issues/1150), [#1151](https://github.com/STRML/react-grid-layout/issues/1151).
|
|
162
196
|
|
|
163
|
-
|
|
164
|
-
|
|
197
|
+
- `shouldComponentUpdate`:
|
|
198
|
+
- A too-aggressive implementation of `shouldComponentUpdate` was shipped in 0.18.0-0.18.1 ([#1123](https://github.com/STRML/react-grid-layout/pull/1123)), which did not compare the `children` object. While this works well in many simple implementations of RGL, it breaks in more complex applications.
|
|
199
|
+
- Reference equality of `props.children` and `nextProps.children` is now added to `<ReactGridLayout>` and `<GridItem>`. If you wish to take advantage of the performance improvements from the `shouldComponentUpdate` work, memoize your children.
|
|
200
|
+
- A section has been added to the [README](/README.md#Performance) explaining how this works.
|
|
201
|
+
- Fixed [#1150](https://github.com/STRML/react-grid-layout/issues/1150), [#1151](https://github.com/STRML/react-grid-layout/issues/1151).
|
|
202
|
+
|
|
203
|
+
## 0.18.1 (Feb 25, 2020)
|
|
165
204
|
|
|
166
205
|
This release contains typedef changes only.
|
|
167
206
|
|
|
168
207
|
### Bugfixes
|
|
169
|
-
- Flow types:
|
|
170
|
-
- Make Props to `<ReactGridLayout>` and `<ResponsiveReactGridLayout>` exact.
|
|
171
|
-
- Fix loss of props refinement when passing through `WidthProvider`.
|
|
172
|
-
- Fix Flow errors as surfaced in [#1138](https://github.com/STRML/react-grid-layout/pull/1138).
|
|
173
|
-
- Modify examples to use types so that the above type error can't resurface
|
|
174
208
|
|
|
175
|
-
|
|
176
|
-
|
|
209
|
+
- Flow types:
|
|
210
|
+
- Make Props to `<ReactGridLayout>` and `<ResponsiveReactGridLayout>` exact.
|
|
211
|
+
- Fix loss of props refinement when passing through `WidthProvider`.
|
|
212
|
+
- Fix Flow errors as surfaced in [#1138](https://github.com/STRML/react-grid-layout/pull/1138).
|
|
213
|
+
- Modify examples to use types so that the above type error can't resurface
|
|
214
|
+
|
|
215
|
+
## 0.18.0 (Feb 25, 2020)
|
|
177
216
|
|
|
178
217
|
Thanks to all of our maintainers for this big release. 0.18.0 contains a large number of bugfixes that users have been asking for. Please read the full list so you know what to expect. Some of the biggest improvements include fixing changes of `isResizable`/`isDraggable` without a remount ([#892](https://github.com/STRML/react-grid-layout/pull/892)), fixes to prop changes on `ResponsiveReactGridLayout` ([#1090](https://github.com/STRML/react-grid-layout/pull/1090)), `shouldComponentUpdate` improvements for speed ([#1123](https://github.com/STRML/react-grid-layout/pull/1123)), improvements to droppability ([#1127](https://github.com/STRML/react-grid-layout/pull/1127)), and much more.
|
|
179
218
|
|
|
@@ -206,17 +245,18 @@ Thanks to all of our maintainers for this big release. 0.18.0 contains a large n
|
|
|
206
245
|
- Upgrade devDependencies.
|
|
207
246
|
- Remove ESPower from test suite (not useful with Jest).
|
|
208
247
|
|
|
248
|
+
0.17.1 (Oct 29, 2019)
|
|
209
249
|
|
|
210
|
-
|
|
211
|
-
----
|
|
250
|
+
---
|
|
212
251
|
|
|
213
252
|
### Bugfixes
|
|
214
253
|
|
|
215
254
|
- Surround `navigator` check in `try/catch` to avoid problems with mocked navigators [#1057](https://github.com/STRML/react-grid-layout/pull/1054)
|
|
216
255
|
- TransformScale is not applied properly while dragging an element [#1046](https://github.com/STRML/react-grid-layout/pull/1054)
|
|
217
256
|
|
|
218
|
-
0.17.0 (Oct 24, 2019)
|
|
219
|
-
|
|
257
|
+
0.17.0 (Oct 24, 2019)
|
|
258
|
+
|
|
259
|
+
---
|
|
220
260
|
|
|
221
261
|
It's been 18 months since the last release, and this is a pretty large one! For references on the items below, see https://github.com/STRML/react-grid-layout/milestone/1?closed=1.
|
|
222
262
|
|
|
@@ -224,12 +264,11 @@ Thanks to @daynin and @n1ghtmare for taking an active role in maintaining RGL, a
|
|
|
224
264
|
|
|
225
265
|
### New Features
|
|
226
266
|
|
|
227
|
-
- Added ability to drag items into the grid from outside. [#980](https://github.com/STRML/react-grid-layout/pull/980). See [the example](https://
|
|
228
|
-
- This is especially exciting as it opens up new "widget toolbox" use cases such as [Example 14](https://
|
|
267
|
+
- Added ability to drag items into the grid from outside. [#980](https://github.com/STRML/react-grid-layout/pull/980). See [the example](https://react-grid-layout.github.io/react-grid-layout/examples/15-drag-from-outside.html).
|
|
268
|
+
- This is especially exciting as it opens up new "widget toolbox" use cases such as [Example 14](https://react-grid-layout.github.io/react-grid-layout/examples/14-toolbox.html) with more intuitive interaction. Thanks @daynin.
|
|
229
269
|
- `transformScale` prop [#987](https://github.com/STRML/react-grid-layout/pull/987)
|
|
230
270
|
- `<ResponsiveReactGridLayout>` now supports margin-per-breakpoint [#1016](https://github.com/STRML/react-grid-layout/pull/1016)
|
|
231
271
|
|
|
232
|
-
|
|
233
272
|
### Bugfixes
|
|
234
273
|
|
|
235
274
|
- `onWidthChange` only called on breakpoint changes [#770](https://github.com/STRML/react-grid-layout/pull/770)
|
|
@@ -250,8 +289,9 @@ Thanks to @daynin and @n1ghtmare for taking an active role in maintaining RGL, a
|
|
|
250
289
|
- Various build simplifications [#773](https://github.com/STRML/react-grid-layout/pull/773)
|
|
251
290
|
- Various PR bots - thanks @daynin
|
|
252
291
|
|
|
253
|
-
0.16.6 (Mar 8, 2018)
|
|
254
|
-
|
|
292
|
+
0.16.6 (Mar 8, 2018)
|
|
293
|
+
|
|
294
|
+
---
|
|
255
295
|
|
|
256
296
|
- Fixed collision issue where items below could rearrange on a move.
|
|
257
297
|
- The root cause was "teleportation", or practically the same bug that leads to Pac-Man going through
|
|
@@ -264,84 +304,99 @@ Thanks to @daynin and @n1ghtmare for taking an active role in maintaining RGL, a
|
|
|
264
304
|
- Ref: #650, #739
|
|
265
305
|
- Added a "Toolbox" demo (thanks @jhob)
|
|
266
306
|
|
|
267
|
-
0.16.5 (Feb 26, 2018)
|
|
268
|
-
|
|
307
|
+
0.16.5 (Feb 26, 2018)
|
|
308
|
+
|
|
309
|
+
---
|
|
269
310
|
|
|
270
311
|
- Minor fix to `isUserAction` on certain types of compaction cascades (#714, #720, #729)
|
|
271
312
|
|
|
272
|
-
0.16.4 (Feb 15, 2018)
|
|
273
|
-
|
|
313
|
+
0.16.4 (Feb 15, 2018)
|
|
314
|
+
|
|
315
|
+
---
|
|
274
316
|
|
|
275
317
|
- Skip null items in processGridItem (#578)
|
|
276
318
|
- Resize is broken for grids with preventCollision: true, fixes #655 (#656)
|
|
277
319
|
- Minor refactoring
|
|
278
320
|
|
|
279
|
-
0.16.3 (Jan 31, 2018)
|
|
280
|
-
|
|
321
|
+
0.16.3 (Jan 31, 2018)
|
|
322
|
+
|
|
323
|
+
---
|
|
281
324
|
|
|
282
325
|
- Fix overriding of `onStart` behaviour (#707, thanks @ersel)
|
|
283
326
|
- Fixed Flow type of WidthProvider
|
|
284
327
|
- Devdep updates
|
|
285
328
|
|
|
286
|
-
0.16.2 (Dec 17, 2017)
|
|
287
|
-
|
|
329
|
+
0.16.2 (Dec 17, 2017)
|
|
330
|
+
|
|
331
|
+
---
|
|
288
332
|
|
|
289
333
|
- Fix `onLayoutChange` not firing properly due to regression introduced in 0.16.1
|
|
290
334
|
- Ref: https://github.com/STRML/react-grid-layout/issues/683
|
|
291
335
|
- Simpler resize corner CSS (thanks @TrySound)
|
|
292
336
|
- Reformat code with Prettier & simplify lint configs (thanks @TrySound)
|
|
293
337
|
|
|
294
|
-
0.16.1 (Dec 10, 2017)
|
|
295
|
-
|
|
338
|
+
0.16.1 (Dec 10, 2017)
|
|
339
|
+
|
|
340
|
+
---
|
|
296
341
|
|
|
297
342
|
- Flow def upgrades (thanks @TrySound)
|
|
298
343
|
- DevDep upgrades
|
|
299
344
|
- Fixed WebpackBin demo
|
|
300
345
|
- Addl test cases (thanks @torkelo)
|
|
301
346
|
|
|
302
|
-
0.16.0 (Oct 6, 2017)
|
|
303
|
-
|
|
347
|
+
0.16.0 (Oct 6, 2017)
|
|
348
|
+
|
|
349
|
+
---
|
|
304
350
|
|
|
305
351
|
- Added horizontal compaction option, `compactType` (thanks @Rhjulskov)
|
|
306
352
|
- Added `preventCollision` option for static grids (thanks @EmrysMyrddin)
|
|
307
353
|
|
|
308
|
-
0.15.2 (Sep 5, 2017)
|
|
309
|
-
|
|
354
|
+
0.15.2 (Sep 5, 2017)
|
|
355
|
+
|
|
356
|
+
---
|
|
310
357
|
|
|
311
358
|
- Fix missed `import *`
|
|
312
359
|
- Dependency updates
|
|
313
360
|
|
|
314
|
-
0.15.1 (Sep 5, 2017)
|
|
315
|
-
|
|
361
|
+
0.15.1 (Sep 5, 2017)
|
|
362
|
+
|
|
363
|
+
---
|
|
316
364
|
|
|
317
365
|
- Fix React PropTypes & createClass warnings
|
|
366
|
+
|
|
318
367
|
- See https://github.com/facebook/react/issues/10583
|
|
319
368
|
|
|
320
|
-
0.15.0 (Aug 21, 2017)
|
|
321
|
-
|
|
369
|
+
0.15.0 (Aug 21, 2017)
|
|
370
|
+
|
|
371
|
+
---
|
|
322
372
|
|
|
323
373
|
- Package upgrades, including Webpack 3
|
|
324
374
|
- Flow typedef upgrades for the 0.53 rework
|
|
325
375
|
- Add faulty key value in duplicate key error message (#602)
|
|
326
376
|
|
|
327
|
-
0.14.7 (Jul 14, 2017)
|
|
328
|
-
|
|
377
|
+
0.14.7 (Jul 14, 2017)
|
|
378
|
+
|
|
379
|
+
---
|
|
329
380
|
|
|
330
381
|
- Fixed a dragging bug when the grid container is scrollable. Thanks @chultquist.
|
|
382
|
+
|
|
331
383
|
- Ref: https://github.com/STRML/react-grid-layout/pull/555
|
|
332
384
|
|
|
333
|
-
0.14.6 (Apr 19, 2017)
|
|
334
|
-
|
|
385
|
+
0.14.6 (Apr 19, 2017)
|
|
386
|
+
|
|
387
|
+
---
|
|
335
388
|
|
|
336
389
|
- Fixed a bad publish (connectivity issue).
|
|
337
390
|
|
|
338
|
-
0.14.5 (Apr 19, 2017)
|
|
339
|
-
|
|
391
|
+
0.14.5 (Apr 19, 2017)
|
|
392
|
+
|
|
393
|
+
---
|
|
340
394
|
|
|
341
395
|
- Moved to `prop-types` package to avoid React.PropTypes deprecation in 15.5. Thanks @inverts!
|
|
342
396
|
|
|
343
|
-
0.14.4 (Mar 9, 2017)
|
|
344
|
-
|
|
397
|
+
0.14.4 (Mar 9, 2017)
|
|
398
|
+
|
|
399
|
+
---
|
|
345
400
|
|
|
346
401
|
#### Fixes:
|
|
347
402
|
|
|
@@ -351,15 +406,17 @@ Thanks to @daynin and @n1ghtmare for taking an active role in maintaining RGL, a
|
|
|
351
406
|
|
|
352
407
|
- Update Flow
|
|
353
408
|
|
|
354
|
-
0.14.3 (Feb 22, 2017)
|
|
355
|
-
|
|
409
|
+
0.14.3 (Feb 22, 2017)
|
|
410
|
+
|
|
411
|
+
---
|
|
356
412
|
|
|
357
413
|
#### Fixes:
|
|
358
414
|
|
|
359
415
|
- Reverted #499; `msTransform` is indeed correct. See [discussion](https://github.com/STRML/react-grid-layout/pull/499#issuecomment-281703069).
|
|
360
416
|
|
|
361
|
-
0.14.2 (Feb 22, 2017)
|
|
362
|
-
|
|
417
|
+
0.14.2 (Feb 22, 2017)
|
|
418
|
+
|
|
419
|
+
---
|
|
363
420
|
|
|
364
421
|
#### Fixes:
|
|
365
422
|
|
|
@@ -370,16 +427,18 @@ Thanks to @daynin and @n1ghtmare for taking an active role in maintaining RGL, a
|
|
|
370
427
|
|
|
371
428
|
- Update development dependencies and babel version.
|
|
372
429
|
|
|
373
|
-
0.14.1 (Feb 20, 2017)
|
|
374
|
-
|
|
430
|
+
0.14.1 (Feb 20, 2017)
|
|
431
|
+
|
|
432
|
+
---
|
|
375
433
|
|
|
376
434
|
#### Fixes:
|
|
377
435
|
|
|
378
436
|
- Fixed a minor Flow type issue when a `classnames` typedef is present.
|
|
379
437
|
- Fixed a scoping issue when running `make build-example`.
|
|
380
438
|
|
|
381
|
-
0.14.0 (Feb 13, 2017)
|
|
382
|
-
|
|
439
|
+
0.14.0 (Feb 13, 2017)
|
|
440
|
+
|
|
441
|
+
---
|
|
383
442
|
|
|
384
443
|
#### Features:
|
|
385
444
|
|
|
@@ -388,24 +447,29 @@ Thanks to @daynin and @n1ghtmare for taking an active role in maintaining RGL, a
|
|
|
388
447
|
- Committed yarn.lock
|
|
389
448
|
- Added `react-draggable` classname to draggable grid items.
|
|
390
449
|
|
|
391
|
-
0.13.9 (Oct 13, 2016)
|
|
392
|
-
|
|
450
|
+
0.13.9 (Oct 13, 2016)
|
|
451
|
+
|
|
452
|
+
---
|
|
393
453
|
|
|
394
454
|
#### Fixes:
|
|
395
455
|
|
|
396
456
|
- Fixed sorting of layout items, which could be different in IE if two items have the same x & y coordinate.
|
|
457
|
+
|
|
397
458
|
- See [#369](https://github.com/STRML/react-grid-layout/issues/369).
|
|
398
459
|
|
|
399
|
-
0.13.8 (Oct 13, 2016)
|
|
400
|
-
|
|
460
|
+
0.13.8 (Oct 13, 2016)
|
|
461
|
+
|
|
462
|
+
---
|
|
401
463
|
|
|
402
464
|
#### Fixes:
|
|
403
465
|
|
|
404
466
|
- Fixed breakage introduced in `0.13.7` when items are added without a layout or `data-grid` property.
|
|
467
|
+
|
|
405
468
|
- See [#368](https://github.com/STRML/react-grid-layout/issues/368).
|
|
406
469
|
|
|
407
|
-
0.13.7 (Oct 3, 2016)
|
|
408
|
-
|
|
470
|
+
0.13.7 (Oct 3, 2016)
|
|
471
|
+
|
|
472
|
+
---
|
|
409
473
|
|
|
410
474
|
#### Fixes:
|
|
411
475
|
|
|
@@ -414,38 +478,44 @@ Thanks to @daynin and @n1ghtmare for taking an active role in maintaining RGL, a
|
|
|
414
478
|
- Fixed some issues with input layout items being modified in-place rather than cloned.
|
|
415
479
|
- Minor typos.
|
|
416
480
|
|
|
417
|
-
0.13.6 (Sep 26, 2016)
|
|
418
|
-
|
|
481
|
+
0.13.6 (Sep 26, 2016)
|
|
482
|
+
|
|
483
|
+
---
|
|
419
484
|
|
|
420
485
|
#### Fixes:
|
|
421
486
|
|
|
422
487
|
- Fixed missing HTMLElement in `onResize*` callbacks.
|
|
423
488
|
|
|
424
|
-
0.13.5 (Sep 9, 2016)
|
|
425
|
-
|
|
489
|
+
0.13.5 (Sep 9, 2016)
|
|
490
|
+
|
|
491
|
+
---
|
|
426
492
|
|
|
427
493
|
#### Fixes:
|
|
428
494
|
|
|
429
495
|
- Fixed a few Flow typing errors in `WidthProvider`.
|
|
430
496
|
|
|
431
|
-
0.13.4 (Sep 9, 2016)
|
|
432
|
-
|
|
497
|
+
0.13.4 (Sep 9, 2016)
|
|
498
|
+
|
|
499
|
+
---
|
|
433
500
|
|
|
434
501
|
#### Fixes:
|
|
435
502
|
|
|
436
503
|
- Fixed potential call to `ReactDOM.findDOMNode(this)` after unmount of `WidthProvider`.
|
|
437
504
|
- Fixed an issue where layout items using `data-grid` could rearrange on mount depending on how they were ordered.
|
|
505
|
+
|
|
438
506
|
- See [#342](https://github.com/STRML/react-grid-layout/pull/342) for reference.
|
|
439
507
|
|
|
440
|
-
0.13.3 (Aug 31, 2016)
|
|
441
|
-
|
|
508
|
+
0.13.3 (Aug 31, 2016)
|
|
509
|
+
|
|
510
|
+
---
|
|
442
511
|
|
|
443
512
|
#### Fixes:
|
|
444
513
|
|
|
445
|
-
- Fixed `lodash.isequal` import, which was ruined by case-insensitive HFS+
|
|
514
|
+
- Fixed `lodash.isequal` import, which was ruined by case-insensitive HFS+ _shakes fist_
|
|
446
515
|
|
|
447
|
-
0.13.2 (Aug 31, 2016)
|
|
448
|
-
|
|
516
|
+
0.13.2 (Aug 31, 2016)
|
|
517
|
+
|
|
518
|
+
---
|
|
449
519
|
|
|
450
520
|
#### Fixes:
|
|
451
521
|
|
|
@@ -455,17 +525,20 @@ Thanks to @daynin and @n1ghtmare for taking an active role in maintaining RGL, a
|
|
|
455
525
|
- I'm aware this could be a breaking change if you were relying on this bad behavior. If so, please
|
|
456
526
|
use your own `WidthProvider`-style HOC.
|
|
457
527
|
- `babel-plugin-transform-flow-comments` had limited support for defining types like transpiled classes.
|
|
528
|
+
|
|
458
529
|
- This has been updated to instead copy source to `.js.flow` files, which preserves all type information.
|
|
459
530
|
|
|
460
|
-
0.13.1 (Aug 16, 2016)
|
|
461
|
-
|
|
531
|
+
0.13.1 (Aug 16, 2016)
|
|
532
|
+
|
|
533
|
+
---
|
|
462
534
|
|
|
463
535
|
#### Fixes:
|
|
464
536
|
|
|
465
537
|
- Fix remaining `propTypes` warnings.
|
|
466
538
|
|
|
467
|
-
0.13.0 (Aug 3, 2016)
|
|
468
|
-
|
|
539
|
+
0.13.0 (Aug 3, 2016)
|
|
540
|
+
|
|
541
|
+
---
|
|
469
542
|
|
|
470
543
|
#### Changed:
|
|
471
544
|
|
|
@@ -477,46 +550,55 @@ Thanks to @daynin and @n1ghtmare for taking an active role in maintaining RGL, a
|
|
|
477
550
|
|
|
478
551
|
- Fix React 15.3 warning re: propTypes.
|
|
479
552
|
|
|
480
|
-
0.12.7 (Jun 29, 2016)
|
|
481
|
-
|
|
553
|
+
0.12.7 (Jun 29, 2016)
|
|
554
|
+
|
|
555
|
+
---
|
|
482
556
|
|
|
483
557
|
- Prevent extraenous rerenders in `<ResponsiveReactGridLayout>` by using deep equality on layouts.
|
|
484
558
|
|
|
485
|
-
0.12.6 (Jun 5, 2016)
|
|
486
|
-
|
|
559
|
+
0.12.6 (Jun 5, 2016)
|
|
560
|
+
|
|
561
|
+
---
|
|
487
562
|
|
|
488
563
|
- Fix blindingly obvious bug where mounted isn't set to true. Smack forehead.
|
|
489
564
|
|
|
490
|
-
0.12.5 (Jun 3, 2016)
|
|
491
|
-
|
|
565
|
+
0.12.5 (Jun 3, 2016)
|
|
566
|
+
|
|
567
|
+
---
|
|
492
568
|
|
|
493
569
|
- Fixes for server rendering checksum failures.
|
|
494
570
|
|
|
495
|
-
0.12.4 (May 22, 2016)
|
|
496
|
-
|
|
571
|
+
0.12.4 (May 22, 2016)
|
|
572
|
+
|
|
573
|
+
---
|
|
497
574
|
|
|
498
575
|
- Update to React-Draggable v2. Fixes: #241, #239, #24
|
|
576
|
+
|
|
499
577
|
- v2 contains a number of bugfixes & enhancements for touchscreens, multitouch, and scrolling containers.
|
|
500
578
|
|
|
501
|
-
0.12.3 (May 3, 2016)
|
|
502
|
-
|
|
579
|
+
0.12.3 (May 3, 2016)
|
|
580
|
+
|
|
581
|
+
---
|
|
503
582
|
|
|
504
583
|
- Bugfix: Rendering with new `breakpoints`/`cols` does not refresh the layout.
|
|
505
584
|
Fixes #208 - thanks @damienleroux
|
|
506
585
|
|
|
507
|
-
0.12.2 (May 1, 2016)
|
|
508
|
-
|
|
586
|
+
0.12.2 (May 1, 2016)
|
|
587
|
+
|
|
588
|
+
---
|
|
509
589
|
|
|
510
590
|
- Bugfix: Fix warning about undefined `useCSSTransforms` when server-rendering.
|
|
511
591
|
|
|
512
|
-
0.12.1 (Apr 19, 2016)
|
|
513
|
-
|
|
592
|
+
0.12.1 (Apr 19, 2016)
|
|
593
|
+
|
|
594
|
+
---
|
|
514
595
|
|
|
515
596
|
- Bugfix: Don't set `layout` twice on width change. See #217 - thanks @damienleroux
|
|
516
597
|
- Enhancement: Add Flow type comments
|
|
517
598
|
|
|
518
|
-
0.12.0 (Apr 14, 2016)
|
|
519
|
-
|
|
599
|
+
0.12.0 (Apr 14, 2016)
|
|
600
|
+
|
|
601
|
+
---
|
|
520
602
|
|
|
521
603
|
- `<ReactGridLayout>` will no longer animate so severely on mount. See #212.
|
|
522
604
|
- If you are using `<WidthProvider>`, you may notice that the container's width still shunts on mount.
|
|
@@ -527,31 +609,35 @@ Thanks to @daynin and @n1ghtmare for taking an active role in maintaining RGL, a
|
|
|
527
609
|
- Set more permissive version ranges for `<Draggable>` and `<Resizable>` dependencies, as they are now stable
|
|
528
610
|
and will only introduce breaking changes on major version ticks.
|
|
529
611
|
|
|
530
|
-
0.11.3 (Apr 8, 2016)
|
|
531
|
-
|
|
612
|
+
0.11.3 (Apr 8, 2016)
|
|
613
|
+
|
|
614
|
+
---
|
|
532
615
|
|
|
533
616
|
- Officially support React v15.
|
|
534
617
|
|
|
535
|
-
0.11.2 (Apr 6, 2016)
|
|
536
|
-
|
|
618
|
+
0.11.2 (Apr 6, 2016)
|
|
619
|
+
|
|
620
|
+
---
|
|
537
621
|
|
|
538
622
|
- Bugfix: Draggable cancel selectors, see #203 - thanks @RiiD
|
|
539
623
|
- README fixes, thanks @bravo-kernel & @ro-savage
|
|
540
624
|
|
|
541
|
-
0.11.1
|
|
542
|
-
|
|
625
|
+
0.11.1
|
|
626
|
+
|
|
627
|
+
---
|
|
543
628
|
|
|
544
629
|
- Bugfix: `<ResponsiveReactGridLayout>` was using stale data when synchronizing children with the layout
|
|
545
630
|
on a breakpoint change.
|
|
546
631
|
|
|
547
|
-
0.11.0
|
|
548
|
-
|
|
632
|
+
0.11.0
|
|
633
|
+
|
|
634
|
+
---
|
|
549
635
|
|
|
550
636
|
This release contains potentially breaking changes so I have updated the minor version (as per semver).
|
|
551
637
|
|
|
552
638
|
**Breaking Changes**:
|
|
553
639
|
|
|
554
|
-
- Layout items now have a fixed set of properties. Other properties will
|
|
640
|
+
- Layout items now have a fixed set of properties. Other properties will _not_ be merged into the `<GridItem>`, such
|
|
555
641
|
as `className`. To set a `className` on a child, set it on the child directly and it will be merged.
|
|
556
642
|
This allows us to make better assumptions about the layout and use a faster cloning mechanism.
|
|
557
643
|
- Setting individual `handle` and `cancel` selectors per item is no longer supported. If you need this, please
|
|
@@ -563,61 +649,71 @@ Other changes:
|
|
|
563
649
|
- Bugfix: Range error when building layout solely from `_grid` properties.
|
|
564
650
|
- This broke a lot of usage and thus `0.10.11` and `0.10.10` have been unpublished.
|
|
565
651
|
- Removed redundant `isPlaceholder` property from `<GridItem>`.
|
|
566
|
-
- README updates to clarify layout
|
|
652
|
+
- README updates to clarify layout/\_grid usage.
|
|
653
|
+
|
|
654
|
+
0.10.11
|
|
567
655
|
|
|
568
|
-
|
|
569
|
-
-------
|
|
656
|
+
---
|
|
570
657
|
|
|
571
658
|
- Bugfix: `layouts` param on `<ResponsiveReactGridLayout>`'s `onLayoutChange` could have stale data
|
|
572
659
|
for the current breakpoint.
|
|
573
660
|
|
|
574
|
-
0.10.10
|
|
575
|
-
|
|
661
|
+
0.10.10
|
|
662
|
+
|
|
663
|
+
---
|
|
576
664
|
|
|
577
665
|
- Performance: Prevent V8 deopt in a few methods and add fast layout item cloning.
|
|
578
666
|
|
|
579
|
-
0.10.9
|
|
580
|
-
|
|
667
|
+
0.10.9
|
|
668
|
+
|
|
669
|
+
---
|
|
581
670
|
|
|
582
671
|
- Bugfix: Typo in children comparison in CWRP. See #169.
|
|
583
672
|
- Bugfix: Missing babel-preset-es2015 in dev.
|
|
584
673
|
|
|
585
|
-
0.10.8
|
|
586
|
-
|
|
674
|
+
0.10.8
|
|
675
|
+
|
|
676
|
+
---
|
|
587
677
|
|
|
588
678
|
- Rebuild using [ES2015 Loose Mode](https://babeljs.algolia.com/docs/advanced/loose/).
|
|
589
679
|
|
|
590
|
-
0.10.7
|
|
591
|
-
|
|
680
|
+
0.10.7
|
|
681
|
+
|
|
682
|
+
---
|
|
592
683
|
|
|
593
684
|
- Bugfix: `className` and `style` props on grid children were being incorrectly dropped, a holdover
|
|
594
685
|
from when `cloneWithProps()` used to do this merging for us. They are now merged.
|
|
595
686
|
|
|
596
|
-
0.10.6
|
|
597
|
-
|
|
687
|
+
0.10.6
|
|
688
|
+
|
|
689
|
+
---
|
|
598
690
|
|
|
599
691
|
- Bugfix: If both `props.layout` and `props.children.length` change in the same tick,
|
|
600
692
|
props.layout would be clobbered. See #162
|
|
601
693
|
|
|
602
|
-
0.10.5
|
|
603
|
-
|
|
694
|
+
0.10.5
|
|
695
|
+
|
|
696
|
+
---
|
|
604
697
|
|
|
605
698
|
- Bugfix/Enhancement: Margins were causing subtle error in some of the positioning calculations. This has
|
|
606
699
|
been fixed.
|
|
607
700
|
|
|
608
|
-
0.10.4
|
|
609
|
-
|
|
701
|
+
0.10.4
|
|
702
|
+
|
|
703
|
+
---
|
|
610
704
|
|
|
611
705
|
- Bugfix: Container height was calculated as less than expected due to improper addition of margin.
|
|
612
706
|
|
|
613
|
-
0.10.3
|
|
614
|
-
|
|
707
|
+
0.10.3
|
|
708
|
+
|
|
709
|
+
---
|
|
615
710
|
|
|
616
711
|
- Bugfix: Round item positions even if they're currently resizing or dragging (#158, regression of #141)
|
|
617
712
|
- Bugfix: Fix a positioning bug when margins are 0 (#160)
|
|
618
713
|
|
|
619
|
-
0.10.2
|
|
620
|
-
|
|
714
|
+
0.10.2
|
|
715
|
+
|
|
716
|
+
---
|
|
621
717
|
|
|
622
718
|
- Bugfix: <RGL> would synchronize children with layout if the layout in props didn't match the state;
|
|
623
719
|
this was meant to be a hook for the developer to supply a new layout. The incorrect check could cause the
|
|
@@ -629,13 +725,15 @@ Other changes:
|
|
|
629
725
|
- Remove unused `offsetX` and `offsetY` from layouts.
|
|
630
726
|
- Dependency updates.
|
|
631
727
|
|
|
632
|
-
0.10.1
|
|
633
|
-
|
|
728
|
+
0.10.1
|
|
729
|
+
|
|
730
|
+
---
|
|
634
731
|
|
|
635
732
|
- Hotfix for default export incompatibility caused by Babel 6.
|
|
636
733
|
|
|
637
|
-
0.10.0
|
|
638
|
-
|
|
734
|
+
0.10.0
|
|
735
|
+
|
|
736
|
+
---
|
|
639
737
|
|
|
640
738
|
This long-awaited release provides React 0.14 compatibility and a rewrite of the underlying
|
|
641
739
|
`<Draggable>` functionality.
|
|
@@ -649,21 +747,24 @@ This long-awaited release provides React 0.14 compatibility and a rewrite of the
|
|
|
649
747
|
|
|
650
748
|
Other changes:
|
|
651
749
|
|
|
652
|
-
-
|
|
750
|
+
- _Finally_ compatible with React 0.14! Big thanks to @menelike for his help.
|
|
653
751
|
- Upgraded to Babel 6.
|
|
654
752
|
- Full typechecking via Flow.
|
|
655
753
|
- Lots of misc bugfixes.
|
|
754
|
+
|
|
656
755
|
- See beta releases below for more details.
|
|
657
756
|
|
|
658
|
-
0.10.0-beta1
|
|
659
|
-
|
|
757
|
+
0.10.0-beta1
|
|
758
|
+
|
|
759
|
+
---
|
|
660
760
|
|
|
661
761
|
- Fixed a React import bug on ListensToWidth.jsx (#130; thanks @mrblueblue)
|
|
662
762
|
|
|
663
|
-
0.10.0-beta0
|
|
664
|
-
------------
|
|
763
|
+
0.10.0-beta0
|
|
665
764
|
|
|
666
|
-
|
|
765
|
+
---
|
|
766
|
+
|
|
767
|
+
_This release is unstable!_
|
|
667
768
|
|
|
668
769
|
- React 0.14 compatibility.
|
|
669
770
|
- This release includes a rewrite of much of the project in ES6/7 style with Flow typing.
|
|
@@ -672,64 +773,72 @@ Other changes:
|
|
|
672
773
|
- 0.10.0 is not yet complete. Use this release at your own risk.
|
|
673
774
|
|
|
674
775
|
Known bugs:
|
|
675
|
-
- The placeholder box does not properly follow the mouse and stays pinned to the active drag.
|
|
676
776
|
|
|
677
|
-
|
|
678
|
-
|
|
777
|
+
- The placeholder box does not properly follow the mouse and stays pinned to the active drag.
|
|
778
|
+
|
|
779
|
+
## 0.9.2
|
|
679
780
|
|
|
680
781
|
- Update `react-draggable` to `v0.8.0` to fix IE11 issues (#29).
|
|
681
782
|
|
|
682
|
-
0.9.1
|
|
683
|
-
|
|
783
|
+
0.9.1
|
|
784
|
+
|
|
785
|
+
---
|
|
684
786
|
|
|
685
787
|
- Update `react-draggable` to `v0.7.3` to fix a bounds bug (#56).
|
|
686
788
|
|
|
687
|
-
0.9.0
|
|
688
|
-
|
|
789
|
+
0.9.0
|
|
790
|
+
|
|
791
|
+
---
|
|
689
792
|
|
|
690
793
|
- Move off `react-draggable` fork to mainline `v0.7.2`. Incremented minor (major in the case of
|
|
691
794
|
npm's `^`, since we are pre-v1) version in case of unforeseen conflicts.
|
|
692
795
|
|
|
693
|
-
0.8.3
|
|
694
|
-
|
|
796
|
+
0.8.3
|
|
797
|
+
|
|
798
|
+
---
|
|
695
799
|
|
|
696
800
|
- Add `verticalCompact` toggle.
|
|
697
801
|
|
|
698
|
-
0.8.2
|
|
699
|
-
|
|
802
|
+
0.8.2
|
|
803
|
+
|
|
804
|
+
---
|
|
700
805
|
|
|
701
806
|
- Fix a crash when initializing with no children.
|
|
702
807
|
|
|
703
|
-
0.8.1
|
|
704
|
-
|
|
808
|
+
0.8.1
|
|
809
|
+
|
|
810
|
+
---
|
|
705
811
|
|
|
706
812
|
- Fixed React 0.13 warning about `isMounted()`.
|
|
707
813
|
- Update to babel 5.
|
|
708
814
|
- Added browser build for use with a `<script>` tag or in RequireJS builds.
|
|
709
815
|
- Pinned react-draggable version in anticipation of React 0.13 update.
|
|
710
816
|
|
|
711
|
-
0.8.0
|
|
712
|
-
|
|
817
|
+
0.8.0
|
|
818
|
+
|
|
819
|
+
---
|
|
713
820
|
|
|
714
821
|
- Changed signature on resize/drag callbacks to allow dynamic max/min W/H per item.
|
|
715
822
|
- Fixed bug in `useCSSTransforms`.
|
|
716
823
|
- Documentation and example fixes.
|
|
717
824
|
|
|
718
|
-
0.7.1
|
|
719
|
-
|
|
825
|
+
0.7.1
|
|
826
|
+
|
|
827
|
+
---
|
|
720
828
|
|
|
721
829
|
- Added callbacks for resize and drag start/active/stop.
|
|
722
830
|
|
|
723
|
-
0.7.0
|
|
724
|
-
|
|
831
|
+
0.7.0
|
|
832
|
+
|
|
833
|
+
---
|
|
725
834
|
|
|
726
835
|
**Breaking changes:**
|
|
727
836
|
|
|
728
837
|
- `ReactGridLayout.props.handle` renamed to `ReactGridLayout.props.draggableHandle`.
|
|
729
838
|
|
|
730
839
|
> This version contains a CSS update. This fixes a visual bug where you may see items quickly reset position
|
|
731
|
-
|
|
732
|
-
|
|
840
|
+
> and animate back to their original position on load, when you are using CSS transforms. To fix this bug,
|
|
841
|
+
> copy the rules from css/styles.css into your stylesheet.
|
|
733
842
|
|
|
734
843
|
Other changes:
|
|
735
844
|
|
|
@@ -737,9 +846,9 @@ Other changes:
|
|
|
737
846
|
- Fixed some placement inconsistencies while RGL is mounting, with css transforms and percentages.
|
|
738
847
|
- Fixed a duplicate className bug.
|
|
739
848
|
|
|
849
|
+
0.6.2
|
|
740
850
|
|
|
741
|
-
|
|
742
|
-
-----
|
|
851
|
+
---
|
|
743
852
|
|
|
744
853
|
- Fix #21 (error when passing only a single child).
|
|
745
854
|
- Add GridItem.props.cancel.
|
|
@@ -747,37 +856,44 @@ Other changes:
|
|
|
747
856
|
- Allow setting draggable/resizable per grid item, as well as existing `static` property.
|
|
748
857
|
- Use object.assign to set `_grid` properties so we can more easily merge PRs in the future.
|
|
749
858
|
|
|
750
|
-
0.6.1
|
|
751
|
-
|
|
859
|
+
0.6.1
|
|
860
|
+
|
|
861
|
+
---
|
|
862
|
+
|
|
863
|
+
- Fixed #8 (current layout was not properly being stored when provided via \_grid props).
|
|
752
864
|
|
|
753
|
-
|
|
865
|
+
0.6.0
|
|
754
866
|
|
|
755
|
-
|
|
756
|
-
-----
|
|
867
|
+
---
|
|
757
868
|
|
|
758
869
|
- Optionally use CSS transforms for placement, fallback on position top/left.
|
|
759
870
|
- Allow parent to set responsive breakpoint directly.
|
|
760
871
|
|
|
761
|
-
0.5.2
|
|
762
|
-
|
|
872
|
+
0.5.2
|
|
873
|
+
|
|
874
|
+
---
|
|
763
875
|
|
|
764
876
|
- Fix Responsive import for node users
|
|
765
877
|
|
|
766
|
-
0.5.1
|
|
767
|
-
|
|
878
|
+
0.5.1
|
|
879
|
+
|
|
880
|
+
---
|
|
768
881
|
|
|
769
882
|
- Add support for min/max dimension attributes.
|
|
770
883
|
- Example tweak
|
|
771
884
|
|
|
772
|
-
0.5.0
|
|
773
|
-
|
|
885
|
+
0.5.0
|
|
886
|
+
|
|
887
|
+
---
|
|
888
|
+
|
|
774
889
|
- Refactoring and demo tweaks. Update README with new params.
|
|
775
890
|
- Add showcase example, tweak template
|
|
776
891
|
- Refactor: Responsive Grid Layout is a separate element
|
|
777
892
|
- Auto-generate examples from template rather than edit them individually.
|
|
778
893
|
|
|
779
|
-
0.4.0
|
|
780
|
-
|
|
894
|
+
0.4.0
|
|
895
|
+
|
|
896
|
+
---
|
|
781
897
|
|
|
782
898
|
- Force lodash into commons chunk
|
|
783
899
|
- More tweaks to grid collisions. This should fix bad swaps once and for all.
|
|
@@ -787,7 +903,6 @@ Other changes:
|
|
|
787
903
|
- Rework responsive layouts, identify child elements by key rather than index. Added 2 new examples.
|
|
788
904
|
- Fixup GridItem resizing feel a bit.
|
|
789
905
|
|
|
790
|
-
< 0.4.0
|
|
791
|
-
-------
|
|
906
|
+
## < 0.4.0
|
|
792
907
|
|
|
793
908
|
- Early development versions, too many changes to list.
|