-
Notifications
You must be signed in to change notification settings - Fork 116
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
Changes from 18 commits
d2d4e8e
48c8aa2
f92e555
ddd760d
05bcc13
234ad90
5cdb204
0a3acc2
7058625
208f76b
f0eb9e5
4c497ee
798a332
af844f1
e09be57
2508560
9644838
489b609
9a6637a
d641f5c
f8aa69d
90b249f
b19bda2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,10 +12,6 @@ import { RichTextPage } from './RichTextPage'; | |
describe('Rich Text Editor', { viewportHeight: 2000 }, () => { | ||
let richText: RichTextPage; | ||
|
||
// 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'; | ||
const buildHelper = | ||
(type) => | ||
(...children) => | ||
|
@@ -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', () => { | ||
aodhagan-cf marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Totally agree, will sync with @colomolo on this tomorrow |
||
insertTable(); | ||
|
||
richText.editor.type(`hey{${mod}}a{backspace}`); | ||
richText.editor | ||
.type(`hey`) | ||
.type('{shift}{downarrow}', { | ||
delay: 100, | ||
}) | ||
.type('{backspace}'); | ||
|
||
richText.expectValue( | ||
doc( | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,18 +49,18 @@ | |
"@contentful/rich-text-plain-text-renderer": "^16.0.4", | ||
"@contentful/rich-text-types": "16.3.0", | ||
"@popperjs/core": "^2.11.5", | ||
"@udecode/plate-basic-marks": "23.7.0", | ||
"@udecode/plate-break": "23.7.0", | ||
"@udecode/plate-common": "23.7.0", | ||
"@udecode/plate-core": "23.6.0", | ||
"@udecode/plate-list": "23.7.0", | ||
"@udecode/plate-paragraph": "23.7.0", | ||
"@udecode/plate-reset-node": "23.7.0", | ||
"@udecode/plate-select": "23.7.0", | ||
"@udecode/plate-basic-marks": "30.1.2", | ||
"@udecode/plate-break": "30.1.2", | ||
"@udecode/plate-common": "30.1.2", | ||
"@udecode/plate-core": "30.1.2", | ||
"@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", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
"@udecode/plate-serializer-html": "23.7.0", | ||
"@udecode/plate-table": "23.7.0", | ||
"@udecode/plate-trailing-block": "23.7.0", | ||
"@udecode/plate-serializer-html": "30.1.2", | ||
"@udecode/plate-table": "30.1.2", | ||
"@udecode/plate-trailing-block": "30.1.2", | ||
"constate": "3.2.0", | ||
"fast-deep-equal": "^3.1.3", | ||
"is-hotkey": "^0.2.0", | ||
|
@@ -69,7 +69,7 @@ | |
"slate": "0.94.1", | ||
"slate-history": "0.100.0", | ||
"slate-hyperscript": "0.77.0", | ||
"slate-react": "0.98.3" | ||
"slate-react": "0.102.0" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.14.0", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was unused?
There was a problem hiding this comment.
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