Virtual branch (#58)
* Added most basic collection block
* moved focusBlock() to src/utils
* renamed textBlocks[type] to isTextBlock[type]
* moved block and baseblock into separate file, moved isTextBlock to a separate util file
Had to alias the type Block in index to avoid some conflicts, but probably gonna rename that type soon too
* removed some unused imports in index, moved Heading to separate component
* removed an unnecessary const in index
* Moved ListMarker from Blocks to Block
* moved some BlockList clickable empty bottom area into a separate component
* moved Block type to Block file, used Block type rather than BlockProps where possible
* move block keyboard handling to another file, split out each key to separate function for ease of viewing
* pulled deleteBlock out into new function, tweaked some incorrect logic about where to focus once block is deleted
* moved areYouSure state to the top of the block component, moved keyabord handleing for are you sure block to BlockKeyboardHandlers, changed block toolbar to use deleteBlock, simplified deleteBlock
* cleaned the block file, added some annotations, minor streamlining
* moved areyousure state after the list marker, and styles the state
* moved around styling for blocks to simplify structure, small tweaks to are you sure in home, renamed preview prop to be more consistant everywhere
* removed some unused imports
* renamed function in useUIState to from selectedBlock => selectedBlocks , and fixed some type errors with are you sure
* renamed focusBlock => focusEntity, renamed parameter inside focusEntity from type =>entityType to avoid confusion
* Moeved areyousure state in toolbar to shared top level
* standardized the casing of multiselect
* removed the border around the are you sure when its in the toolbar
* added zindex to list marker to make sure it stays visible above the multiselection bg
* changed delete block function to focus next block on delete even if multiselected
* fix selected blocks name
* remove collection blocks for now!
---------
Co-authored-by: Jared Pereira <jared@awarm.space>
authored by