Feature/canvas (#61)
* test canvas
* add super basic canvas page type
* full width canvas page previews
* oops add back add block button
* make add block button cute
* add gripper to the canvas block
* add basic resizing
* styled resize handle!
* make backspace to delete a block work on canvases
and if you're the first block on a doc
* handle long press to select on canvas blocks
* handle spatial referencees in more places
* whoops didnt actually push anything last time?
* make enter in textblocks sorta work!
* make canvas height minheight
* don't show move block buttons on canvas
* deselect blocks if you click canvas bg
* fix canvas previews on home and bg in blocks
* share styles between canvas and doc page preview blocks
* hide grippers on preview
* add rotation to canvas elements
* add gripper bg
* sort canvas items to always visible
* make canvas bg theme based
* create new canvas item next to new item button
* add pagetype doc to blocks component
* replaced block options with block cmd bar
* add z-index to item when dragging
* tweaked gripper styles
* basic slash command stuff
* highlight first item of commands
* added canvas block icon, renamed doc page block icon, little style tweaks to the cmd menu
* translate then rotate on cnavas
* styled empty states for link and image blocks, added some keyboard stuff and selected styling to them
* fixed overflowing issue with externalLinkBlocks if the title is very long with no word breaks
* removed a lil weirdness in the svg for canvas icon
* tweak scroll behavior
* added a switcher toggle to pages. TODO, only show switcher if page is empty
* lil positioning fixes cause i borked up the stickiness of the toolbar
* idk man some notion of long pressing on mobile does stuff
* fix some hydration issues!
* don't show page toggle if page isn't empty
* double/ctrl/cmd click to add a card to canvas
* added canvas resizing
* fixed issue with block toolbar not closing
* add lil command button to text blocks
* fix positioning on enter for textblocks
* add are u sure state to canvas blocks
* added some padding to the drag handle, added padding to whole block (for better hovering
* added some styling to the / button
* tweaked empty state langauge
* persist canvas width toggle
* add migration to update all facts to support spatial ref
---------
Co-authored-by: celine <celine@hyperlink.academy>
authored by
awarm.space