diff --git a/projects/editor/extensions/markdown/clipboard/index.ts b/projects/editor/extensions/markdown/clipboard/index.ts index 64b91ee8f..cda2f34b8 100644 --- a/projects/editor/extensions/markdown/clipboard/index.ts +++ b/projects/editor/extensions/markdown/clipboard/index.ts @@ -1,9 +1,10 @@ -import {tuiElementFromString} from '@taiga-ui/editor/extensions/markdown/util'; import {Extension} from '@tiptap/core'; import type {Slice} from '@tiptap/pm/model'; import {DOMParser} from '@tiptap/pm/model'; import {Plugin, PluginKey} from '@tiptap/pm/state'; +import {tuiElementFromString} from '../util/dom'; + export const TuiMarkdownClipboard = Extension.create({ name: 'markdownClipboard', addOptions() { diff --git a/projects/editor/extensions/markdown/clipboard/ng-package.json b/projects/editor/extensions/markdown/clipboard/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/clipboard/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extension/index.ts b/projects/editor/extensions/markdown/extension/index.ts index 0d2ac9454..acccb8f96 100644 --- a/projects/editor/extensions/markdown/extension/index.ts +++ b/projects/editor/extensions/markdown/extension/index.ts @@ -1,9 +1,10 @@ -import {TuiMarkdownClipboard} from '@taiga-ui/editor/extensions/markdown/clipboard'; -import {TuiEditorMarkdownParser} from '@taiga-ui/editor/extensions/markdown/parse'; -import {TuiMarkdownSerializer} from '@taiga-ui/editor/extensions/markdown/serialize'; -import {TuiMarkdownTightLists} from '@taiga-ui/editor/extensions/markdown/tight-lists'; import {Extension, extensions} from '@tiptap/core'; +import {TuiMarkdownClipboard} from '../clipboard'; +import {TuiEditorMarkdownParser} from '../parse'; +import {TuiMarkdownSerializer} from '../serialize'; +import {TuiMarkdownTightLists} from '../tight-lists'; + export const TuiMarkdown = Extension.create({ name: 'markdown', priority: 50, diff --git a/projects/editor/extensions/markdown/extension/ng-package.json b/projects/editor/extensions/markdown/extension/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extension/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/index.ts b/projects/editor/extensions/markdown/extensions/index.ts index a371ac550..438d687ee 100644 --- a/projects/editor/extensions/markdown/extensions/index.ts +++ b/projects/editor/extensions/markdown/extensions/index.ts @@ -1,3 +1,3 @@ -export * from '@taiga-ui/editor/extensions/markdown/extensions/marks'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/util'; +export * from './marks'; +export * from './nodes'; +export * from './util'; diff --git a/projects/editor/extensions/markdown/extensions/marks/bold/ng-package.json b/projects/editor/extensions/markdown/extensions/marks/bold/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/marks/bold/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/marks/code/ng-package.json b/projects/editor/extensions/markdown/extensions/marks/code/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/marks/code/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/marks/html/ng-package.json b/projects/editor/extensions/markdown/extensions/marks/html/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/marks/html/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/marks/index.ts b/projects/editor/extensions/markdown/extensions/marks/index.ts index 005f7f0d2..d454e69a6 100644 --- a/projects/editor/extensions/markdown/extensions/marks/index.ts +++ b/projects/editor/extensions/markdown/extensions/marks/index.ts @@ -1,6 +1,6 @@ -export * from '@taiga-ui/editor/extensions/markdown/extensions/marks/bold'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/marks/code'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/marks/html'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/marks/italic'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/marks/link'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/marks/strike'; +export * from './bold'; +export * from './code'; +export * from './html'; +export * from './italic'; +export * from './link'; +export * from './strike'; diff --git a/projects/editor/extensions/markdown/extensions/marks/italic/ng-package.json b/projects/editor/extensions/markdown/extensions/marks/italic/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/marks/italic/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/marks/link/ng-package.json b/projects/editor/extensions/markdown/extensions/marks/link/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/marks/link/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/marks/ng-package.json b/projects/editor/extensions/markdown/extensions/marks/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/marks/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/marks/strike/ng-package.json b/projects/editor/extensions/markdown/extensions/marks/strike/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/marks/strike/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/ng-package.json b/projects/editor/extensions/markdown/extensions/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/blockquote/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/blockquote/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/blockquote/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/bullet-list/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/bullet-list/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/bullet-list/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/code-block/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/code-block/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/code-block/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/hard-break/index.ts b/projects/editor/extensions/markdown/extensions/nodes/hard-break/index.ts index bdd2716a0..5bd87a675 100644 --- a/projects/editor/extensions/markdown/extensions/nodes/hard-break/index.ts +++ b/projects/editor/extensions/markdown/extensions/nodes/hard-break/index.ts @@ -1,7 +1,8 @@ -import HTMLNode from '@taiga-ui/editor/extensions/markdown/extensions/nodes/html'; import {Node} from '@tiptap/core'; import type {Node as ProseNode} from '@tiptap/pm/model'; +import HTMLNode from '../html'; + export default Node.create({ name: 'hardBreak', }).extend({ diff --git a/projects/editor/extensions/markdown/extensions/nodes/hard-break/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/hard-break/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/hard-break/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/heading/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/heading/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/heading/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/horizontal-rule/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/horizontal-rule/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/horizontal-rule/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/html/index.ts b/projects/editor/extensions/markdown/extensions/nodes/html/index.ts index 1a3ced145..95c50a101 100644 --- a/projects/editor/extensions/markdown/extensions/nodes/html/index.ts +++ b/projects/editor/extensions/markdown/extensions/nodes/html/index.ts @@ -1,9 +1,10 @@ -import {tuiElementFromString} from '@taiga-ui/editor/extensions/markdown/util'; import type {Editor} from '@tiptap/core'; import {getHTMLFromFragment, Node} from '@tiptap/core'; import type {Node as ProseNode} from '@tiptap/pm/model'; import {Fragment} from '@tiptap/pm/model'; +import {tuiElementFromString} from '../../../util/dom'; + export default Node.create({ name: 'markdownHTMLNode', addStorage() { diff --git a/projects/editor/extensions/markdown/extensions/nodes/html/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/html/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/html/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/image/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/image/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/image/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/index.ts b/projects/editor/extensions/markdown/extensions/nodes/index.ts index 37d16135a..b01932003 100644 --- a/projects/editor/extensions/markdown/extensions/nodes/index.ts +++ b/projects/editor/extensions/markdown/extensions/nodes/index.ts @@ -1,15 +1,15 @@ -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes/blockquote'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes/bullet-list'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes/code-block'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes/hard-break'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes/heading'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes/horizontal-rule'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes/html'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes/image'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes/list-item'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes/ordered-list'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes/paragraph'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes/table'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes/task-item'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes/task-list'; -export * from '@taiga-ui/editor/extensions/markdown/extensions/nodes/text'; +export * from './blockquote'; +export * from './bullet-list'; +export * from './code-block'; +export * from './hard-break'; +export * from './heading'; +export * from './horizontal-rule'; +export * from './html'; +export * from './image'; +export * from './list-item'; +export * from './ordered-list'; +export * from './paragraph'; +export * from './table'; +export * from './task-item'; +export * from './task-list'; +export * from './text'; diff --git a/projects/editor/extensions/markdown/extensions/nodes/list-item/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/list-item/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/list-item/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/ordered-list/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/ordered-list/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/ordered-list/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/paragraph/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/paragraph/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/paragraph/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/table/index.ts b/projects/editor/extensions/markdown/extensions/nodes/table/index.ts index 61e80773b..45cd483c9 100644 --- a/projects/editor/extensions/markdown/extensions/nodes/table/index.ts +++ b/projects/editor/extensions/markdown/extensions/nodes/table/index.ts @@ -1,8 +1,9 @@ -import HTMLNode from '@taiga-ui/editor/extensions/markdown/extensions/nodes/html'; -import {tuiChildNodes} from '@taiga-ui/editor/extensions/markdown/util'; import {Node} from '@tiptap/core'; import type {Node as ProseNode} from '@tiptap/pm/model'; +import {tuiChildNodes} from '../../../util/prosemirror'; +import HTMLNode from '../html'; + export default Node.create({ name: 'table', }).extend({ diff --git a/projects/editor/extensions/markdown/extensions/nodes/table/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/table/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/table/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/task-item/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/task-item/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/task-item/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/task-list/index.ts b/projects/editor/extensions/markdown/extensions/nodes/task-list/index.ts index a4b33b928..530a2baac 100644 --- a/projects/editor/extensions/markdown/extensions/nodes/task-list/index.ts +++ b/projects/editor/extensions/markdown/extensions/nodes/task-list/index.ts @@ -1,8 +1,9 @@ -import BulletList from '@taiga-ui/editor/extensions/markdown/extensions/nodes/bullet-list'; -import {tuiMarkdownItTaskList} from '@taiga-ui/editor/extensions/markdown/util'; import {Node} from '@tiptap/core'; import type MarkdownIt from 'markdown-it'; +import {tuiMarkdownItTaskList} from '../../../util/markdown-it-task-lists'; +import BulletList from '../bullet-list'; + export default Node.create({ name: 'taskList', }).extend({ diff --git a/projects/editor/extensions/markdown/extensions/nodes/task-list/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/task-list/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/task-list/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/nodes/text/index.ts b/projects/editor/extensions/markdown/extensions/nodes/text/index.ts index 701791107..31eaf839a 100644 --- a/projects/editor/extensions/markdown/extensions/nodes/text/index.ts +++ b/projects/editor/extensions/markdown/extensions/nodes/text/index.ts @@ -1,7 +1,8 @@ -import {tuiEscapeHTML} from '@taiga-ui/editor/extensions/markdown/util'; import {Node} from '@tiptap/core'; import type {Node as ProseNode} from '@tiptap/pm/model'; +import {tuiEscapeHTML} from '../../../util/dom'; + export default Node.create({ name: 'text', }).extend({ diff --git a/projects/editor/extensions/markdown/extensions/nodes/text/ng-package.json b/projects/editor/extensions/markdown/extensions/nodes/text/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/nodes/text/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/extensions/util/index.ts b/projects/editor/extensions/markdown/extensions/util/index.ts index bc1274a02..88dc6722e 100644 --- a/projects/editor/extensions/markdown/extensions/util/index.ts +++ b/projects/editor/extensions/markdown/extensions/util/index.ts @@ -1,24 +1,24 @@ -import Bold from '@taiga-ui/editor/extensions/markdown/extensions/marks/bold'; -import Code from '@taiga-ui/editor/extensions/markdown/extensions/marks/code'; -import HTMLMark from '@taiga-ui/editor/extensions/markdown/extensions/marks/html'; -import Italic from '@taiga-ui/editor/extensions/markdown/extensions/marks/italic'; -import Link from '@taiga-ui/editor/extensions/markdown/extensions/marks/link'; -import Strike from '@taiga-ui/editor/extensions/markdown/extensions/marks/strike'; -import Blockquote from '@taiga-ui/editor/extensions/markdown/extensions/nodes/blockquote'; -import BulletList from '@taiga-ui/editor/extensions/markdown/extensions/nodes/bullet-list'; -import CodeBlock from '@taiga-ui/editor/extensions/markdown/extensions/nodes/code-block'; -import HardBreak from '@taiga-ui/editor/extensions/markdown/extensions/nodes/hard-break'; -import Heading from '@taiga-ui/editor/extensions/markdown/extensions/nodes/heading'; -import HorizontalRule from '@taiga-ui/editor/extensions/markdown/extensions/nodes/horizontal-rule'; -import HTMLNode from '@taiga-ui/editor/extensions/markdown/extensions/nodes/html'; -import Image from '@taiga-ui/editor/extensions/markdown/extensions/nodes/image'; -import ListItem from '@taiga-ui/editor/extensions/markdown/extensions/nodes/list-item'; -import OrderedList from '@taiga-ui/editor/extensions/markdown/extensions/nodes/ordered-list'; -import Paragraph from '@taiga-ui/editor/extensions/markdown/extensions/nodes/paragraph'; -import Table from '@taiga-ui/editor/extensions/markdown/extensions/nodes/table'; -import TaskItem from '@taiga-ui/editor/extensions/markdown/extensions/nodes/task-item'; -import TaskList from '@taiga-ui/editor/extensions/markdown/extensions/nodes/task-list'; -import Text from '@taiga-ui/editor/extensions/markdown/extensions/nodes/text'; +import Bold from '../marks/bold'; +import Code from '../marks/code'; +import HTMLMark from '../marks/html'; +import Italic from '../marks/italic'; +import Link from '../marks/link'; +import Strike from '../marks/strike'; +import Blockquote from '../nodes/blockquote'; +import BulletList from '../nodes/bullet-list'; +import CodeBlock from '../nodes/code-block'; +import HardBreak from '../nodes/hard-break'; +import Heading from '../nodes/heading'; +import HorizontalRule from '../nodes/horizontal-rule'; +import HTMLNode from '../nodes/html'; +import Image from '../nodes/image'; +import ListItem from '../nodes/list-item'; +import OrderedList from '../nodes/ordered-list'; +import Paragraph from '../nodes/paragraph'; +import Table from '../nodes/table'; +import TaskItem from '../nodes/task-item'; +import TaskList from '../nodes/task-list'; +import Text from '../nodes/text'; const extensions = [ Blockquote, diff --git a/projects/editor/extensions/markdown/extensions/util/ng-package.json b/projects/editor/extensions/markdown/extensions/util/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/extensions/util/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/index.ts b/projects/editor/extensions/markdown/index.ts index f8140a5b1..9f79b692d 100644 --- a/projects/editor/extensions/markdown/index.ts +++ b/projects/editor/extensions/markdown/index.ts @@ -1,7 +1,7 @@ -export * from '@taiga-ui/editor/extensions/markdown/clipboard'; -export * from '@taiga-ui/editor/extensions/markdown/extension'; -export * from '@taiga-ui/editor/extensions/markdown/extensions'; -export * from '@taiga-ui/editor/extensions/markdown/parse'; -export * from '@taiga-ui/editor/extensions/markdown/serialize'; -export * from '@taiga-ui/editor/extensions/markdown/tight-lists'; -export * from '@taiga-ui/editor/extensions/markdown/util'; +export * from './clipboard'; +export * from './extension'; +export * from './extensions'; +export * from './parse'; +export * from './serialize'; +export * from './tight-lists'; +export * from './util'; diff --git a/projects/editor/extensions/markdown/parse/index.ts b/projects/editor/extensions/markdown/parse/index.ts index a51ea755c..e98badce5 100644 --- a/projects/editor/extensions/markdown/parse/index.ts +++ b/projects/editor/extensions/markdown/parse/index.ts @@ -1,12 +1,9 @@ -import {tuiGetMarkdownSpec} from '@taiga-ui/editor/extensions/markdown/extensions/util'; -import { - tuiElementFromString, - tuiExtractElement, - tuiUnwrapElement, -} from '@taiga-ui/editor/extensions/markdown/util'; import type {Editor} from '@tiptap/core'; import MarkdownIt from 'markdown-it'; +import {tuiGetMarkdownSpec} from '../extensions/util'; +import {tuiElementFromString, tuiExtractElement, tuiUnwrapElement} from '../util/dom'; + export class TuiEditorMarkdownParser { protected readonly md: MarkdownIt; diff --git a/projects/editor/extensions/markdown/parse/ng-package.json b/projects/editor/extensions/markdown/parse/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/parse/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/serialize/markdown-serializer.ts b/projects/editor/extensions/markdown/serialize/markdown-serializer.ts index 6999266f0..428f6b243 100644 --- a/projects/editor/extensions/markdown/serialize/markdown-serializer.ts +++ b/projects/editor/extensions/markdown/serialize/markdown-serializer.ts @@ -1,10 +1,10 @@ -import HTMLMark from '@taiga-ui/editor/extensions/markdown/extensions/marks/html'; -import HardBreak from '@taiga-ui/editor/extensions/markdown/extensions/nodes/hard-break'; -import HTMLNode from '@taiga-ui/editor/extensions/markdown/extensions/nodes/html'; -import {tuiGetMarkdownSpec} from '@taiga-ui/editor/extensions/markdown/extensions/util'; import type {Editor, Mark as Mark2, Node as Node2} from '@tiptap/core'; import type {Mark, Node} from '@tiptap/pm/model'; +import HTMLMark from '../extensions/marks/html'; +import HardBreak from '../extensions/nodes/hard-break'; +import HTMLNode from '../extensions/nodes/html'; +import {tuiGetMarkdownSpec} from '../extensions/util'; import {TuiMarkdownSerializerState} from './state'; export class TuiMarkdownSerializer { diff --git a/projects/editor/extensions/markdown/serialize/ng-package.json b/projects/editor/extensions/markdown/serialize/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/serialize/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/serialize/state.ts b/projects/editor/extensions/markdown/serialize/state.ts index dc15fae85..2f8f21baf 100644 --- a/projects/editor/extensions/markdown/serialize/state.ts +++ b/projects/editor/extensions/markdown/serialize/state.ts @@ -1,7 +1,8 @@ -import {tuiTrimInline} from '@taiga-ui/editor/extensions/markdown/util'; import {MarkdownSerializerState as BaseMarkdownSerializerState} from '@tiptap/pm/markdown'; import type {Mark, Node} from '@tiptap/pm/model'; +import {tuiTrimInline} from '../util/markdown'; + export class TuiMarkdownSerializerState extends BaseMarkdownSerializerState { public inTable = false; public inlines: any[]; diff --git a/projects/editor/extensions/markdown/tight-lists/ng-package.json b/projects/editor/extensions/markdown/tight-lists/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/tight-lists/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -} diff --git a/projects/editor/extensions/markdown/util/ng-package.json b/projects/editor/extensions/markdown/util/ng-package.json deleted file mode 100644 index bebf62dcb..000000000 --- a/projects/editor/extensions/markdown/util/ng-package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "lib": { - "entryFile": "index.ts" - } -}