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