react-spaces

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

MIT License

Downloads
5.5K
Stars
1.3K

Bot releases are hidden (Show)

react-spaces - Allow styles to target inner and outer space elements Latest Release

Published by aeagle 6 months ago

Package

Source

  • Storybook docs updated to v8.0.8
  • Build environment updated from Node 14.x to 20.x
react-spaces - Hotfix for resize operation race condition

Published by aeagle almost 2 years 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
react-spaces - Experimental SSR support

Published by aeagle almost 2 years ago

Functionality added to allow full SSR rendering support.

  • Switched dynamic ID generation for spaces to use useId() hook from React 18
  • Added 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
react-spaces - Allow render in SSR environment

Published by aeagle almost 2 years 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.
react-spaces - Corner resize functionality

Published by aeagle almost 2 years ago

  • Add corner resize functionality to positioned spaces
react-spaces - Hotfix for custom prop types

Published by aeagle about 2 years ago

react-spaces - Typescript type / proptype fix for custom space props

Published by aeagle about 2 years ago

  • Custom space props fix
react-spaces - React 18 support

Published by aeagle over 2 years ago

react-spaces - Fix exported types

Published by aeagle almost 3 years ago

  • Ensure ResizeTouchEvent and Type exported from library
react-spaces - Positioned space functionality and custom resize handles

Published by aeagle almost 3 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
react-spaces - Storybook upgrade

Published by aeagle over 3 years ago

  • Upgraded storybook to 6.3.2
react-spaces - Fixed maximumSize constraint functionality

Published by aeagle over 3 years ago

  • Corrected erroneous falsy check when determining limits during resize operation
react-spaces - Fixed location of change log and pull releases via GitHub

Published by aeagle over 3 years ago

  • Fixed URL of version history in changelog.md
  • Removed version history from storybook docs
  • History auto updates at allaneagle.com/projects/react-spaces/history from GitHub release via GitHub API
react-spaces - CI / build / deployment improvements for package and storybook docs

Published by aeagle over 3 years ago

  • Setup gitversion semantic versioning on Azure Pipeline
  • Ensure storybook package automatically created for automatic inclusion on allaneagle.com
react-spaces - Allow React v17 to be used as a peer dependency

Published by aeagle over 3 years ago

  • Include React v17 as well as v16 as peer dependency
react-spaces - Storybook upgrade + npm audit fix

Published by aeagle over 3 years ago

  • Storybook upgrade
  • npm audit fix
react-spaces - Revised global state implementation / optimisations / bug fixes

Published by aeagle almost 4 years ago

  • Major refactor of library to fix React state side effect issues
  • Added tests to library for core functionality
  • Revised resize handle placement/functionality

See here for release notes

react-spaces - Upgraded to storybook 6.1.11 + tests fix

Published by aeagle almost 4 years ago

  • Upgraded storybook to 6.1.11
  • Revised tests to pass with new inner/outer mark-up for spaces
  • Fix application of overflow to inner space element for scrollable spaces
react-spaces - Added default anchor ordering + resize handle fixes

Published by aeagle almost 4 years ago

  • Added default anchor ordering when order property not specified on anchored spaces to match live functionality
  • Remove styling added to touch handles for testing
react-spaces -

Published by aeagle almost 4 years ago

Initial release