You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-grid-layout

Package Overview
Dependencies
Maintainers
1
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-grid-layout - npm Package Versions

1345
11

1.3.2

Diff
s
strml
published 1.3.2 •

Changelog

Source

1.3.2 (Jan 24, 2022)

Internal Changes

  • Package size reduced by ~30% by removing source in dist/ source maps.
  • Various tests added (thanks @imagineLife!)
  • New GitHub Actions flow for PRs
s
strml
published 1.3.1 •

Changelog

Source

1.3.1 (Nov 29, 2021)

Bugfixes

  • Fix allowOverlap not firing onLayoutChange(). #1620
    • This was due to a short-circuiting of internal logic that did not properly clone the layout prop.

Internal Changes

  • Replace classnames with clsx for smaller package size. (#1543)
s
strml
published 1.3.0 •

Changelog

Source

1.3.0 (Aug 27, 2021)

New Features

  • allowOverlap prop, when true, allows overlapping grid items. #1470
  • Add onDropDragOver callback. #1395
    • 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.
    • This callback has the type:
      • onDragOver: (e: DragOverEvent) => { w: number, h: number } | false;
      • Return false to short-circuit the dragover.

Bugfixes

  • Remove sorting when compactType is null. #1474
  • Droppable fixes for Chrome behavior. #1442 #1448
  • Allow null children as a convenience so that inline expressions don't break the library. #1296
  • Various dependency upgrades.

Documentation

  • Add docs on using custom components as grid children.
  • Note required class on resizable handles for proper styling.
s
strml
published 1.2.5 •

Changelog

Source

1.2.5 (May 10, 2021)

Bugfixes

  • Ensure no negative positions are possible when compacting
  • Fix resizing on mobile. This was caused by the ref refactor to remove ReactDOM in 1.2.3.
    • Fixes #1458
    • Note: this upgrades react-resizable to 3.0.1, which like our other deps, is only compatible with React@>=16.3.

Documentation

  • Document new arity of resizeHandle ((axis: ResizeHandleAxis, ref: ReactRef<HTMLElement>) => React$Element)
  • Remove references to the deprecated verticalCompact prop
s
strml
published 1.2.4 •

Changelog

Source

1.2.4 (Mar 18, 2021)

This version fixes a serious render bug in <WidthProvider>. 1.2.3 should not be used.

Bugfixes

  • Fix failure to mount when layout is WidthProvider-wrapped and measureBeforeMount is true.
  • <WidthProvider> no longer updates grid with if it has been set to 0. This prevents unnecessary updates if the grid is set to display: none;. Thanks @405go #1427
s
strml
published 1.2.3 •

Changelog

Source

1.2.3 (Mar 16, 2021)

New Features

  • React-Grid-Layout is now fully compatible with <React.StrictMode>.
    • Usage of ReactDOM has been removed by using React.createRef() inside RGL, and the new nodeRef prop in react-draggable.
s
strml
published 1.2.2 •

Changelog

Source

1.2.2 (Mar 1, 2021)

Bugfixes

  • onResize as changed in 1.2.1 did not correctly save the layout. This is now fixed.
    • 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.
s
strml
published 1.2.1 •

Changelog

Source

1.2.1 (Mar 1, 2021)

Organization Changes

We have created the React-Grid-Layout Organization! Therefore the repository has moved.

This organization will grow as time goes on, and also contains the dependencies of RGL.

Bugfixes

  • Use classList in Firefox onDragOver hack. #1310
  • 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
  • Fix horizontal compact mode issue where it inadventently would compact the bottom of the grid. This is not useful nor intended. Thanks @s4m3. #1390
  • Fix onLayoutChange sometimes not triggering on resize. We weren't cloning the layout item before modifying it. Thanks @xcqwan. #1289

Internal Refactors

  • Updated to the latest versions of all dependencies (enzyme, webpack, jest, flow).
  • Held back React@17 as enzyme is not yet ready.
s
strml
published 1.2.0 •

Changelog

Source

1.2.0 (Nov 17, 2020)

New Features

  • You can now customize your resizable handle component as supported by react-resizable. For example:
<ReactGridLayout
  resizeHandle={<span className="custom-handle custom-handle-se" />}
  {...props}
/>

Thanks @typeetfunc #1303

Bugfixes

  • Fix onDrop handler not firing on Firefox if you drop over the placeholder.
    • Thanks @Charles-Lamoureux #1333
  • Various example style fixes #1283 #1299
s
strml
published 1.1.1 •

Changelog

Source

1.1.1 (Sep 10, 2020)

Republish to add dist/ folder for unpkg use.