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

[Release] Version packages #3571

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions .changeset/witty-turkeys-fix.md

This file was deleted.

2 changes: 2 additions & 0 deletions packages/plate/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @udecode/plate

## 38.0.9

## 38.0.8

## 38.0.7
Expand Down
4 changes: 2 additions & 2 deletions packages/plate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@udecode/plate",
"version": "38.0.8",
"version": "38.0.9",
"description": "Plate – a plugin system for slate",
"keywords": [
"contentEditable",
Expand Down Expand Up @@ -91,7 +91,7 @@
"@udecode/plate-reset-node": "38.0.1",
"@udecode/plate-resizable": "38.0.0",
"@udecode/plate-select": "38.0.1",
"@udecode/plate-selection": "38.0.7",
"@udecode/plate-selection": "38.0.9",
"@udecode/plate-slash-command": "38.0.1",
"@udecode/plate-suggestion": "38.0.1",
"@udecode/plate-tabbable": "38.0.1",
Expand Down
43 changes: 43 additions & 0 deletions packages/selection/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
# @udecode/plate-selection

## 38.0.9

### Patch Changes

- [#3569](https://github.com/udecode/plate/pull/3569) by [@felixfeng33](https://github.com/felixfeng33) – Remove the Div rendered above the editor.

This div is to solve the issue of the browser's default scrolling behavior being too fast.

However, it caused some other issues and complicated configurations, such as being unable to focus on the editor when clicking the padding-right area.

If you think this issue is more important, you refer to the flowing code.

```tsx
BlockSelectionPlugin.configure({
render: {
aboveEditable: ({ children }) => {
return ( <div style={{ position: 'relative', width: '100%' }}>
{/*
*select text then move cursor to the very bottom will trigger the default browser behavior
*this div is a workaround to prevent the default browser behavior (set userSelect: none)
*Make sure the div with is the same with the editor's padding-right
*/}

{/* TODO: click to focus the node */}
<div
style={{
height: '100%',
position: 'absolute',
right: 0,
top: 0,
userSelect: 'none',
width: editorPaddingRight ?? 'max(5%, 24px)',
zIndex: 1,
}}
data-plate-selectable
/>
{children}
</div>)
},
},
}),
```

## 38.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/selection/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@udecode/plate-selection",
"version": "38.0.7",
"version": "38.0.9",
"description": "Plate React plugin to add a visual way of selecting blocks",
"keywords": [
"plate",
Expand Down