Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens committed Jul 19, 2024
1 parent b951ffa commit 88592ce
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-deers-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@udecode/plate-core': patch
---

Fix rsc: remove useFocusEditorEvents from server bundle
5 changes: 5 additions & 0 deletions packages/core/src/client/plugins/event-editor/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* @file Automatically generated by barrelsby.
*/

export * from './useFocusEditorEvents';
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import { useEffect } from 'react';

import type { Value } from '@udecode/slate';

import type { PlateEditor } from '../../types';
import type { PlateEditor } from '../../../shared/types';

import { BLUR_EDITOR_EVENT, FOCUS_EDITOR_EVENT } from './constants';
import {
BLUR_EDITOR_EVENT,
FOCUS_EDITOR_EVENT,
} from '../../../shared/plugins/event-editor/constants';

export const useFocusEditorEvents = ({
editorRef,
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/client/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
*/

export * from './withPlate';
export * from './event-editor/index';
export * from './react/index';
1 change: 0 additions & 1 deletion packages/core/src/shared/plugins/event-editor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ export * from './constants';
export * from './createEventEditorPlugin';
export * from './eventEditorStore';
export * from './getEventPlateId';
export * from './useFocusEditorEvents';

0 comments on commit 88592ce

Please sign in to comment.