Skip to content

Releases: aeagle/react-spaces

Styling fixes for height and z-index applied to spaces

08 Dec 23:18
Compare
Choose a tag to compare
  • Fixed generation of head styles height and z-index which were missing a semi-colon.

Added Custom space and improved resize event functionality

08 Dec 23:19
909395c
Compare
Choose a tag to compare
  • Added Custom space to allow access to all space properties.
  • Allowed false to be returned from onResizeStart event callback to conditionally cancel resize operation.

Added mouse/touch events to spaces

08 Dec 23:20
9a57cd8
Compare
Choose a tag to compare
  • Added onMouseMove, onTouchStart, onTouchMove and onTouchEnd events.

Cleaner markup with less inline styling and miscellaneous bug fixes/optimisations

08 Dec 23:21
e08375a
Compare
Choose a tag to compare
  • Moved child state and recalculation of child spaces to the parent space to remove synchronisation issues causing various update issues.
  • Moved space styles to document head to generate cleaner mark-up. All spaces now get a auto-generated short ID which can be overriden with the id property on a space.
  • Removed the need for an outer and inner container on all spaces except for when a space is resizable and scrollable to allow the space to maintain the resize handle location.
  • Optimised touch resize actions preventing default browser actions using css touch-action and changing debounce to throttling on resize updates.

Ensure spaces kept in sync with zIndex changes

08 Dec 23:22
d45dc32
Compare
Choose a tag to compare
  • Fix to ensure spaces in same parent are updated when a space zIndex is adjusted.

Added resize events and various bug fixes

08 Dec 23:25
Compare
Choose a tag to compare
  • Added resize start and end events
  • Fixed useContext hook being used within condition expression causing 'React has detected a change in the order of Hooks called by SpaceInternal' error when zIndex property updated on space.
  • Fix to ensure debounced resize (mouse/touch) events do not fire after mouse up or touch end events have fired.
  • Fix to ensure mouse up and touch end events are unbound after a resize operation has completed to prevent multiple event handlers being bound on every resize operation.

Added proptypes validation to components + bug fixes

08 Dec 23:26
Compare
Choose a tag to compare
  • Fix to ensured resize delta is reset when size property changed on anchored and resizable spaces
  • Added PropTypes for all exposed components for Javascript only consumers in addition to the Typescript typings in the library.
  • Fix when multiple classes provided as property to space to prevent a duplication of class names on the outer and inner space elements.

Touch resize functionality

08 Dec 23:26
6488d86
Compare
Choose a tag to compare
  • Added touch resize functionality.
  • Remove old docs from demo project.

Layered spaces implementation

08 Dec 23:27
48ea684
Compare
Choose a tag to compare
  • Added component and layer support to allow floating of spaces above each other.

Migrated from webpack to rollup for library build

08 Dec 23:28
Compare
Choose a tag to compare
  • Migrated from Webpack to Rollup for building component library
  • Created ES module bundles in /dist/es
  • Fixed window undefined error when rendering spaces via Next.js
  • Created server bundle /dist/server for using with Node.js server side apps when utilising SSR, e.g. Next.js and separated styling from server bundle (/dist/server.css). This is currently experimental.