Skip to content

Commit

Permalink
refactor(editor): rename usePortableTextEditorKeyGenerator.ts->key-ge…
Browse files Browse the repository at this point in the history
…nerator.ts
  • Loading branch information
christianhg committed Oct 4, 2024
1 parent a5939a6 commit 8c1face
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/editor/src/editor/PortableTextEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import {SlateContainer} from './components/SlateContainer'
import {Synchronizer} from './components/Synchronizer'
import {editorMachine, type EditorActor} from './editor-machine'
import {PortableTextEditorContext} from './hooks/usePortableTextEditor'
import {defaultKeyGenerator} from './hooks/usePortableTextEditorKeyGenerator'
import {PortableTextEditorSelectionProvider} from './hooks/usePortableTextEditorSelection'
import {PortableTextEditorReadOnlyContext} from './hooks/usePortableTextReadOnly'
import {defaultKeyGenerator} from './key-generator'

const debug = debugWithName('component:PortableTextEditor')

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/editor/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export {
type PatchEvent,
} from './editor/editor-machine'
export {usePortableTextEditor} from './editor/hooks/usePortableTextEditor'
export {defaultKeyGenerator as keyGenerator} from './editor/hooks/usePortableTextEditorKeyGenerator'
export {defaultKeyGenerator as keyGenerator} from './editor/key-generator'
export {usePortableTextEditorSelection} from './editor/hooks/usePortableTextEditorSelection'
export {PortableTextEditor} from './editor/PortableTextEditor'
export type {PortableTextEditorProps} from './editor/PortableTextEditor'
Expand Down

0 comments on commit 8c1face

Please sign in to comment.