* refactor(admin): move to use slice over reducer
* refactor(admin): theme into redux
* refactor(admin): remove Admin context
* chore: move api tokens context to its edit view
* chore: move injection zones up to appropriate folders
we never use shared anyway.
* chore: move Configuration to single feature file
* refactor(admin): move language to redux
* chore: add tests for redux slice
* feat: updated useDragAndDrop hook to enable DND for blocks where path is not a number but number[], wrapped renderElement with Dnd component to have ability to move blocks around in editor
* fix: useDragandDrop hook updated to accept number[] for moving heirarchy of nodes, cmd/ctrl + shift + up/down arrow to move blocks around using keyboard, set live text on moving blocks for accessibility
* fix: when node is dragged downwards inside list convert it to list-item
* fix: index type updated
* style: margin added to preview block as droppable area needs some height to drop the item
* refactor: updated context, code optimisation, added necessary comments
* docs: updated use-drag-and-drop hook doc
* fix: type NonSelectorBlock
* Revert "fix: type NonSelectorBlock"
This reverts commit c3cb3c15442ba0008c650cbe38e993b0aa44817c.
* fix: block value type
* fix: type of onMoveItem() in useKeyboardDragAndDrop
* fix: selection issue resolved, ondragstart styling updated, grab cursor added back, missing comments added
* update: VisuallyHidden with aria-hidden attr added
* fix: minor fix
* update: link block dropped from dnd, test cases updated
* fix: if list node is empty after dragging remove it, drag handle aligned at the start
* update: link is inline block so skip wrapping dnd component
* Update: comment
Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
* fix: types updated, disabled state managed for drag item
* update: IconButton is used for drag handler, refered getAttributesToClear from utils
* update: on drop blocks are moved, updated useDragAndDrop hook and related changes, instead of blue line showing border box around drop target for now
* update: canDrag, canDrop options removed, as its not required for onDropItem()
* fix: dragging is enabled only on drag button
* fix: quote block padding and margin reduced
* update: useDragAndDrop hook doc
* update: useDragAndDrop hook doc with onDropItem usage
* update: drop placeholder added
* fix: missing condition check added
* update: useDragAndDrop hook doc
* update: useDragAndDrop and useKeyboardDragAndDrop hook converted to TS, styling changes related to list and quote
* fix: types updated for useDragAndDrop hook, tooltip disabled for drag button
* fix: mock event typecasted as its not possible to add all required props for type event
* fix: deleted useDragAndDrop js file
* fix: drag handle is made visible on hover, hide on selection change
* fix: history undo
* fix: dragging block into list-item, drop item at right position
* fix: placeholder margin adjusted for list items
* fix: cloned drag item extracted
* fix: dragging list-item out of block downward
* chore: refactor dnd hook to use generics (#18994)
* fix: required block types exported, manual id creation replaced with useId
* update: drag handle top margin added for few headings
* fix: extended useDropAndDropOptions callback types, comments updated
* fix: drag handle top margin added for all required blocks, selection bug fixed
* fix: reordering between different list-items
---------
Co-authored-by: Rémi de Juvigny <8087692+remidej@users.noreply.github.com>
Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
* feat(content-releases): delete a release endpoint
* feat(content-releases): delete actions when deleting a release
* feat(content-releases): apply mark's feedback
* feat(content-releases): use transaction for delete a release
In the examples and project templates the "errors" middleware which turn
thrown errors into HTTP responses is registered before the "logger"
middleware. This causes any errors thrown in controllers to pierce
through the logger middleware resulting in these requests not being
logged.
Eg. when a controller throws a ValidationError the resulting HTTP 400
request is not logged at all.
Change the order of middleware registration so that the logger is
'above' the errors middleware and has a chance to log *all* requests.
Co-authored-by: DMehaffy <derrickmehaffy@gmail.com>
* first draft implementation edit release
* add dialog unit test
* add permission to the edit button
* add permissions type and remove old unit test
* add createAction to the PermissionMap
* fix type errors
* fix unit test
* fix lint error
* fix review comments
* change state naming
* change dialog to modal