@@ -37,8 +37,8 @@ Use the [CLI](https://platejs.org/docs/components/cli) to install the latest ver
3737
3838### February 5 #8 .1
3939
40- - fix ` mention-element ` : Mention input removed when clicking mention combobox scrollbar
41- ([ #2919 ] ( https://github.com/udecode/plate/issues/2919 ) )
40+ - fix ` mention-element ` : Mention input removed when clicking mention combobox scrollbar
41+ ([ #2919 ] ( https://github.com/udecode/plate/issues/2919 ) )
4242
4343## January 2024 #7
4444
@@ -55,7 +55,7 @@ Use the [CLI](https://platejs.org/docs/components/cli) to install the latest ver
5555### January 9 #7 .3
5656
5757- ` toolbar `
58- - ` Toolbar ` : replace ` items-stretch ` with ` items-center `
58+ - ` Toolbar ` : replace ` items-stretch ` with ` items-center `
5959 - use ` toolbarButtonVariants ` instead of ` toggleVariants `
6060 - fix ` value ` prop type bug
6161 - uses now ` withTooltip ` , so replace ` [data-state=on] ` with ` aria-checked ` to avoid conflicts
@@ -68,11 +68,9 @@ Use the [CLI](https://platejs.org/docs/components/cli) to install the latest ver
6868
6969``` tsx
7070// Before
71- export const TableElement = withRef <typeof PlateElement >(
72- ({ className , children , ... props }, ref ) => {
73- // ...
74- }
75- );
71+ export const TableElement = withRef <typeof PlateElement >(({ className , children , ... props }, ref ) => {
72+ // ...
73+ });
7674
7775// After
7876export const TableElement = withHOC (
@@ -94,12 +92,9 @@ export const TableElement = withHOC(
9492- remove ` clsx ` from dependency: ` class-variance-utility ` already exports it as ` cx `
9593- new dependency: ` @udecode/cn `
9694- remove ` @/lib/utils.ts ` in favor of ` cn ` from ` @udecode/cn ` . Replace all imports from ` @/lib/utils ` with ` @udecode/cn `
97- - import ` withProps ` from ` @udecode/cn ` instead of ` @udecode/plate-common
98-
99- `
100-
95+ - import ` withProps ` from ` @udecode/cn ` instead of ` @udecode/plate-common `
10196- all components using ` forwardRef ` are now using ` withRef ` . ` withProps ` , ` withCn ` and ` withVariants ` are also used to reduce boilerplate.
102- - add ` withCn ` to ESLint ` settings.tailwindcss.callees ` and ` classAttributes ` in your IDE settings
97+ - add ` withCn ` to ESLint ` settings.tailwindcss.callees ` and ` classAttributes ` in your IDE settings
10398
10499``` tsx
105100// before
@@ -127,6 +122,7 @@ export const Avatar = withCn(
127122);
128123```
129124
125+
130126### December 25 #6 .2
131127
132128- [ dialog] ( https://github.com/udecode/plate/pull/2824/files#diff-5f7205cdd85718b7f26cef1e746ad67d69c83703135a7e3ad1a9a09ca69c38c8 )
@@ -166,7 +162,7 @@ export const Avatar = withCn(
166162### 18 Sept #4 .4
167163
168164- ` editor ` : New component 🎉 See [ Editor] ( https://platejs.org/docs/components/editor )
169- - ` fixed-toolbar-buttons ` , ` floating-toolbar-buttons ` , ` mode-dropdown-menu ` :
165+ - ` fixed-toolbar-buttons ` , ` floating-toolbar-buttons ` , ` mode-dropdown-menu ` :
170166 - plate 24: rename ` usePlateReadOnly ` to ` useEditorReadOnly `
171167- ` code-block-element ` : changes in ` code-block-element.css `
172168
0 commit comments