From 2ba9bb46ad80fc2baf3178b81f48e6722e67ec53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Hamburger=20Gr=C3=B8ngaard?= Date: Wed, 30 Oct 2024 15:16:53 +0100 Subject: [PATCH] refactor(editor): rename createWithInsertBreak.ts->behavior.action.insert-break.ts --- .../behavior.action.insert-break.ts} | 4 ++-- packages/editor/src/editor/behavior/behavior.actions.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename packages/editor/src/editor/{plugins/createWithInsertBreak.ts => behavior/behavior.action.insert-break.ts} (97%) diff --git a/packages/editor/src/editor/plugins/createWithInsertBreak.ts b/packages/editor/src/editor/behavior/behavior.action.insert-break.ts similarity index 97% rename from packages/editor/src/editor/plugins/createWithInsertBreak.ts rename to packages/editor/src/editor/behavior/behavior.action.insert-break.ts index bbc3f79af..50af34eea 100644 --- a/packages/editor/src/editor/plugins/createWithInsertBreak.ts +++ b/packages/editor/src/editor/behavior/behavior.action.insert-break.ts @@ -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 diff --git a/packages/editor/src/editor/behavior/behavior.actions.ts b/packages/editor/src/editor/behavior/behavior.actions.ts index fec4295c9..a9cd01490 100644 --- a/packages/editor/src/editor/behavior/behavior.actions.ts +++ b/packages/editor/src/editor/behavior/behavior.actions.ts @@ -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,