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

Merge TabIndentionPlugin and ListMaxIndentLevelPlugin plugins #7013

Closed
wants to merge 2 commits into from

Conversation

fantactuka
Copy link
Contributor

@fantactuka fantactuka commented Jan 2, 2025

  • Adds INDENT_CONTENT_COMMAND optional maxIndent param that handles both list and block indent
  • Adds TabIndentionPlugin support for maxIndent
  • Removes ListMaxIndentLevelPlugin as redundant

Copy link

vercel bot commented Jan 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ❌ Failed (Inspect) Jan 6, 2025 3:48pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 6, 2025 3:48pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 2, 2025
Copy link

github-actions bot commented Jan 2, 2025

size-limit report 📦

Path Size
lexical - cjs 31.39 KB (0%)
lexical - esm 31.19 KB (0%)
@lexical/rich-text - cjs 40.47 KB (0%)
@lexical/rich-text - esm 33.12 KB (0%)
@lexical/plain-text - cjs 39.04 KB (0%)
@lexical/plain-text - esm 30.37 KB (0%)
@lexical/react - cjs 42.3 KB (0%)
@lexical/react - esm 34.42 KB (0%)

ivailop7
ivailop7 previously approved these changes Jan 2, 2025
Copy link
Collaborator

@etrepum etrepum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems that this has at least one consistently failing test

  1) [chromium] › packages/lexical-playground/__tests__/e2e/ListMaxIndentLevel.spec.mjs:34:3 › Nested List › Can only indent until the max depth when list is empty 

@fantactuka fantactuka changed the title Add max-indent for INDENT_CONTENT_COMMAND and corresponding plugins Merge TabIndentionPlugin and ListMaxIndentLevelPlugin plugins Jan 6, 2025
@fantactuka
Copy link
Contributor Author

fantactuka commented Jan 6, 2025

Moved max indent logic into intent plugin, should be easier to use vs explicitly passing max indent with every INDENT_CONTENT command. So it's basically merging MaxListIndent plugin into IndentPlugin with adjustments to handle non-list elements as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants