Skip to content

Releases: aeagle/react-spaces

Allow styles to target inner and outer space elements

23 Apr 18:12
a4fd9c9
Compare
Choose a tag to compare

Package

  • New innerComponentStyle prop on spaces to target inner element in a space added by @sagar-accacia in #143

Source

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

Hotfix for resize operation race condition

07 Jan 23:37
f2419c4
Compare
Choose a tag to compare
  • 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

Experimental SSR support

06 Jan 23:17
736bb59
Compare
Choose a tag to compare

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

Allow render in SSR environment

06 Jan 17:50
a4edfee
Compare
Choose a tag to compare

Initial fix in relation to #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.

Corner resize functionality

06 Jan 13:06
9665cf5
Compare
Choose a tag to compare
  • Add corner resize functionality to positioned spaces

Hotfix for custom prop types

15 Aug 10:16
197f54e
Compare
Choose a tag to compare

Typescript type / proptype fix for custom space props

01 Aug 18:37
b5e1303
Compare
Choose a tag to compare

React 18 support

29 May 19:02
c70608e
Compare
Choose a tag to compare
  • Upgraded to React 18.1.0 as dev dependencies
  • Allow React 18 addtionally to 16/17 as peer dependencies
  • Added options to local storybook to render components in strict mode
  • Applied fix in isolation from PR #113 in regards to issue https://github.com/aeagle/react---spaces/issues/112 to avoid unmount code in useEffect() running twice in React 18 strict mode

Fix exported types

17 Nov 17:11
1baf7fb
Compare
Choose a tag to compare
  • Ensure ResizeTouchEvent and Type exported from library

Positioned space functionality and custom resize handles

17 Nov 15:12
0761ce6
Compare
Choose a tag to compare
  • 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