Releases: aeagle/react-spaces
Releases · aeagle/react-spaces
Styling fixes for height and z-index applied to spaces
- Fixed generation of head styles height and z-index which were missing a semi-colon.
Added Custom space and improved resize event functionality
- 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
- Added onMouseMove, onTouchStart, onTouchMove and onTouchEnd events.
Cleaner markup with less inline styling and miscellaneous bug fixes/optimisations
- 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
- Fix to ensure spaces in same parent are updated when a space zIndex is adjusted.
Added resize events and various bug fixes
- 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
- 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
- Added touch resize functionality.
- Remove old docs from demo project.
Layered spaces implementation
- Added component and layer support to allow floating of spaces above each other.
Migrated from webpack to rollup for library build
- 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.