Skip to content
Merged
16 changes: 10 additions & 6 deletions packages/common/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,18 @@ export {MarkHandler, type MarkOptions, type RefAccessor} from './src/features/ma

// Blocks
export {
splitTokensIntoBlocks,
reorderBlocks,
addBlock,
deleteBlock,
duplicateBlock,
splitTokensIntoDragRows,
splitTextByBlockSeparator,
reorderDragRows,
addDragRow,
deleteDragRow,
duplicateDragRow,
mergeDragRows,
getMergeDragRowJoinPos,
BLOCK_SEPARATOR,
getAlwaysShowHandle,
getAlwaysShowHandleDrag,
type Block,
type TextPart,
} from './src/features/blocks'

// Navigation & Input
Expand Down
126 changes: 0 additions & 126 deletions packages/common/core/src/features/blocks/blockOperations.spec.ts

This file was deleted.

72 changes: 0 additions & 72 deletions packages/common/core/src/features/blocks/blockOperations.ts

This file was deleted.

This file was deleted.

4 changes: 2 additions & 2 deletions packages/common/core/src/features/blocks/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const BLOCK_SEPARATOR = '\n\n'

export function getAlwaysShowHandle(block: boolean | {alwaysShowHandle: boolean}): boolean {
return typeof block === 'object' && !!block.alwaysShowHandle
export function getAlwaysShowHandleDrag(drag: boolean | {alwaysShowHandle: boolean}): boolean {
return typeof drag === 'object' && !!drag.alwaysShowHandle
}
Loading
Loading