Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable30] fix(paragraph): migrate preview options to decorations #6431

Merged
merged 13 commits into from
Sep 23, 2024

Commits on Sep 23, 2024

  1. enh: add extractLinkParagraphs

    Signed-off-by: Max <[email protected]>
    max-nextcloud authored and mejo- committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    90a6b13 View commit details
    Browse the repository at this point in the history
  2. refactor(test): reuse link string

    Signed-off-by: Max <[email protected]>
    max-nextcloud authored and mejo- committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    5bb8981 View commit details
    Browse the repository at this point in the history
  3. enh(preview): include previews in list of link paragraphs

    Render the preview options as a decoration for previews too.
    
    Signed-off-by: Max <[email protected]>
    max-nextcloud authored and mejo- committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    88716d9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9eb06cc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9e0619b View commit details
    Browse the repository at this point in the history
  6. enh(preview): add nodeSize in decoration data structure

    Required for implementing `deleteNode` like tiptap does it:
    https://github.com/ueberdosis/tiptap/blob/develop/packages/core/src/NodeView.ts#L305
    
    Signed-off-by: Max <[email protected]>
    max-nextcloud authored and mejo- committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    2f2660b View commit details
    Browse the repository at this point in the history
  7. fix(preview): use deleteRange to remove the node

    Compute the range based on offset and nodeSize.
    
    Signed-off-by: Max <[email protected]>
    max-nextcloud authored and mejo- committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    6f824bf View commit details
    Browse the repository at this point in the history
  8. fix(preview): Fix alignment of preview options

    - center align options for text links
    - top align options for preview links
    
    Signed-off-by: Jonas <[email protected]>
    mejo- committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    cf3de35 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    83c528f View commit details
    Browse the repository at this point in the history
  10. fix(preview): Don't let preview options container overlay paragraph

    Otherwise the overlay container would catch all the click events.
    
    Signed-off-by: Jonas <[email protected]>
    mejo- committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    7fc2f53 View commit details
    Browse the repository at this point in the history
  11. fix(preview): Fix some linting issues

    Signed-off-by: Jonas <[email protected]>
    mejo- committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    f8076a8 View commit details
    Browse the repository at this point in the history
  12. test(cy): Fix selectors for paragraphs in cypress tests

    Signed-off-by: Jonas <[email protected]>
    mejo- committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    4971428 View commit details
    Browse the repository at this point in the history
  13. fix(preview): Further improvements

    * Don't calculate preview options decorations in readonly editor
    * Check for changed nodeSize when checking for decoration changes
    * Rename `editor` to `$editor` in vue compontent, it's not reactive
    
    Signed-off-by: Jonas <[email protected]>
    mejo- committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    500577a View commit details
    Browse the repository at this point in the history