Commit Graph

30 Commits

Author SHA1 Message Date
Andrew Kingston 25bafc15d2 Use explicity onDestroy calls rather than an onMount return value to ensure callbacks are actually executed to fix data provider cleanup issues 2021-10-27 14:24:36 +01:00
Andrew Kingston fe35d08422 Fix drag and drop indicator positioning when not using desktop preview 2021-10-06 13:59:25 +01:00
Andrew Kingston 0297b3de3f Simplify some DND style rules 2021-09-21 08:47:43 +01:00
Andrew Kingston eeb0617d2b Enable left/right side targetting for DND 2021-09-21 08:36:02 +01:00
Andrew Kingston dc3df10c58 Reduce DND snap to edge threshold to prevent unwanted target spamming on the edges of the parent component 2021-09-20 16:11:42 +01:00
Andrew Kingston 9febe391bb Refactor DND labels to before and after rather then above and below 2021-09-20 15:35:27 +01:00
Andrew Kingston 488ec4d988 Refactor client app data tags to be classnames and simplify logic 2021-09-20 15:34:51 +01:00
Andrew Kingston e19d17c4f5 Prevent DND targetting either above or below the screen/layout, and fix bug determinging whether a drop target is valid 2021-09-20 09:12:35 +01:00
Andrew Kingston 8cf3971b47 Only allow dropping inside empty components that accept children to massively reduce the amount of unwanted drop targets due to parent container components 2021-09-20 08:26:44 +01:00
Andrew Kingston f0dde4a4a4 Fix a few possible crashes by dragging in certain ways, and display on screen when an invalid drop target is hovered over 2021-09-20 08:06:01 +01:00
Andrew Kingston 7eeb215e51 Refactor to use generic flag for dragging and hide settings bar when dragging 2021-09-17 14:17:50 +01:00
Andrew Kingston cb04b3fa7d Ensure hover indicator is correctly hidden when using DND and improve DND labels 2021-09-16 16:02:45 +01:00
Andrew Kingston 601a4935a9 Ensure transitions work properly when showing and hiding DND candidate positions 2021-09-16 15:49:58 +01:00
Andrew Kingston 46867b8a19 Add labels to DND to describe where the component will be dropped 2021-09-16 15:08:42 +01:00
Andrew Kingston bdc86e4c22 Add above/below dnd and support for dropping above/below components which also allow dropping inside 2021-09-16 14:28:44 +01:00
Andrew Kingston 5c37238c8a Fix progress circle never animating because of wrong default prop 2021-09-16 14:11:05 +01:00
Andrew Kingston 0ce0f5c823 Add initial DND implementation with working functionality for dropping inside components 2021-09-16 07:28:59 +01:00
Andrew Kingston a1615055c3 Rename client app wrapper divs for clarity 2021-09-08 10:28:19 +01:00
Andrew Kingston e1d102c0c3 Update position of indicators in preview to clip better 2021-09-08 09:40:02 +01:00
Andrew Kingston 047cd4ea88 Merge standard-components into the client library 2021-09-01 11:41:48 +01:00
Andrew Kingston 2f05450d79 Ensure client preview indicator doesn't crash when encountering incorrect node types 2021-08-19 12:52:13 +01:00
Andrew Kingston 3e63c276dd Update colors of selection and hover indicators in client apps 2021-07-05 09:37:06 +01:00
Andrew Kingston ca032aa6fe Update colours of selection indicators 2021-06-30 21:23:55 +01:00
Andrew Kingston 6bfcb3fc2b Add better theme compatibility to color picker and client app components 2021-06-30 08:30:57 +01:00
Andrew Kingston 098131099d Add new typography settings, add new settings bar dropdowns, add settings bar to text components 2021-06-23 14:21:37 +01:00
Andrew Kingston 1890dfed29 Adjuts top position of settings bar when no room 2021-06-17 16:23:17 +01:00
Andrew Kingston 63c3310a8f Move HoverIndicator mouseleave handler to body element for better detection rates 2021-06-11 13:17:38 +01:00
Andrew Kingston 7e8e482f8f Improve component empty states and fix selection indicator lockup bug. Fix data provider not exporting loaded context 2021-06-11 08:45:58 +01:00
Andrew Kingston 79993bafda Add placeholders and empty states automatically as required to any empty client components 2021-06-11 08:05:49 +01:00
Andrew Kingston 65d6216d33 Refactor client component structure, fix select bar z index, add titles to container bar settings 2021-06-10 18:42:41 +01:00