@docen/tiptap-extensions 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Demo Macro
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,302 @@
1
+ # @docen/tiptap-extensions
2
+
3
+ ![npm version](https://img.shields.io/npm/v/@docen/tiptap-extensions)
4
+ ![npm downloads](https://img.shields.io/npm/dw/@docen/tiptap-extensions)
5
+ ![npm license](https://img.shields.io/npm/l/@docen/tiptap-extensions)
6
+
7
+ > Curated collection of TipTap extensions with comprehensive TypeScript type definitions for Docen.
8
+
9
+ ## Features
10
+
11
+ - 📦 **All-in-One Package** - All Docen-required extensions in a single dependency
12
+ - 🔒 **Full Type Safety** - Comprehensive TypeScript definitions for all content nodes and marks
13
+ - 🎯 **Curated Selection** - Only includes extensions actively used in Docen, no bloat
14
+ - 📤 **Type Exports** - Direct access to all node types (DocumentNode, ParagraphNode, etc.)
15
+ - 🚀 **Ready to Use** - Pre-configured extension arrays for blocks and marks
16
+
17
+ ## Installation
18
+
19
+ ```bash
20
+ # Install with npm
21
+ $ npm install @docen/tiptap-extensions
22
+
23
+ # Install with yarn
24
+ $ yarn add @docen/tiptap-extensions
25
+
26
+ # Install with pnpm
27
+ $ pnpm add @docen/tiptap-extensions
28
+ ```
29
+
30
+ ## Quick Start
31
+
32
+ ```typescript
33
+ import { tiptapExtensions, tiptapMarkExtensions } from "@docen/tiptap-extensions";
34
+
35
+ const editor = new Editor({
36
+ extensions: [
37
+ ...tiptapExtensions, // All block extensions
38
+ ...tiptapMarkExtensions, // All mark extensions
39
+ ],
40
+ content: "<p>Hello, world!</p>",
41
+ });
42
+ ```
43
+
44
+ ## Exports
45
+
46
+ ### Extension Arrays
47
+
48
+ **`tiptapExtensions`** - Block-level extensions:
49
+
50
+ - Document - Root document node
51
+ - Paragraph - Standard paragraphs
52
+ - Heading - H1-H6 headings
53
+ - Blockquote - Blockquote sections
54
+ - CodeBlock - Code blocks with Lowlight syntax highlighting
55
+ - HorizontalRule - Horizontal dividers
56
+ - Image - Image embedding
57
+ - Details - Collapsible details/summary sections
58
+ - Table - Table containers
59
+ - TableRow - Table rows
60
+ - TableCell - Table body cells
61
+ - TableHeader - Table header cells
62
+ - BulletList - Unordered lists
63
+ - OrderedList - Ordered lists with start support
64
+ - ListItem - List item containers
65
+ - TaskList - Task list containers
66
+ - TaskItem - Task items with checkboxes
67
+
68
+ **`tiptapMarkExtensions`** - Text formatting marks:
69
+
70
+ - Bold - **Bold text**
71
+ - Italic - _Italic text_
72
+ - Underline - <u>Underlined text</u>
73
+ - Strike - ~~Strikethrough text~~
74
+ - Code - `Inline code`
75
+ - Highlight - Text highlighting
76
+ - Subscript - Sub~script~
77
+ - Superscript - Super^script^
78
+ - TextStyle - Text styling (colors, fonts, sizes)
79
+ - Link - Hyperlinks with href, target, rel attributes
80
+
81
+ ### TypeScript Types
82
+
83
+ This package exports comprehensive TypeScript types for type-safe development:
84
+
85
+ ```typescript
86
+ import type {
87
+ // Root and document types
88
+ JSONContent,
89
+
90
+ // Block nodes
91
+ DocumentNode,
92
+ ParagraphNode,
93
+ HeadingNode,
94
+ BlockquoteNode,
95
+ CodeBlockNode,
96
+ HorizontalRuleNode,
97
+ ImageNode,
98
+ DetailsNode,
99
+
100
+ // List nodes
101
+ BulletListNode,
102
+ OrderedListNode,
103
+ ListItemNode,
104
+ TaskListNode,
105
+ TaskItemNode,
106
+
107
+ // Table nodes
108
+ TableNode,
109
+ TableRowNode,
110
+ TableCellNode,
111
+ TableHeaderNode,
112
+
113
+ // Text nodes
114
+ TextNode,
115
+ HardBreakNode,
116
+
117
+ // Type unions
118
+ BlockNode,
119
+ TextContent,
120
+ } from "@docen/tiptap-extensions";
121
+ ```
122
+
123
+ ### Type Definitions
124
+
125
+ **Content Nodes:**
126
+
127
+ ```typescript
128
+ // Paragraph with text alignment
129
+ interface ParagraphNode {
130
+ type: "paragraph";
131
+ attrs?: {
132
+ textAlign?: "left" | "right" | "center" | "justify";
133
+ };
134
+ content?: Array<TextContent>;
135
+ }
136
+
137
+ // Heading with level
138
+ interface HeadingNode {
139
+ type: "heading";
140
+ attrs: {
141
+ level: 1 | 2 | 3 | 4 | 5 | 6;
142
+ };
143
+ content?: Array<TextContent>;
144
+ }
145
+
146
+ // Table with colspan/rowspan
147
+ interface TableCellNode {
148
+ type: "tableCell" | "tableHeader";
149
+ attrs?: {
150
+ colspan?: number;
151
+ rowspan?: number;
152
+ colwidth?: number[] | null;
153
+ };
154
+ content?: Array<ParagraphNode>;
155
+ }
156
+
157
+ // Image with attributes
158
+ interface ImageNode {
159
+ type: "image";
160
+ attrs?: {
161
+ src: string;
162
+ alt?: string | null;
163
+ title?: string | null;
164
+ width?: number | null;
165
+ height?: number | null;
166
+ };
167
+ }
168
+ ```
169
+
170
+ **Text and Marks:**
171
+
172
+ ```typescript
173
+ // Text node with marks
174
+ interface TextNode {
175
+ type: "text";
176
+ text: string;
177
+ marks?: Array<Mark>;
178
+ }
179
+
180
+ // Mark with attributes
181
+ interface Mark {
182
+ type:
183
+ | "bold"
184
+ | "italic"
185
+ | "underline"
186
+ | "strike"
187
+ | "code"
188
+ | "textStyle"
189
+ | "link"
190
+ | "highlight"
191
+ | "subscript"
192
+ | "superscript";
193
+ attrs?: {
194
+ // TextStyle attributes
195
+ color?: string;
196
+ backgroundColor?: string;
197
+ fontSize?: string;
198
+ fontFamily?: string;
199
+ lineHeight?: string;
200
+
201
+ // Link attributes
202
+ href?: string;
203
+ target?: string;
204
+ rel?: string;
205
+ class?: string | null;
206
+
207
+ // Other attributes
208
+ [key: string]: unknown;
209
+ };
210
+ }
211
+ ```
212
+
213
+ ## Usage Examples
214
+
215
+ ### Type-Safe Content Creation
216
+
217
+ ```typescript
218
+ import type { JSONContent, ParagraphNode } from "@docen/tiptap-extensions";
219
+
220
+ const doc: JSONContent = {
221
+ type: "doc",
222
+ content: [
223
+ {
224
+ type: "paragraph",
225
+ content: [
226
+ {
227
+ type: "text",
228
+ marks: [{ type: "bold" }],
229
+ text: "Hello, world!",
230
+ },
231
+ ],
232
+ },
233
+ ],
234
+ };
235
+
236
+ // Type narrowing with type guards
237
+ function isParagraph(node: JSONContent): node is ParagraphNode {
238
+ return node.type === "paragraph";
239
+ }
240
+ ```
241
+
242
+ ### Working with Tables
243
+
244
+ ```typescript
245
+ import type { TableNode, TableCellNode } from "@docen/tiptap-extensions";
246
+
247
+ const table: TableNode = {
248
+ type: "table",
249
+ content: [
250
+ {
251
+ type: "tableRow",
252
+ content: [
253
+ {
254
+ type: "tableHeader",
255
+ attrs: { colspan: 2, rowspan: 1 },
256
+ content: [
257
+ {
258
+ type: "paragraph",
259
+ content: [{ type: "text", text: "Header" }],
260
+ },
261
+ ],
262
+ },
263
+ ],
264
+ },
265
+ ],
266
+ };
267
+ ```
268
+
269
+ ### Custom Editor Setup
270
+
271
+ ```typescript
272
+ import { Editor } from "@tiptap/core";
273
+ import { tiptapExtensions } from "@docen/tiptap-extensions";
274
+
275
+ const editor = new Editor({
276
+ extensions: [
277
+ ...tiptapExtensions,
278
+ // Add your custom extensions here
279
+ ],
280
+ });
281
+ ```
282
+
283
+ ## Import Paths
284
+
285
+ This package provides two import paths for flexibility:
286
+
287
+ ```typescript
288
+ // Main entry point - extensions and types
289
+ import { tiptapExtensions, tiptapMarkExtensions } from "@docen/tiptap-extensions";
290
+ import type { JSONContent, ParagraphNode } from "@docen/tiptap-extensions";
291
+
292
+ // Types-only path for type definitions
293
+ import type { JSONContent } from "@docen/tiptap-extensions/types";
294
+ ```
295
+
296
+ ## Contributing
297
+
298
+ Contributions are welcome! Please read our [Contributor Covenant](https://www.contributor-covenant.org/version/2/1/code_of_conduct/) and submit pull requests to the [main repository](https://github.com/DemoMacro/docen).
299
+
300
+ ## License
301
+
302
+ - [MIT](LICENSE) &copy; [Demo Macro](https://imst.xyz/)
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";const o=require("@tiptap/extension-blockquote"),r=require("@tiptap/extension-bullet-list"),m=require("@tiptap/extension-code-block-lowlight"),extensionDetails=require("@tiptap/extension-details"),e=require("@tiptap/extension-document"),f=require("@tiptap/extension-emoji"),a=require("@tiptap/extension-hard-break"),l=require("@tiptap/extension-heading"),n=require("@tiptap/extension-horizontal-rule"),s=require("@tiptap/extension-image"),c=require("@tiptap/extension-list-item"),extensionMathematics=require("@tiptap/extension-mathematics"),k=require("@tiptap/extension-ordered-list"),g=require("@tiptap/extension-paragraph"),extensionTable=require("@tiptap/extension-table"),x=require("@tiptap/extension-table-cell"),T=require("@tiptap/extension-table-header"),L=require("@tiptap/extension-table-row"),h=require("@tiptap/extension-task-list"),B=require("@tiptap/extension-task-item"),C=require("@tiptap/extension-text"),H=require("@tiptap/extension-bold"),S=require("@tiptap/extension-code"),b=require("@tiptap/extension-highlight"),D=require("@tiptap/extension-italic"),E=require("@tiptap/extension-link"),I=require("@tiptap/extension-strike"),y=require("@tiptap/extension-subscript"),F=require("@tiptap/extension-superscript"),extensionTextStyle=require("@tiptap/extension-text-style"),z=require("@tiptap/extension-underline");function _interopDefaultCompat(t){return t&&typeof t=="object"&&"default"in t?t.default:t}const o__default=_interopDefaultCompat(o),r__default=_interopDefaultCompat(r),m__default=_interopDefaultCompat(m),e__default=_interopDefaultCompat(e),f__default=_interopDefaultCompat(f),a__default=_interopDefaultCompat(a),l__default=_interopDefaultCompat(l),n__default=_interopDefaultCompat(n),s__default=_interopDefaultCompat(s),c__default=_interopDefaultCompat(c),k__default=_interopDefaultCompat(k),g__default=_interopDefaultCompat(g),x__default=_interopDefaultCompat(x),T__default=_interopDefaultCompat(T),L__default=_interopDefaultCompat(L),h__default=_interopDefaultCompat(h),B__default=_interopDefaultCompat(B),C__default=_interopDefaultCompat(C),H__default=_interopDefaultCompat(H),S__default=_interopDefaultCompat(S),b__default=_interopDefaultCompat(b),D__default=_interopDefaultCompat(D),E__default=_interopDefaultCompat(E),I__default=_interopDefaultCompat(I),y__default=_interopDefaultCompat(y),F__default=_interopDefaultCompat(F),z__default=_interopDefaultCompat(z),tiptapNodeExtensions=[e__default,g__default,C__default,a__default,o__default,k__default,r__default,c__default,m__default,extensionDetails.Details,extensionDetails.DetailsSummary,extensionDetails.DetailsContent,f__default,n__default,s__default,extensionMathematics.Mathematics,extensionTable.Table,L__default,x__default,T__default,h__default,B__default,l__default],tiptapMarkExtensions=[H__default,S__default,b__default,D__default,E__default,I__default,y__default,F__default,extensionTextStyle.TextStyle,z__default,extensionTextStyle.Color,extensionTextStyle.BackgroundColor,extensionTextStyle.FontFamily,extensionTextStyle.FontSize,extensionTextStyle.LineHeight],tiptapExtensions=[...tiptapNodeExtensions,...tiptapMarkExtensions];exports.tiptapExtensions=tiptapExtensions,exports.tiptapMarkExtensions=tiptapMarkExtensions,exports.tiptapNodeExtensions=tiptapNodeExtensions;
@@ -0,0 +1,25 @@
1
+ import * as _tiptap_extension_text_style from '@tiptap/extension-text-style';
2
+ import * as _tiptap_extension_link from '@tiptap/extension-link';
3
+ import * as _tiptap_extension_highlight from '@tiptap/extension-highlight';
4
+ import * as _tiptap_extension_bold from '@tiptap/extension-bold';
5
+ import * as _tiptap_extension_heading from '@tiptap/extension-heading';
6
+ import * as _tiptap_extension_task_item from '@tiptap/extension-task-item';
7
+ import * as _tiptap_extension_task_list from '@tiptap/extension-task-list';
8
+ import * as _tiptap_extension_table from '@tiptap/extension-table';
9
+ import * as _tiptap_extension_mathematics from '@tiptap/extension-mathematics';
10
+ import * as _tiptap_extension_image from '@tiptap/extension-image';
11
+ import * as _tiptap_extension_horizontal_rule from '@tiptap/extension-horizontal-rule';
12
+ import * as _tiptap_extension_emoji from '@tiptap/extension-emoji';
13
+ import * as _tiptap_extension_details from '@tiptap/extension-details';
14
+ import * as _tiptap_extension_code_block_lowlight from '@tiptap/extension-code-block-lowlight';
15
+ import * as _tiptap_extension_list_item from '@tiptap/extension-list-item';
16
+ import * as _tiptap_extension_ordered_list from '@tiptap/extension-ordered-list';
17
+ import * as _tiptap_extension_hard_break from '@tiptap/extension-hard-break';
18
+ import * as _tiptap_extension_paragraph from '@tiptap/extension-paragraph';
19
+ import * as _tiptap_core from '@tiptap/core';
20
+
21
+ declare const tiptapNodeExtensions: (_tiptap_core.Node<any, any> | _tiptap_core.Node<_tiptap_extension_paragraph.ParagraphOptions, any> | _tiptap_core.Node<_tiptap_extension_hard_break.HardBreakOptions, any> | _tiptap_core.Node<_tiptap_extension_ordered_list.OrderedListOptions, any> | _tiptap_core.Node<_tiptap_extension_list_item.ListItemOptions, any> | _tiptap_core.Node<_tiptap_extension_code_block_lowlight.CodeBlockLowlightOptions, any> | _tiptap_core.Node<_tiptap_extension_details.DetailsOptions, any> | _tiptap_core.Node<_tiptap_extension_emoji.EmojiOptions, _tiptap_extension_emoji.EmojiStorage> | _tiptap_core.Node<_tiptap_extension_horizontal_rule.HorizontalRuleOptions, any> | _tiptap_core.Node<_tiptap_extension_image.ImageOptions, any> | _tiptap_core.Extension<_tiptap_extension_mathematics.MathematicsOptions, any> | _tiptap_core.Node<_tiptap_extension_table.TableOptions, any> | _tiptap_core.Node<_tiptap_extension_task_list.TaskListOptions, any> | _tiptap_core.Node<_tiptap_extension_task_item.TaskItemOptions, any> | _tiptap_core.Node<_tiptap_extension_heading.HeadingOptions, any>)[];
22
+ declare const tiptapMarkExtensions: (_tiptap_core.Mark<_tiptap_extension_bold.BoldOptions, any> | _tiptap_core.Mark<_tiptap_extension_highlight.HighlightOptions, any> | _tiptap_core.Mark<_tiptap_extension_link.LinkOptions, any> | _tiptap_core.Mark<_tiptap_extension_text_style.TextStyleOptions, any> | _tiptap_core.Extension<_tiptap_extension_text_style.ColorOptions, any>)[];
23
+ declare const tiptapExtensions: (_tiptap_core.Node<any, any> | _tiptap_core.Node<_tiptap_extension_paragraph.ParagraphOptions, any> | _tiptap_core.Node<_tiptap_extension_hard_break.HardBreakOptions, any> | _tiptap_core.Node<_tiptap_extension_ordered_list.OrderedListOptions, any> | _tiptap_core.Node<_tiptap_extension_list_item.ListItemOptions, any> | _tiptap_core.Node<_tiptap_extension_code_block_lowlight.CodeBlockLowlightOptions, any> | _tiptap_core.Node<_tiptap_extension_details.DetailsOptions, any> | _tiptap_core.Node<_tiptap_extension_emoji.EmojiOptions, _tiptap_extension_emoji.EmojiStorage> | _tiptap_core.Node<_tiptap_extension_horizontal_rule.HorizontalRuleOptions, any> | _tiptap_core.Node<_tiptap_extension_image.ImageOptions, any> | _tiptap_core.Extension<_tiptap_extension_mathematics.MathematicsOptions, any> | _tiptap_core.Node<_tiptap_extension_table.TableOptions, any> | _tiptap_core.Node<_tiptap_extension_task_list.TaskListOptions, any> | _tiptap_core.Node<_tiptap_extension_task_item.TaskItemOptions, any> | _tiptap_core.Node<_tiptap_extension_heading.HeadingOptions, any> | _tiptap_core.Mark<_tiptap_extension_bold.BoldOptions, any> | _tiptap_core.Mark<_tiptap_extension_highlight.HighlightOptions, any> | _tiptap_core.Mark<_tiptap_extension_link.LinkOptions, any> | _tiptap_core.Mark<_tiptap_extension_text_style.TextStyleOptions, any> | _tiptap_core.Extension<_tiptap_extension_text_style.ColorOptions, any>)[];
24
+
25
+ export { tiptapExtensions, tiptapMarkExtensions, tiptapNodeExtensions };
@@ -0,0 +1,25 @@
1
+ import * as _tiptap_extension_text_style from '@tiptap/extension-text-style';
2
+ import * as _tiptap_extension_link from '@tiptap/extension-link';
3
+ import * as _tiptap_extension_highlight from '@tiptap/extension-highlight';
4
+ import * as _tiptap_extension_bold from '@tiptap/extension-bold';
5
+ import * as _tiptap_extension_heading from '@tiptap/extension-heading';
6
+ import * as _tiptap_extension_task_item from '@tiptap/extension-task-item';
7
+ import * as _tiptap_extension_task_list from '@tiptap/extension-task-list';
8
+ import * as _tiptap_extension_table from '@tiptap/extension-table';
9
+ import * as _tiptap_extension_mathematics from '@tiptap/extension-mathematics';
10
+ import * as _tiptap_extension_image from '@tiptap/extension-image';
11
+ import * as _tiptap_extension_horizontal_rule from '@tiptap/extension-horizontal-rule';
12
+ import * as _tiptap_extension_emoji from '@tiptap/extension-emoji';
13
+ import * as _tiptap_extension_details from '@tiptap/extension-details';
14
+ import * as _tiptap_extension_code_block_lowlight from '@tiptap/extension-code-block-lowlight';
15
+ import * as _tiptap_extension_list_item from '@tiptap/extension-list-item';
16
+ import * as _tiptap_extension_ordered_list from '@tiptap/extension-ordered-list';
17
+ import * as _tiptap_extension_hard_break from '@tiptap/extension-hard-break';
18
+ import * as _tiptap_extension_paragraph from '@tiptap/extension-paragraph';
19
+ import * as _tiptap_core from '@tiptap/core';
20
+
21
+ declare const tiptapNodeExtensions: (_tiptap_core.Node<any, any> | _tiptap_core.Node<_tiptap_extension_paragraph.ParagraphOptions, any> | _tiptap_core.Node<_tiptap_extension_hard_break.HardBreakOptions, any> | _tiptap_core.Node<_tiptap_extension_ordered_list.OrderedListOptions, any> | _tiptap_core.Node<_tiptap_extension_list_item.ListItemOptions, any> | _tiptap_core.Node<_tiptap_extension_code_block_lowlight.CodeBlockLowlightOptions, any> | _tiptap_core.Node<_tiptap_extension_details.DetailsOptions, any> | _tiptap_core.Node<_tiptap_extension_emoji.EmojiOptions, _tiptap_extension_emoji.EmojiStorage> | _tiptap_core.Node<_tiptap_extension_horizontal_rule.HorizontalRuleOptions, any> | _tiptap_core.Node<_tiptap_extension_image.ImageOptions, any> | _tiptap_core.Extension<_tiptap_extension_mathematics.MathematicsOptions, any> | _tiptap_core.Node<_tiptap_extension_table.TableOptions, any> | _tiptap_core.Node<_tiptap_extension_task_list.TaskListOptions, any> | _tiptap_core.Node<_tiptap_extension_task_item.TaskItemOptions, any> | _tiptap_core.Node<_tiptap_extension_heading.HeadingOptions, any>)[];
22
+ declare const tiptapMarkExtensions: (_tiptap_core.Mark<_tiptap_extension_bold.BoldOptions, any> | _tiptap_core.Mark<_tiptap_extension_highlight.HighlightOptions, any> | _tiptap_core.Mark<_tiptap_extension_link.LinkOptions, any> | _tiptap_core.Mark<_tiptap_extension_text_style.TextStyleOptions, any> | _tiptap_core.Extension<_tiptap_extension_text_style.ColorOptions, any>)[];
23
+ declare const tiptapExtensions: (_tiptap_core.Node<any, any> | _tiptap_core.Node<_tiptap_extension_paragraph.ParagraphOptions, any> | _tiptap_core.Node<_tiptap_extension_hard_break.HardBreakOptions, any> | _tiptap_core.Node<_tiptap_extension_ordered_list.OrderedListOptions, any> | _tiptap_core.Node<_tiptap_extension_list_item.ListItemOptions, any> | _tiptap_core.Node<_tiptap_extension_code_block_lowlight.CodeBlockLowlightOptions, any> | _tiptap_core.Node<_tiptap_extension_details.DetailsOptions, any> | _tiptap_core.Node<_tiptap_extension_emoji.EmojiOptions, _tiptap_extension_emoji.EmojiStorage> | _tiptap_core.Node<_tiptap_extension_horizontal_rule.HorizontalRuleOptions, any> | _tiptap_core.Node<_tiptap_extension_image.ImageOptions, any> | _tiptap_core.Extension<_tiptap_extension_mathematics.MathematicsOptions, any> | _tiptap_core.Node<_tiptap_extension_table.TableOptions, any> | _tiptap_core.Node<_tiptap_extension_task_list.TaskListOptions, any> | _tiptap_core.Node<_tiptap_extension_task_item.TaskItemOptions, any> | _tiptap_core.Node<_tiptap_extension_heading.HeadingOptions, any> | _tiptap_core.Mark<_tiptap_extension_bold.BoldOptions, any> | _tiptap_core.Mark<_tiptap_extension_highlight.HighlightOptions, any> | _tiptap_core.Mark<_tiptap_extension_link.LinkOptions, any> | _tiptap_core.Mark<_tiptap_extension_text_style.TextStyleOptions, any> | _tiptap_core.Extension<_tiptap_extension_text_style.ColorOptions, any>)[];
24
+
25
+ export { tiptapExtensions, tiptapMarkExtensions, tiptapNodeExtensions };
@@ -0,0 +1,25 @@
1
+ import * as _tiptap_extension_text_style from '@tiptap/extension-text-style';
2
+ import * as _tiptap_extension_link from '@tiptap/extension-link';
3
+ import * as _tiptap_extension_highlight from '@tiptap/extension-highlight';
4
+ import * as _tiptap_extension_bold from '@tiptap/extension-bold';
5
+ import * as _tiptap_extension_heading from '@tiptap/extension-heading';
6
+ import * as _tiptap_extension_task_item from '@tiptap/extension-task-item';
7
+ import * as _tiptap_extension_task_list from '@tiptap/extension-task-list';
8
+ import * as _tiptap_extension_table from '@tiptap/extension-table';
9
+ import * as _tiptap_extension_mathematics from '@tiptap/extension-mathematics';
10
+ import * as _tiptap_extension_image from '@tiptap/extension-image';
11
+ import * as _tiptap_extension_horizontal_rule from '@tiptap/extension-horizontal-rule';
12
+ import * as _tiptap_extension_emoji from '@tiptap/extension-emoji';
13
+ import * as _tiptap_extension_details from '@tiptap/extension-details';
14
+ import * as _tiptap_extension_code_block_lowlight from '@tiptap/extension-code-block-lowlight';
15
+ import * as _tiptap_extension_list_item from '@tiptap/extension-list-item';
16
+ import * as _tiptap_extension_ordered_list from '@tiptap/extension-ordered-list';
17
+ import * as _tiptap_extension_hard_break from '@tiptap/extension-hard-break';
18
+ import * as _tiptap_extension_paragraph from '@tiptap/extension-paragraph';
19
+ import * as _tiptap_core from '@tiptap/core';
20
+
21
+ declare const tiptapNodeExtensions: (_tiptap_core.Node<any, any> | _tiptap_core.Node<_tiptap_extension_paragraph.ParagraphOptions, any> | _tiptap_core.Node<_tiptap_extension_hard_break.HardBreakOptions, any> | _tiptap_core.Node<_tiptap_extension_ordered_list.OrderedListOptions, any> | _tiptap_core.Node<_tiptap_extension_list_item.ListItemOptions, any> | _tiptap_core.Node<_tiptap_extension_code_block_lowlight.CodeBlockLowlightOptions, any> | _tiptap_core.Node<_tiptap_extension_details.DetailsOptions, any> | _tiptap_core.Node<_tiptap_extension_emoji.EmojiOptions, _tiptap_extension_emoji.EmojiStorage> | _tiptap_core.Node<_tiptap_extension_horizontal_rule.HorizontalRuleOptions, any> | _tiptap_core.Node<_tiptap_extension_image.ImageOptions, any> | _tiptap_core.Extension<_tiptap_extension_mathematics.MathematicsOptions, any> | _tiptap_core.Node<_tiptap_extension_table.TableOptions, any> | _tiptap_core.Node<_tiptap_extension_task_list.TaskListOptions, any> | _tiptap_core.Node<_tiptap_extension_task_item.TaskItemOptions, any> | _tiptap_core.Node<_tiptap_extension_heading.HeadingOptions, any>)[];
22
+ declare const tiptapMarkExtensions: (_tiptap_core.Mark<_tiptap_extension_bold.BoldOptions, any> | _tiptap_core.Mark<_tiptap_extension_highlight.HighlightOptions, any> | _tiptap_core.Mark<_tiptap_extension_link.LinkOptions, any> | _tiptap_core.Mark<_tiptap_extension_text_style.TextStyleOptions, any> | _tiptap_core.Extension<_tiptap_extension_text_style.ColorOptions, any>)[];
23
+ declare const tiptapExtensions: (_tiptap_core.Node<any, any> | _tiptap_core.Node<_tiptap_extension_paragraph.ParagraphOptions, any> | _tiptap_core.Node<_tiptap_extension_hard_break.HardBreakOptions, any> | _tiptap_core.Node<_tiptap_extension_ordered_list.OrderedListOptions, any> | _tiptap_core.Node<_tiptap_extension_list_item.ListItemOptions, any> | _tiptap_core.Node<_tiptap_extension_code_block_lowlight.CodeBlockLowlightOptions, any> | _tiptap_core.Node<_tiptap_extension_details.DetailsOptions, any> | _tiptap_core.Node<_tiptap_extension_emoji.EmojiOptions, _tiptap_extension_emoji.EmojiStorage> | _tiptap_core.Node<_tiptap_extension_horizontal_rule.HorizontalRuleOptions, any> | _tiptap_core.Node<_tiptap_extension_image.ImageOptions, any> | _tiptap_core.Extension<_tiptap_extension_mathematics.MathematicsOptions, any> | _tiptap_core.Node<_tiptap_extension_table.TableOptions, any> | _tiptap_core.Node<_tiptap_extension_task_list.TaskListOptions, any> | _tiptap_core.Node<_tiptap_extension_task_item.TaskItemOptions, any> | _tiptap_core.Node<_tiptap_extension_heading.HeadingOptions, any> | _tiptap_core.Mark<_tiptap_extension_bold.BoldOptions, any> | _tiptap_core.Mark<_tiptap_extension_highlight.HighlightOptions, any> | _tiptap_core.Mark<_tiptap_extension_link.LinkOptions, any> | _tiptap_core.Mark<_tiptap_extension_text_style.TextStyleOptions, any> | _tiptap_core.Extension<_tiptap_extension_text_style.ColorOptions, any>)[];
24
+
25
+ export { tiptapExtensions, tiptapMarkExtensions, tiptapNodeExtensions };
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ import m from"@tiptap/extension-blockquote";import t from"@tiptap/extension-bullet-list";import i from"@tiptap/extension-code-block-lowlight";import{Details as p,DetailsSummary as f,DetailsContent as e}from"@tiptap/extension-details";import a from"@tiptap/extension-document";import n from"@tiptap/extension-emoji";import s from"@tiptap/extension-hard-break";import l from"@tiptap/extension-heading";import x from"@tiptap/extension-horizontal-rule";import c from"@tiptap/extension-image";import y from"@tiptap/extension-list-item";import{Mathematics as C}from"@tiptap/extension-mathematics";import D from"@tiptap/extension-ordered-list";import E from"@tiptap/extension-paragraph";import{Table as F}from"@tiptap/extension-table";import S from"@tiptap/extension-table-cell";import g from"@tiptap/extension-table-header";import h from"@tiptap/extension-table-row";import k from"@tiptap/extension-task-list";import T from"@tiptap/extension-task-item";import b from"@tiptap/extension-text";import d from"@tiptap/extension-bold";import u from"@tiptap/extension-code";import z from"@tiptap/extension-highlight";import B from"@tiptap/extension-italic";import H from"@tiptap/extension-link";import L from"@tiptap/extension-strike";import M from"@tiptap/extension-subscript";import I from"@tiptap/extension-superscript";import{TextStyle as N,Color as j,BackgroundColor as q,FontFamily as v,FontSize as w,LineHeight as A}from"@tiptap/extension-text-style";import G from"@tiptap/extension-underline";const o=[a,E,b,s,m,D,t,y,i,p,f,e,n,x,c,C,F,h,S,g,k,T,l],r=[d,u,z,B,H,L,M,I,N,G,j,q,v,w,A],J=[...o,...r];export{J as tiptapExtensions,r as tiptapMarkExtensions,o as tiptapNodeExtensions};
package/dist/types.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,136 @@
1
+ import { JSONContent } from '@tiptap/core';
2
+ export { JSONContent } from '@tiptap/core';
3
+
4
+ interface TextNode {
5
+ type: "text";
6
+ text: string;
7
+ marks?: Array<Mark>;
8
+ }
9
+ interface HardBreakNode {
10
+ type: "hardBreak";
11
+ marks?: Array<Mark>;
12
+ }
13
+ interface Mark {
14
+ type: "bold" | "italic" | "underline" | "strike" | "code" | "textStyle" | "link" | "highlight" | "subscript" | "superscript";
15
+ attrs?: {
16
+ color?: string;
17
+ backgroundColor?: string;
18
+ fontSize?: string;
19
+ fontFamily?: string;
20
+ lineHeight?: string;
21
+ href?: string;
22
+ target?: string;
23
+ rel?: string;
24
+ class?: string | null;
25
+ [key: string]: unknown;
26
+ };
27
+ }
28
+ interface DocumentNode extends JSONContent {
29
+ type: "doc";
30
+ content?: Array<BlockNode>;
31
+ }
32
+ interface ParagraphNode extends JSONContent {
33
+ type: "paragraph";
34
+ content?: Array<TextNode | HardBreakNode>;
35
+ }
36
+ interface HeadingNode extends JSONContent {
37
+ type: "heading";
38
+ attrs: {
39
+ level: 1 | 2 | 3 | 4 | 5 | 6;
40
+ };
41
+ content?: Array<TextNode | HardBreakNode>;
42
+ }
43
+ interface BlockquoteNode extends JSONContent {
44
+ type: "blockquote";
45
+ content?: Array<ParagraphNode>;
46
+ }
47
+ interface CodeBlockNode extends JSONContent {
48
+ type: "codeBlock";
49
+ attrs?: {
50
+ language?: string;
51
+ };
52
+ content?: Array<TextNode>;
53
+ }
54
+ interface HorizontalRuleNode extends JSONContent {
55
+ type: "horizontalRule";
56
+ }
57
+ interface BulletListNode extends JSONContent {
58
+ type: "bulletList";
59
+ content?: Array<ListItemNode>;
60
+ }
61
+ interface OrderedListNode extends JSONContent {
62
+ type: "orderedList";
63
+ attrs?: {
64
+ start?: number;
65
+ order?: number;
66
+ type?: string | null;
67
+ };
68
+ content?: Array<ListItemNode>;
69
+ }
70
+ interface TaskListNode extends JSONContent {
71
+ type: "taskList";
72
+ content?: Array<TaskItemNode>;
73
+ }
74
+ interface ListItemNode extends JSONContent {
75
+ type: "listItem";
76
+ content?: Array<ParagraphNode>;
77
+ }
78
+ interface TaskItemNode extends JSONContent {
79
+ type: "taskItem";
80
+ attrs?: {
81
+ checked?: boolean;
82
+ };
83
+ content?: Array<ParagraphNode>;
84
+ }
85
+ interface TableNode extends JSONContent {
86
+ type: "table";
87
+ content?: Array<TableRowNode>;
88
+ }
89
+ interface TableRowNode extends JSONContent {
90
+ type: "tableRow";
91
+ content?: Array<TableCellNode | TableHeaderNode>;
92
+ }
93
+ interface TableCellNode extends JSONContent {
94
+ type: "tableCell";
95
+ attrs?: {
96
+ colspan?: number;
97
+ rowspan?: number;
98
+ colwidth?: number[] | null;
99
+ };
100
+ content?: Array<ParagraphNode>;
101
+ }
102
+ interface TableHeaderNode extends JSONContent {
103
+ type: "tableHeader";
104
+ attrs?: {
105
+ colspan?: number;
106
+ rowspan?: number;
107
+ colwidth?: number[] | null;
108
+ };
109
+ content?: Array<ParagraphNode>;
110
+ }
111
+ interface ImageNode extends JSONContent {
112
+ type: "image";
113
+ attrs?: {
114
+ src: string;
115
+ alt?: string | null;
116
+ title?: string | null;
117
+ width?: number | null;
118
+ height?: number | null;
119
+ };
120
+ }
121
+ interface DetailsNode extends JSONContent {
122
+ type: "details";
123
+ content?: Array<DetailsSummaryNode | DetailsContentNode>;
124
+ }
125
+ interface DetailsSummaryNode extends JSONContent {
126
+ type: "detailsSummary";
127
+ content?: Array<TextNode | HardBreakNode>;
128
+ }
129
+ interface DetailsContentNode extends JSONContent {
130
+ type: "detailsContent";
131
+ content?: Array<BlockNode>;
132
+ }
133
+ type TextContent = TextNode | HardBreakNode;
134
+ type BlockNode = ParagraphNode | HeadingNode | BlockquoteNode | CodeBlockNode | HorizontalRuleNode | BulletListNode | OrderedListNode | TaskListNode | TableNode | ImageNode | DetailsNode;
135
+
136
+ export type { BlockNode, BlockquoteNode, BulletListNode, CodeBlockNode, DetailsContentNode, DetailsNode, DetailsSummaryNode, DocumentNode, HardBreakNode, HeadingNode, HorizontalRuleNode, ImageNode, ListItemNode, Mark, OrderedListNode, ParagraphNode, TableCellNode, TableHeaderNode, TableNode, TableRowNode, TaskItemNode, TaskListNode, TextContent, TextNode };
@@ -0,0 +1,136 @@
1
+ import { JSONContent } from '@tiptap/core';
2
+ export { JSONContent } from '@tiptap/core';
3
+
4
+ interface TextNode {
5
+ type: "text";
6
+ text: string;
7
+ marks?: Array<Mark>;
8
+ }
9
+ interface HardBreakNode {
10
+ type: "hardBreak";
11
+ marks?: Array<Mark>;
12
+ }
13
+ interface Mark {
14
+ type: "bold" | "italic" | "underline" | "strike" | "code" | "textStyle" | "link" | "highlight" | "subscript" | "superscript";
15
+ attrs?: {
16
+ color?: string;
17
+ backgroundColor?: string;
18
+ fontSize?: string;
19
+ fontFamily?: string;
20
+ lineHeight?: string;
21
+ href?: string;
22
+ target?: string;
23
+ rel?: string;
24
+ class?: string | null;
25
+ [key: string]: unknown;
26
+ };
27
+ }
28
+ interface DocumentNode extends JSONContent {
29
+ type: "doc";
30
+ content?: Array<BlockNode>;
31
+ }
32
+ interface ParagraphNode extends JSONContent {
33
+ type: "paragraph";
34
+ content?: Array<TextNode | HardBreakNode>;
35
+ }
36
+ interface HeadingNode extends JSONContent {
37
+ type: "heading";
38
+ attrs: {
39
+ level: 1 | 2 | 3 | 4 | 5 | 6;
40
+ };
41
+ content?: Array<TextNode | HardBreakNode>;
42
+ }
43
+ interface BlockquoteNode extends JSONContent {
44
+ type: "blockquote";
45
+ content?: Array<ParagraphNode>;
46
+ }
47
+ interface CodeBlockNode extends JSONContent {
48
+ type: "codeBlock";
49
+ attrs?: {
50
+ language?: string;
51
+ };
52
+ content?: Array<TextNode>;
53
+ }
54
+ interface HorizontalRuleNode extends JSONContent {
55
+ type: "horizontalRule";
56
+ }
57
+ interface BulletListNode extends JSONContent {
58
+ type: "bulletList";
59
+ content?: Array<ListItemNode>;
60
+ }
61
+ interface OrderedListNode extends JSONContent {
62
+ type: "orderedList";
63
+ attrs?: {
64
+ start?: number;
65
+ order?: number;
66
+ type?: string | null;
67
+ };
68
+ content?: Array<ListItemNode>;
69
+ }
70
+ interface TaskListNode extends JSONContent {
71
+ type: "taskList";
72
+ content?: Array<TaskItemNode>;
73
+ }
74
+ interface ListItemNode extends JSONContent {
75
+ type: "listItem";
76
+ content?: Array<ParagraphNode>;
77
+ }
78
+ interface TaskItemNode extends JSONContent {
79
+ type: "taskItem";
80
+ attrs?: {
81
+ checked?: boolean;
82
+ };
83
+ content?: Array<ParagraphNode>;
84
+ }
85
+ interface TableNode extends JSONContent {
86
+ type: "table";
87
+ content?: Array<TableRowNode>;
88
+ }
89
+ interface TableRowNode extends JSONContent {
90
+ type: "tableRow";
91
+ content?: Array<TableCellNode | TableHeaderNode>;
92
+ }
93
+ interface TableCellNode extends JSONContent {
94
+ type: "tableCell";
95
+ attrs?: {
96
+ colspan?: number;
97
+ rowspan?: number;
98
+ colwidth?: number[] | null;
99
+ };
100
+ content?: Array<ParagraphNode>;
101
+ }
102
+ interface TableHeaderNode extends JSONContent {
103
+ type: "tableHeader";
104
+ attrs?: {
105
+ colspan?: number;
106
+ rowspan?: number;
107
+ colwidth?: number[] | null;
108
+ };
109
+ content?: Array<ParagraphNode>;
110
+ }
111
+ interface ImageNode extends JSONContent {
112
+ type: "image";
113
+ attrs?: {
114
+ src: string;
115
+ alt?: string | null;
116
+ title?: string | null;
117
+ width?: number | null;
118
+ height?: number | null;
119
+ };
120
+ }
121
+ interface DetailsNode extends JSONContent {
122
+ type: "details";
123
+ content?: Array<DetailsSummaryNode | DetailsContentNode>;
124
+ }
125
+ interface DetailsSummaryNode extends JSONContent {
126
+ type: "detailsSummary";
127
+ content?: Array<TextNode | HardBreakNode>;
128
+ }
129
+ interface DetailsContentNode extends JSONContent {
130
+ type: "detailsContent";
131
+ content?: Array<BlockNode>;
132
+ }
133
+ type TextContent = TextNode | HardBreakNode;
134
+ type BlockNode = ParagraphNode | HeadingNode | BlockquoteNode | CodeBlockNode | HorizontalRuleNode | BulletListNode | OrderedListNode | TaskListNode | TableNode | ImageNode | DetailsNode;
135
+
136
+ export type { BlockNode, BlockquoteNode, BulletListNode, CodeBlockNode, DetailsContentNode, DetailsNode, DetailsSummaryNode, DocumentNode, HardBreakNode, HeadingNode, HorizontalRuleNode, ImageNode, ListItemNode, Mark, OrderedListNode, ParagraphNode, TableCellNode, TableHeaderNode, TableNode, TableRowNode, TaskItemNode, TaskListNode, TextContent, TextNode };
@@ -0,0 +1,136 @@
1
+ import { JSONContent } from '@tiptap/core';
2
+ export { JSONContent } from '@tiptap/core';
3
+
4
+ interface TextNode {
5
+ type: "text";
6
+ text: string;
7
+ marks?: Array<Mark>;
8
+ }
9
+ interface HardBreakNode {
10
+ type: "hardBreak";
11
+ marks?: Array<Mark>;
12
+ }
13
+ interface Mark {
14
+ type: "bold" | "italic" | "underline" | "strike" | "code" | "textStyle" | "link" | "highlight" | "subscript" | "superscript";
15
+ attrs?: {
16
+ color?: string;
17
+ backgroundColor?: string;
18
+ fontSize?: string;
19
+ fontFamily?: string;
20
+ lineHeight?: string;
21
+ href?: string;
22
+ target?: string;
23
+ rel?: string;
24
+ class?: string | null;
25
+ [key: string]: unknown;
26
+ };
27
+ }
28
+ interface DocumentNode extends JSONContent {
29
+ type: "doc";
30
+ content?: Array<BlockNode>;
31
+ }
32
+ interface ParagraphNode extends JSONContent {
33
+ type: "paragraph";
34
+ content?: Array<TextNode | HardBreakNode>;
35
+ }
36
+ interface HeadingNode extends JSONContent {
37
+ type: "heading";
38
+ attrs: {
39
+ level: 1 | 2 | 3 | 4 | 5 | 6;
40
+ };
41
+ content?: Array<TextNode | HardBreakNode>;
42
+ }
43
+ interface BlockquoteNode extends JSONContent {
44
+ type: "blockquote";
45
+ content?: Array<ParagraphNode>;
46
+ }
47
+ interface CodeBlockNode extends JSONContent {
48
+ type: "codeBlock";
49
+ attrs?: {
50
+ language?: string;
51
+ };
52
+ content?: Array<TextNode>;
53
+ }
54
+ interface HorizontalRuleNode extends JSONContent {
55
+ type: "horizontalRule";
56
+ }
57
+ interface BulletListNode extends JSONContent {
58
+ type: "bulletList";
59
+ content?: Array<ListItemNode>;
60
+ }
61
+ interface OrderedListNode extends JSONContent {
62
+ type: "orderedList";
63
+ attrs?: {
64
+ start?: number;
65
+ order?: number;
66
+ type?: string | null;
67
+ };
68
+ content?: Array<ListItemNode>;
69
+ }
70
+ interface TaskListNode extends JSONContent {
71
+ type: "taskList";
72
+ content?: Array<TaskItemNode>;
73
+ }
74
+ interface ListItemNode extends JSONContent {
75
+ type: "listItem";
76
+ content?: Array<ParagraphNode>;
77
+ }
78
+ interface TaskItemNode extends JSONContent {
79
+ type: "taskItem";
80
+ attrs?: {
81
+ checked?: boolean;
82
+ };
83
+ content?: Array<ParagraphNode>;
84
+ }
85
+ interface TableNode extends JSONContent {
86
+ type: "table";
87
+ content?: Array<TableRowNode>;
88
+ }
89
+ interface TableRowNode extends JSONContent {
90
+ type: "tableRow";
91
+ content?: Array<TableCellNode | TableHeaderNode>;
92
+ }
93
+ interface TableCellNode extends JSONContent {
94
+ type: "tableCell";
95
+ attrs?: {
96
+ colspan?: number;
97
+ rowspan?: number;
98
+ colwidth?: number[] | null;
99
+ };
100
+ content?: Array<ParagraphNode>;
101
+ }
102
+ interface TableHeaderNode extends JSONContent {
103
+ type: "tableHeader";
104
+ attrs?: {
105
+ colspan?: number;
106
+ rowspan?: number;
107
+ colwidth?: number[] | null;
108
+ };
109
+ content?: Array<ParagraphNode>;
110
+ }
111
+ interface ImageNode extends JSONContent {
112
+ type: "image";
113
+ attrs?: {
114
+ src: string;
115
+ alt?: string | null;
116
+ title?: string | null;
117
+ width?: number | null;
118
+ height?: number | null;
119
+ };
120
+ }
121
+ interface DetailsNode extends JSONContent {
122
+ type: "details";
123
+ content?: Array<DetailsSummaryNode | DetailsContentNode>;
124
+ }
125
+ interface DetailsSummaryNode extends JSONContent {
126
+ type: "detailsSummary";
127
+ content?: Array<TextNode | HardBreakNode>;
128
+ }
129
+ interface DetailsContentNode extends JSONContent {
130
+ type: "detailsContent";
131
+ content?: Array<BlockNode>;
132
+ }
133
+ type TextContent = TextNode | HardBreakNode;
134
+ type BlockNode = ParagraphNode | HeadingNode | BlockquoteNode | CodeBlockNode | HorizontalRuleNode | BulletListNode | OrderedListNode | TaskListNode | TableNode | ImageNode | DetailsNode;
135
+
136
+ export type { BlockNode, BlockquoteNode, BulletListNode, CodeBlockNode, DetailsContentNode, DetailsNode, DetailsSummaryNode, DocumentNode, HardBreakNode, HeadingNode, HorizontalRuleNode, ImageNode, ListItemNode, Mark, OrderedListNode, ParagraphNode, TableCellNode, TableHeaderNode, TableNode, TableRowNode, TaskItemNode, TaskListNode, TextContent, TextNode };
package/dist/types.mjs ADDED
@@ -0,0 +1 @@
1
+
package/package.json ADDED
@@ -0,0 +1,84 @@
1
+ {
2
+ "name": "@docen/tiptap-extensions",
3
+ "version": "0.0.0",
4
+ "description": "Collection of TipTap extensions with TypeScript type definitions for Docen",
5
+ "keywords": [
6
+ "docen",
7
+ "editor",
8
+ "extensions",
9
+ "prosemirror",
10
+ "tiptap",
11
+ "types",
12
+ "typescript",
13
+ "wysiwyg"
14
+ ],
15
+ "homepage": "https://github.com/DemoMacro/docen#readme",
16
+ "bugs": {
17
+ "url": "https://github.com/DemoMacro/docen/issues"
18
+ },
19
+ "license": "MIT",
20
+ "author": {
21
+ "name": "Demo Macro",
22
+ "email": "abc@imst.xyz",
23
+ "url": "https://imst.xyz/"
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/DemoMacro/docen.git"
28
+ },
29
+ "files": [
30
+ "dist"
31
+ ],
32
+ "main": "dist/index.mjs",
33
+ "types": "dist/index.d.ts",
34
+ "exports": {
35
+ ".": {
36
+ "import": "./dist/index.mjs",
37
+ "require": "./dist/index.cjs"
38
+ },
39
+ "./types": {
40
+ "types": "./dist/types.d.ts",
41
+ "import": "./dist/types.mjs",
42
+ "require": "./dist/types.cjs"
43
+ }
44
+ },
45
+ "dependencies": {
46
+ "@tiptap/core": "3.7.2",
47
+ "@tiptap/extension-blockquote": "3.7.2",
48
+ "@tiptap/extension-bold": "3.7.2",
49
+ "@tiptap/extension-bullet-list": "3.7.2",
50
+ "@tiptap/extension-code": "3.7.2",
51
+ "@tiptap/extension-code-block-lowlight": "3.7.2",
52
+ "@tiptap/extension-details": "3.10.7",
53
+ "@tiptap/extension-document": "3.7.2",
54
+ "@tiptap/extension-emoji": "3.10.7",
55
+ "@tiptap/extension-hard-break": "3.7.2",
56
+ "@tiptap/extension-heading": "3.7.2",
57
+ "@tiptap/extension-highlight": "3.7.2",
58
+ "@tiptap/extension-horizontal-rule": "3.10.7",
59
+ "@tiptap/extension-image": "3.7.2",
60
+ "@tiptap/extension-italic": "3.7.2",
61
+ "@tiptap/extension-link": "3.7.2",
62
+ "@tiptap/extension-list-item": "3.7.2",
63
+ "@tiptap/extension-mathematics": "3.10.7",
64
+ "@tiptap/extension-mention": "3.10.7",
65
+ "@tiptap/extension-ordered-list": "3.7.2",
66
+ "@tiptap/extension-paragraph": "3.7.2",
67
+ "@tiptap/extension-strike": "3.7.2",
68
+ "@tiptap/extension-subscript": "3.7.2",
69
+ "@tiptap/extension-superscript": "3.7.2",
70
+ "@tiptap/extension-table": "3.7.2",
71
+ "@tiptap/extension-table-cell": "3.7.2",
72
+ "@tiptap/extension-table-header": "3.7.2",
73
+ "@tiptap/extension-table-row": "3.7.2",
74
+ "@tiptap/extension-task-item": "3.7.2",
75
+ "@tiptap/extension-task-list": "3.7.2",
76
+ "@tiptap/extension-text": "3.7.2",
77
+ "@tiptap/extension-text-style": "3.7.2",
78
+ "@tiptap/extension-underline": "3.7.2"
79
+ },
80
+ "scripts": {
81
+ "dev": "unbuild --stub",
82
+ "build": "unbuild"
83
+ }
84
+ }