Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(blocks): prevent
indent
when already a leaf block, prevent `ind…
…ent` and `unindent` when already a top-level child (athensresearch#228) * fix(blocks): prevent unindent when already a top-level child in current context (athensresearch#209) If the node being unindented is the top-level node in the current context, prevent unindent by checking if parent node id is equal to id present in :current-route object. Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com> * fix(blocks): prevent indent when already a leaf block (athensresearch#209) A leaf block is a block with block order 0. If the block order is 0, do not indent and return a no-op in the indent event handler Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com> * fix: prevent default browser behavior for tab and shift+tab when there is no indent or unindent happening (athensresearch#209) Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com> * fix(blocks) - Refactor indent and unindent event handlers * Move the block zero check in indent event handler to the on-key-down handler since it doesn't require any re-frame or datascript subscriptions * Rename context-root to context-root-uid and remove unnecessary comment in unindent event handler * Use the stricter parent ID to context-root uid check instead of (and parent grandpa) in unindent event handler Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com> * Add missing devtool devcard deps (athensresearch#229) * feat(blocks): Drag n drop v2. use local listeners instead of global. decompose monolith block-el (athensresearch#232) * line 524 of blocks. if I use a dispatch, on-drag-end doesn't get called * feat(blocks): drag and drop PoC for local event handlers. refactor block-el Co-authored-by: Adrien Lacquemant <github@alaq.io> Co-authored-by: nthd3gr33 <codinginenglish@gmail.com> Co-authored-by: Tom H <git@tomisme.com> Co-authored-by: jeff <tangj1122@gmail.com>
- Loading branch information