Skip to content

Commit

Permalink
refactor(editor): rename createWithInsertBreak.ts->behavior.action.in…
Browse files Browse the repository at this point in the history
…sert-break.ts
  • Loading branch information
christianhg committed Oct 30, 2024
1 parent 5de869b commit 2ba9bb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {isEqual} from 'lodash'
import {Editor, Node, Path, Range, Transforms} from 'slate'
import type {SlateTextBlock, VoidElement} from '../../types/slate'
import type {BehaviourActionImplementation} from '../behavior/behavior.actions'
import type {BehaviorAction, PickFromUnion} from '../behavior/behavior.types'
import type {BehaviourActionImplementation} from './behavior.actions'
import type {BehaviorAction, PickFromUnion} from './behavior.types'

export const insertBreakActionImplementation: BehaviourActionImplementation<
PickFromUnion<BehaviorAction, 'type', 'insert break' | 'insert soft break'>
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/editor/behavior/behavior.actions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {deleteBackward, Editor, insertText, Transforms} from 'slate'
import type {PortableTextMemberSchemaTypes} from '../../types/editor'
import {toSlateRange} from '../../utils/ranges'
import {insertBreakActionImplementation} from '../plugins/createWithInsertBreak'
import {insertBreakActionImplementation} from './behavior.action.insert-break'
import type {
BehaviorAction,
BehaviorEvent,
Expand Down

0 comments on commit 2ba9bb4

Please sign in to comment.