Skip to content

Commit

Permalink
Version Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 23, 2024
1 parent dbbef07 commit e255fb1
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 44 deletions.
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

0 comments on commit e255fb1

Please sign in to comment.