When uncompressing file data from a ZIP, limits are now placed on the
amount of bytes read, based on the reported file sizes.
For files, we then check and error if the read size is over the reported
uncompressed file size in the ZIP, instead of relying on the reported
ZIP size from metadata.
Added test to cover.
List endpoint would show attachments for pages which were in the recycle
bin. This adds a deleted_at filter for related pages to the core
permission application query.
Added test to cover.
For #6194
Fixes scenario where page access permissions are changed due to a change
of applied permission scope (where a parent book permissions were
active, but would no longer be post-promotion), but the page visibility
permissions were not being rebuilt.
Added test to cover.
Fixes#6226
Fixed issue where the 'unused' location could be duplicated if a block
is in 'unused' by default, resulting in disappearing block section
options when attempting to configure in the UI.
- Updated examples to ensure they show results of the same page/book.
- Added method to controller to share the same request data logic.
- Tweaked tests.
Updates the content pointer behaviour so it's inserted before/after the
target, instead of just before, depending on selection direction, so it
can stay out of the selection range.
Positioning is absolute relative to a parent content so visually should
be the same result as before.
For #6214
This specifically alters the checkbox label implementation to use the
existing checkbox label instead of always adding an extra label to the
custom checkbox element itself, unless they diverge (like for permission
checkboxes).
Prevents the same IDs from different systems leading to access of other
accounts, and allows registration of same ids under different services.
Thanks to Google and Ada Logics for discovery and reporting.
It now retains existing input where set.
This also updates the modal click handling with an extra click source
check to handle cases where a mousedown event is not emitted, like on
select list dismissals.
Required updating the selection management to ensure they are selected
upon mousedown, for when a drag operation starts.
Also added draggable management, which we have to avoid having there
when open unless a drag is started, otherwise contents are not editable
in chromium browsers.
Fixes behaviour when using cut/copy/drag for items like images or code
blocks.
Also updates history handling to not ignore additions where original
content remains unchanged.
Aligned the linebreak exportdom behaviour to align with how the
reconciler displays line breaks in the editor, by adding an extra line
break to each series of line breaks, so they're now visually the same
across editor and export.
Block formatting on range selection could break when made from bottom to
top, due to using the first selected for insertion position instead of
the first in the doc structure.