tiptap/packages/core/src/index.ts

66 lines
3.2 KiB
TypeScript
Raw Normal View History

import * as extensions from './extensions'
export { extensions }
export * from './Editor'
2020-11-10 23:29:31 +08:00
export * from './Extension'
export * from './Node'
export * from './Mark'
2021-03-17 04:55:40 +08:00
export * from './NodeView'
2021-06-05 05:57:41 +08:00
export * from './Tracker'
export * from './InputRule'
export * from './PasteRule'
export * from './CommandManager'
2020-11-10 23:29:31 +08:00
export * from './types'
export { default as nodeInputRule } from './inputRules/nodeInputRule'
export { default as markInputRule } from './inputRules/markInputRule'
export { default as textblockTypeInputRule } from './inputRules/textblockTypeInputRule'
export { default as textInputRule } from './inputRules/textInputRule'
export { default as wrappingInputRule } from './inputRules/wrappingInputRule'
2020-11-10 23:29:31 +08:00
export { default as markPasteRule } from './pasteRules/markPasteRule'
export { default as textPasteRule } from './pasteRules/textPasteRule'
2020-11-10 23:29:31 +08:00
2021-02-19 16:54:39 +08:00
export { default as callOrReturn } from './utilities/callOrReturn'
export { default as mergeAttributes } from './utilities/mergeAttributes'
2021-03-31 19:44:56 +08:00
2021-04-16 03:14:33 +08:00
export { default as getExtensionField } from './helpers/getExtensionField'
2021-04-03 05:53:04 +08:00
export { default as findChildren } from './helpers/findChildren'
2021-05-17 17:29:41 +08:00
export { default as findChildrenInRange } from './helpers/findChildrenInRange'
2021-04-03 05:53:04 +08:00
export { default as findParentNode } from './helpers/findParentNode'
export { default as findParentNodeClosestToPos } from './helpers/findParentNodeClosestToPos'
2020-11-30 16:42:53 +08:00
export { default as generateHTML } from './helpers/generateHTML'
export { default as generateJSON } from './helpers/generateJSON'
export { default as generateText } from './helpers/generateText'
2020-12-01 16:16:46 +08:00
export { default as getSchema } from './helpers/getSchema'
2020-11-30 16:42:53 +08:00
export { default as getHTMLFromFragment } from './helpers/getHTMLFromFragment'
export { default as getDebugJSON } from './helpers/getDebugJSON'
2021-05-17 17:58:27 +08:00
export { default as getAttributes } from './helpers/getAttributes'
2020-11-30 16:42:53 +08:00
export { default as getMarkAttributes } from './helpers/getMarkAttributes'
2021-05-11 17:22:28 +08:00
export { default as getMarkRange } from './helpers/getMarkRange'
export { default as getMarkType } from './helpers/getMarkType'
export { default as getMarksBetween } from './helpers/getMarksBetween'
2021-05-06 20:52:44 +08:00
export { default as getNodeAttributes } from './helpers/getNodeAttributes'
export { default as getNodeType } from './helpers/getNodeType'
export { default as getText } from './helpers/getText'
export { default as getTextBetween } from './helpers/getTextBetween'
2020-12-01 16:16:46 +08:00
export { default as isActive } from './helpers/isActive'
2021-05-17 17:25:18 +08:00
export { default as isList } from './helpers/isList'
2020-12-01 16:16:46 +08:00
export { default as isMarkActive } from './helpers/isMarkActive'
export { default as isNodeActive } from './helpers/isNodeActive'
2021-03-25 05:23:08 +08:00
export { default as isNodeEmpty } from './helpers/isNodeEmpty'
2021-01-25 06:28:51 +08:00
export { default as isNodeSelection } from './helpers/isNodeSelection'
export { default as isTextSelection } from './helpers/isTextSelection'
export { default as posToDOMRect } from './helpers/posToDOMRect'
2020-11-17 04:54:40 +08:00
2021-06-05 03:56:29 +08:00
// eslint-disable-next-line
export interface Commands<ReturnType = any> {}
2021-02-20 00:35:50 +08:00
// eslint-disable-next-line
2021-10-22 14:52:54 +08:00
export interface ExtensionConfig<Options = any, Storage = any> {}
2021-02-20 00:35:50 +08:00
// eslint-disable-next-line
2021-10-22 14:52:54 +08:00
export interface NodeConfig<Options = any, Storage = any> {}
2021-02-20 00:35:50 +08:00
// eslint-disable-next-line
2021-10-22 14:52:54 +08:00
export interface MarkConfig<Options = any, Storage = any> {}