Skip to content

Commit

Permalink
fix(list-key-map): fix broken imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbch committed Aug 18, 2023
1 parent 571bea4 commit 1d149e5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { getNodeType } from '@tiptap/core'
import { NodeType } from '@tiptap/pm/model'
import { EditorState } from '@tiptap/pm/state'

import { getNodeType } from '../../../core/src/helpers/getNodeType.js'

export const findListItemPos = (typeOrName: string | NodeType, state: EditorState) => {
const { $from } = state.selection
const nodeType = getNodeType(typeOrName, state.schema)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getNodeAtPosition } from '@tiptap/core'
import { EditorState } from '@tiptap/pm/state'

import { getNodeAtPosition } from '../../../core/src/helpers/getNodeAtPosition.js'
import { findListItemPos } from './findListItemPos.js'

export const getNextListDepth = (typeOrName: string, state: EditorState) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Editor, isAtStartOfNode, isNodeActive } from '@tiptap/core'
import { Node } from '@tiptap/pm/model'

import { Editor } from '../../../core/src/Editor.js'
import { isAtStartOfNode } from '../../../core/src/helpers/isAtStartOfNode.js'
import { isNodeActive } from '../../../core/src/helpers/isNodeActive.js'
import { findListItemPos } from './findListItemPos.js'
import { hasListBefore } from './hasListBefore.js'
import { hasListItemBefore } from './hasListItemBefore.js'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Editor } from '../../../core/src/Editor.js'
import { isAtEndOfNode } from '../../../core/src/helpers/isAtEndOfNode.js'
import { isNodeActive } from '../../../core/src/helpers/isNodeActive.js'
import { Editor, isAtEndOfNode, isNodeActive } from '@tiptap/core'

import { nextListIsDeeper } from './nextListIsDeeper.js'
import { nextListIsHigher } from './nextListIsHigher.js'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { getNodeType } from '@tiptap/core'
import { Node } from '@tiptap/pm/model'
import { EditorState } from '@tiptap/pm/state'

import { getNodeType } from '../../../core/src/helpers/getNodeType.js'

export const listItemHasSubList = (typeOrName: string, state: EditorState, node?: Node) => {
if (!node) {
return false
Expand Down

0 comments on commit 1d149e5

Please sign in to comment.