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

feat: bumping plate to v30 [TOL-1834] #1605

Merged
merged 23 commits into from
Feb 20, 2024
Merged

feat: bumping plate to v30 [TOL-1834] #1605

merged 23 commits into from
Feb 20, 2024

Conversation

aodhagan-cf
Copy link
Contributor

Bumping the plate plugin dependencies for rich text to v30

"@udecode/plate-list": "30.1.2",
"@udecode/plate-paragraph": "30.1.2",
"@udecode/plate-reset-node": "30.1.2",
"@udecode/plate-select": "30.1.2",
"@udecode/plate-serializer-docx": "23.7.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

A lot of the pasting from word online and google doc break with this update. Probably better to handle in another ticket

@github-actions github-actions bot added the tests label Feb 14, 2024
packages/rich-text/src/plugins/Table/createTablePlugin.ts Outdated Show resolved Hide resolved
// copied from the 'is-hotkey' library we use for RichText shortcuts
const IS_MAC =
typeof window != 'undefined' && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform);
const mod = IS_MAC ? 'meta' : 'control';
Copy link
Member

Choose a reason for hiding this comment

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

It was unused?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not used anymore, highlighting table content in a different way now as the test was breaking due to the CMD+A logic

@aodhagan-cf aodhagan-cf marked this pull request as ready for review February 19, 2024 14:23
@aodhagan-cf aodhagan-cf requested a review from a team as a code owner February 19, 2024 14:23
@colomolo
Copy link
Contributor

Wonder, how we're gonna merge these 🫠
#1565

Copy link
Member

@z0al z0al left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏻 . Left a comment that can be handled in a follow up

@@ -177,10 +173,15 @@ describe('Rich Text Editor', { viewportHeight: 2000 }, () => {
);
});

it('does not delete table header cells when selecting the whole table', () => {
it('does not delete table header cells when selecting the whole header row', () => {
Copy link
Member

Choose a reason for hiding this comment

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

I'd argue this is now a completely different test and probably worth a follow up to see if it's even needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Totally agree, will sync with @colomolo on this tomorrow

@aodhagan-cf aodhagan-cf merged commit db22a21 into master Feb 20, 2024
14 checks passed
@aodhagan-cf aodhagan-cf deleted the feat/TOL-1834 branch February 20, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants