React Spaces Versions Save

React components that allow you to divide a page or container into nestable anchored, scrollable and resizable spaces.

v0.5.0

3 weeks ago

Package

Source

  • Storybook docs updated to v8.0.8
  • Build environment updated from Node 14.x to 20.x

v0.4.1

1 year ago
  • Fix for race condition in resize operation which allows a mouse/touch move/drag to be processed after a resize operation has already been completed

v0.4.0

1 year ago

Functionality added to allow full SSR rendering support.

  • Switched dynamic ID generation for spaces to use useId() hook from React 18
  • Added <SSR /> component to enable functionality. Place a <Space.SSR /> component above any use of spaces to enable
  • Server-side rendered styling of spaces

Note:

  • You must be using React 18
  • Order of spaces is important in the JSX/TSX. You should always put <Fill /> spaces last within any parent

v0.3.9

1 year ago

Initial fix in relation to https://github.com/aeagle/react-spaces/issues/85.

Simple fix to allow spaces to render in a SSR environment

  • Check for existence of document before trying to apply styles
  • Added Next.js demo project to repo

This should allow spaces to be used in Next.js without error, however, this is not a full SSR implementation:

  • Allows space content to render from server side
  • Doesn't allow initial styles to be properly rendered server-side, however, client-side style hydration should kick in if .... all spaces are given a unique id prop to ensure consistency between server/client side renders.

v0.3.8

1 year ago
  • Add corner resize functionality to positioned spaces

v0.3.6

1 year ago

v0.3.5

1 year ago
  • Custom space props fix

v0.3.3

1 year ago

v0.3.2

2 years ago
  • Ensure ResizeTouchEvent and Type exported from library

v0.3.0

2 years ago
  • Created <Positioned /> space #60
  • Allow 'as' property to be Polymorphic (to play with libraries like Framer Motion) #89
  • Custom resize handles #97
  • Added allowOverflow property on spaces to allow contents to overflow space boundary
  • Added useCurrentSpace() hook and deprecated <Space.Info />
  • Refactored resize logic and added drag logic to support movable <Positioned /> space
  • Increased test coverage
  • Updated docs
  • Upgraded storybook
  • Upgraded rollup/build packages