@tiptap/starter-kit 2.11.7 → 3.0.0-beta.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.md +21 -0
- package/README.md +5 -1
- package/dist/index.cjs +123 -90
- package/dist/index.cjs.map +1 -1
- package/dist/{starter-kit.d.ts → index.d.cts} +32 -11
- package/dist/index.d.ts +136 -5
- package/dist/index.js +98 -87
- package/dist/index.js.map +1 -1
- package/package.json +32 -27
- package/src/starter-kit.ts +90 -38
- package/dist/index.d.ts.map +0 -1
- package/dist/index.umd.js +0 -80
- package/dist/index.umd.js.map +0 -1
- package/dist/starter-kit.d.ts.map +0 -1
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025, Tiptap GmbH
|
|
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
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
# @tiptap/starter-kit
|
|
2
|
+
|
|
2
3
|
[](https://www.npmjs.com/package/@tiptap/starter-kit)
|
|
3
4
|
[](https://npmcharts.com/compare/tiptap?minimal=true)
|
|
4
5
|
[](https://www.npmjs.com/package/@tiptap/starter-kit)
|
|
5
6
|
[](https://github.com/sponsors/ueberdosis)
|
|
6
7
|
|
|
7
8
|
## Introduction
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
Tiptap is a headless wrapper around [ProseMirror](https://ProseMirror.net) – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as _New York Times_, _The Guardian_ or _Atlassian_.
|
|
9
11
|
|
|
10
12
|
## Official Documentation
|
|
13
|
+
|
|
11
14
|
Documentation can be found on the [Tiptap website](https://tiptap.dev).
|
|
12
15
|
|
|
13
16
|
## License
|
|
17
|
+
|
|
14
18
|
Tiptap is open sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap/blob/main/LICENSE.md).
|
package/dist/index.cjs
CHANGED
|
@@ -1,94 +1,127 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
2
19
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var extensionCodeBlock = require('@tiptap/extension-code-block');
|
|
11
|
-
var extensionDocument = require('@tiptap/extension-document');
|
|
12
|
-
var extensionDropcursor = require('@tiptap/extension-dropcursor');
|
|
13
|
-
var extensionGapcursor = require('@tiptap/extension-gapcursor');
|
|
14
|
-
var extensionHardBreak = require('@tiptap/extension-hard-break');
|
|
15
|
-
var extensionHeading = require('@tiptap/extension-heading');
|
|
16
|
-
var extensionHistory = require('@tiptap/extension-history');
|
|
17
|
-
var extensionHorizontalRule = require('@tiptap/extension-horizontal-rule');
|
|
18
|
-
var extensionItalic = require('@tiptap/extension-italic');
|
|
19
|
-
var extensionListItem = require('@tiptap/extension-list-item');
|
|
20
|
-
var extensionOrderedList = require('@tiptap/extension-ordered-list');
|
|
21
|
-
var extensionParagraph = require('@tiptap/extension-paragraph');
|
|
22
|
-
var extensionStrike = require('@tiptap/extension-strike');
|
|
23
|
-
var extensionText = require('@tiptap/extension-text');
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
StarterKit: () => StarterKit,
|
|
24
|
+
default: () => index_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(index_exports);
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
28
|
+
// src/starter-kit.ts
|
|
29
|
+
var import_core = require("@tiptap/core");
|
|
30
|
+
var import_extension_blockquote = require("@tiptap/extension-blockquote");
|
|
31
|
+
var import_extension_bold = require("@tiptap/extension-bold");
|
|
32
|
+
var import_extension_code = require("@tiptap/extension-code");
|
|
33
|
+
var import_extension_code_block = require("@tiptap/extension-code-block");
|
|
34
|
+
var import_extension_document = require("@tiptap/extension-document");
|
|
35
|
+
var import_extension_hard_break = require("@tiptap/extension-hard-break");
|
|
36
|
+
var import_extension_heading = require("@tiptap/extension-heading");
|
|
37
|
+
var import_extension_horizontal_rule = require("@tiptap/extension-horizontal-rule");
|
|
38
|
+
var import_extension_italic = require("@tiptap/extension-italic");
|
|
39
|
+
var import_extension_link = require("@tiptap/extension-link");
|
|
40
|
+
var import_extension_list = require("@tiptap/extension-list");
|
|
41
|
+
var import_extension_paragraph = require("@tiptap/extension-paragraph");
|
|
42
|
+
var import_extension_strike = require("@tiptap/extension-strike");
|
|
43
|
+
var import_extension_text = require("@tiptap/extension-text");
|
|
44
|
+
var import_extension_underline = require("@tiptap/extension-underline");
|
|
45
|
+
var import_extensions = require("@tiptap/extensions");
|
|
46
|
+
var StarterKit = import_core.Extension.create({
|
|
47
|
+
name: "starterKit",
|
|
48
|
+
addExtensions() {
|
|
49
|
+
var _a, _b, _c, _d;
|
|
50
|
+
const extensions = [];
|
|
51
|
+
if (this.options.bold !== false) {
|
|
52
|
+
extensions.push(import_extension_bold.Bold.configure(this.options.bold));
|
|
53
|
+
}
|
|
54
|
+
if (this.options.blockquote !== false) {
|
|
55
|
+
extensions.push(import_extension_blockquote.Blockquote.configure(this.options.blockquote));
|
|
56
|
+
}
|
|
57
|
+
if (this.options.bulletList !== false) {
|
|
58
|
+
extensions.push(import_extension_list.BulletList.configure(this.options.bulletList));
|
|
59
|
+
}
|
|
60
|
+
if (this.options.code !== false) {
|
|
61
|
+
extensions.push(import_extension_code.Code.configure(this.options.code));
|
|
62
|
+
}
|
|
63
|
+
if (this.options.codeBlock !== false) {
|
|
64
|
+
extensions.push(import_extension_code_block.CodeBlock.configure(this.options.codeBlock));
|
|
65
|
+
}
|
|
66
|
+
if (this.options.document !== false) {
|
|
67
|
+
extensions.push(import_extension_document.Document.configure(this.options.document));
|
|
68
|
+
}
|
|
69
|
+
if (this.options.dropcursor !== false) {
|
|
70
|
+
extensions.push(import_extensions.Dropcursor.configure(this.options.dropcursor));
|
|
71
|
+
}
|
|
72
|
+
if (this.options.gapcursor !== false) {
|
|
73
|
+
extensions.push(import_extensions.Gapcursor.configure(this.options.gapcursor));
|
|
74
|
+
}
|
|
75
|
+
if (this.options.hardBreak !== false) {
|
|
76
|
+
extensions.push(import_extension_hard_break.HardBreak.configure(this.options.hardBreak));
|
|
77
|
+
}
|
|
78
|
+
if (this.options.heading !== false) {
|
|
79
|
+
extensions.push(import_extension_heading.Heading.configure(this.options.heading));
|
|
80
|
+
}
|
|
81
|
+
if (this.options.undoRedo !== false) {
|
|
82
|
+
extensions.push(import_extensions.UndoRedo.configure(this.options.undoRedo));
|
|
83
|
+
}
|
|
84
|
+
if (this.options.horizontalRule !== false) {
|
|
85
|
+
extensions.push(import_extension_horizontal_rule.HorizontalRule.configure(this.options.horizontalRule));
|
|
86
|
+
}
|
|
87
|
+
if (this.options.italic !== false) {
|
|
88
|
+
extensions.push(import_extension_italic.Italic.configure(this.options.italic));
|
|
89
|
+
}
|
|
90
|
+
if (this.options.listItem !== false) {
|
|
91
|
+
extensions.push(import_extension_list.ListItem.configure(this.options.listItem));
|
|
92
|
+
}
|
|
93
|
+
if (this.options.listKeymap !== false) {
|
|
94
|
+
extensions.push(import_extension_list.ListKeymap.configure((_a = this.options) == null ? void 0 : _a.listKeymap));
|
|
95
|
+
}
|
|
96
|
+
if (this.options.link !== false) {
|
|
97
|
+
extensions.push(import_extension_link.Link.configure((_b = this.options) == null ? void 0 : _b.link));
|
|
98
|
+
}
|
|
99
|
+
if (this.options.orderedList !== false) {
|
|
100
|
+
extensions.push(import_extension_list.OrderedList.configure(this.options.orderedList));
|
|
101
|
+
}
|
|
102
|
+
if (this.options.paragraph !== false) {
|
|
103
|
+
extensions.push(import_extension_paragraph.Paragraph.configure(this.options.paragraph));
|
|
104
|
+
}
|
|
105
|
+
if (this.options.strike !== false) {
|
|
106
|
+
extensions.push(import_extension_strike.Strike.configure(this.options.strike));
|
|
107
|
+
}
|
|
108
|
+
if (this.options.text !== false) {
|
|
109
|
+
extensions.push(import_extension_text.Text.configure(this.options.text));
|
|
110
|
+
}
|
|
111
|
+
if (this.options.underline !== false) {
|
|
112
|
+
extensions.push(import_extension_underline.Underline.configure((_c = this.options) == null ? void 0 : _c.underline));
|
|
113
|
+
}
|
|
114
|
+
if (this.options.trailingNode !== false) {
|
|
115
|
+
extensions.push(import_extensions.TrailingNode.configure((_d = this.options) == null ? void 0 : _d.trailingNode));
|
|
116
|
+
}
|
|
117
|
+
return extensions;
|
|
118
|
+
}
|
|
90
119
|
});
|
|
91
120
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
121
|
+
// src/index.ts
|
|
122
|
+
var index_default = StarterKit;
|
|
123
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
124
|
+
0 && (module.exports = {
|
|
125
|
+
StarterKit
|
|
126
|
+
});
|
|
127
|
+
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/starter-kit.ts"],"sourcesContent":["import { Extension } from '@tiptap/core'\nimport { Blockquote, BlockquoteOptions } from '@tiptap/extension-blockquote'\nimport { Bold, BoldOptions } from '@tiptap/extension-bold'\nimport { BulletList, BulletListOptions } from '@tiptap/extension-bullet-list'\nimport { Code, CodeOptions } from '@tiptap/extension-code'\nimport { CodeBlock, CodeBlockOptions } from '@tiptap/extension-code-block'\nimport { Document } from '@tiptap/extension-document'\nimport { Dropcursor, DropcursorOptions } from '@tiptap/extension-dropcursor'\nimport { Gapcursor } from '@tiptap/extension-gapcursor'\nimport { HardBreak, HardBreakOptions } from '@tiptap/extension-hard-break'\nimport { Heading, HeadingOptions } from '@tiptap/extension-heading'\nimport { History, HistoryOptions } from '@tiptap/extension-history'\nimport { HorizontalRule, HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'\nimport { Italic, ItalicOptions } from '@tiptap/extension-italic'\nimport { ListItem, ListItemOptions } from '@tiptap/extension-list-item'\nimport { OrderedList, OrderedListOptions } from '@tiptap/extension-ordered-list'\nimport { Paragraph, ParagraphOptions } from '@tiptap/extension-paragraph'\nimport { Strike, StrikeOptions } from '@tiptap/extension-strike'\nimport { Text } from '@tiptap/extension-text'\n\nexport interface StarterKitOptions {\n /**\n * If set to false, the blockquote extension will not be registered\n * @example blockquote: false\n */\n blockquote: Partial<BlockquoteOptions> | false,\n\n /**\n * If set to false, the bold extension will not be registered\n * @example bold: false\n */\n bold: Partial<BoldOptions> | false,\n\n /**\n * If set to false, the bulletList extension will not be registered\n * @example bulletList: false\n */\n bulletList: Partial<BulletListOptions> | false,\n\n /**\n * If set to false, the code extension will not be registered\n * @example code: false\n */\n code: Partial<CodeOptions> | false,\n\n /**\n * If set to false, the codeBlock extension will not be registered\n * @example codeBlock: false\n */\n codeBlock: Partial<CodeBlockOptions> | false,\n\n /**\n * If set to false, the document extension will not be registered\n * @example document: false\n */\n document: false,\n\n /**\n * If set to false, the dropcursor extension will not be registered\n * @example dropcursor: false\n */\n dropcursor: Partial<DropcursorOptions> | false,\n\n /**\n * If set to false, the gapcursor extension will not be registered\n * @example gapcursor: false\n */\n gapcursor: false,\n\n /**\n * If set to false, the hardBreak extension will not be registered\n * @example hardBreak: false\n */\n hardBreak: Partial<HardBreakOptions> | false,\n\n /**\n * If set to false, the heading extension will not be registered\n * @example heading: false\n */\n heading: Partial<HeadingOptions> | false,\n\n /**\n * If set to false, the history extension will not be registered\n * @example history: false\n */\n history: Partial<HistoryOptions> | false,\n\n /**\n * If set to false, the horizontalRule extension will not be registered\n * @example horizontalRule: false\n */\n horizontalRule: Partial<HorizontalRuleOptions> | false,\n\n /**\n * If set to false, the italic extension will not be registered\n * @example italic: false\n */\n italic: Partial<ItalicOptions> | false,\n\n /**\n * If set to false, the listItem extension will not be registered\n * @example listItem: false\n */\n listItem: Partial<ListItemOptions> | false,\n\n /**\n * If set to false, the orderedList extension will not be registered\n * @example orderedList: false\n */\n orderedList: Partial<OrderedListOptions> | false,\n\n /**\n * If set to false, the paragraph extension will not be registered\n * @example paragraph: false\n */\n paragraph: Partial<ParagraphOptions> | false,\n\n /**\n * If set to false, the strike extension will not be registered\n * @example strike: false\n */\n strike: Partial<StrikeOptions> | false,\n\n /**\n * If set to false, the text extension will not be registered\n * @example text: false\n */\n text: false,\n}\n\n/**\n * The starter kit is a collection of essential editor extensions.\n *\n * It’s a good starting point for building your own editor.\n */\nexport const StarterKit = Extension.create<StarterKitOptions>({\n name: 'starterKit',\n\n addExtensions() {\n const extensions = []\n\n if (this.options.bold !== false) {\n extensions.push(Bold.configure(this.options.bold))\n }\n\n if (this.options.blockquote !== false) {\n extensions.push(Blockquote.configure(this.options.blockquote))\n }\n\n if (this.options.bulletList !== false) {\n extensions.push(BulletList.configure(this.options.bulletList))\n }\n\n if (this.options.code !== false) {\n extensions.push(Code.configure(this.options.code))\n }\n\n if (this.options.codeBlock !== false) {\n extensions.push(CodeBlock.configure(this.options.codeBlock))\n }\n\n if (this.options.document !== false) {\n extensions.push(Document.configure(this.options.document))\n }\n\n if (this.options.dropcursor !== false) {\n extensions.push(Dropcursor.configure(this.options.dropcursor))\n }\n\n if (this.options.gapcursor !== false) {\n extensions.push(Gapcursor.configure(this.options.gapcursor))\n }\n\n if (this.options.hardBreak !== false) {\n extensions.push(HardBreak.configure(this.options.hardBreak))\n }\n\n if (this.options.heading !== false) {\n extensions.push(Heading.configure(this.options.heading))\n }\n\n if (this.options.history !== false) {\n extensions.push(History.configure(this.options.history))\n }\n\n if (this.options.horizontalRule !== false) {\n extensions.push(HorizontalRule.configure(this.options.horizontalRule))\n }\n\n if (this.options.italic !== false) {\n extensions.push(Italic.configure(this.options.italic))\n }\n\n if (this.options.listItem !== false) {\n extensions.push(ListItem.configure(this.options.listItem))\n }\n\n if (this.options.orderedList !== false) {\n extensions.push(OrderedList.configure(this.options.orderedList))\n }\n\n if (this.options.paragraph !== false) {\n extensions.push(Paragraph.configure(this.options.paragraph))\n }\n\n if (this.options.strike !== false) {\n extensions.push(Strike.configure(this.options.strike))\n }\n\n if (this.options.text !== false) {\n extensions.push(Text.configure(this.options.text))\n }\n\n return extensions\n },\n})\n"],"names":["Extension","Bold","Blockquote","BulletList","Code","CodeBlock","Document","Dropcursor","Gapcursor","HardBreak","Heading","History","HorizontalRule","Italic","ListItem","OrderedList","Paragraph","Strike","Text"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAkIA;;;;AAIG;AACU,MAAA,UAAU,GAAGA,cAAS,CAAC,MAAM,CAAoB;AAC5D,IAAA,IAAI,E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UAAU,CAAC,IAAI,CAACC,gCAAW,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;;QAGlE,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,KAAK,KAAK,EAAE;AACpC,YAAA,UAAU,CAAC,IAAI,CAACC,4BAAS,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;;QAG9D,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,KAAK,EAAE;AACjC,YAAA,UAAU,CAAC,IAAI,CAACC,sBAAM,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;;QAGxD,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,KAAK,EAAE;AAC/B,YAAA,UAAU,CAAC,IAAI,CAACC,kBAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;;AAGpD,QAAA,OAAO,UAAU;KAClB;AACF,CAAA;;;;;"}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/starter-kit.ts"],"sourcesContent":["import { StarterKit } from './starter-kit.js'\n\nexport type { StarterKitOptions } from './starter-kit.js'\nexport * from './starter-kit.js'\n\nexport default StarterKit\n","import { Extension } from '@tiptap/core'\nimport type { BlockquoteOptions } from '@tiptap/extension-blockquote'\nimport { Blockquote } from '@tiptap/extension-blockquote'\nimport type { BoldOptions } from '@tiptap/extension-bold'\nimport { Bold } from '@tiptap/extension-bold'\nimport type { CodeOptions } from '@tiptap/extension-code'\nimport { Code } from '@tiptap/extension-code'\nimport type { CodeBlockOptions } from '@tiptap/extension-code-block'\nimport { CodeBlock } from '@tiptap/extension-code-block'\nimport { Document } from '@tiptap/extension-document'\nimport type { HardBreakOptions } from '@tiptap/extension-hard-break'\nimport { HardBreak } from '@tiptap/extension-hard-break'\nimport type { HeadingOptions } from '@tiptap/extension-heading'\nimport { Heading } from '@tiptap/extension-heading'\nimport type { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'\nimport { HorizontalRule } from '@tiptap/extension-horizontal-rule'\nimport type { ItalicOptions } from '@tiptap/extension-italic'\nimport { Italic } from '@tiptap/extension-italic'\nimport type { LinkOptions } from '@tiptap/extension-link'\nimport { Link } from '@tiptap/extension-link'\nimport type { BulletListOptions, ListItemOptions, ListKeymapOptions, OrderedListOptions } from '@tiptap/extension-list'\nimport { BulletList, ListItem, ListKeymap, OrderedList } from '@tiptap/extension-list'\nimport type { ParagraphOptions } from '@tiptap/extension-paragraph'\nimport { Paragraph } from '@tiptap/extension-paragraph'\nimport type { StrikeOptions } from '@tiptap/extension-strike'\nimport { Strike } from '@tiptap/extension-strike'\nimport { Text } from '@tiptap/extension-text'\nimport type { UnderlineOptions } from '@tiptap/extension-underline'\nimport { Underline } from '@tiptap/extension-underline'\nimport type { DropcursorOptions, TrailingNodeOptions, UndoRedoOptions } from '@tiptap/extensions'\nimport { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from '@tiptap/extensions'\n\nexport interface StarterKitOptions {\n /**\n * If set to false, the blockquote extension will not be registered\n * @example blockquote: false\n */\n blockquote: Partial<BlockquoteOptions> | false\n\n /**\n * If set to false, the bold extension will not be registered\n * @example bold: false\n */\n bold: Partial<BoldOptions> | false\n\n /**\n * If set to false, the bulletList extension will not be registered\n * @example bulletList: false\n */\n bulletList: Partial<BulletListOptions> | false\n\n /**\n * If set to false, the code extension will not be registered\n * @example code: false\n */\n code: Partial<CodeOptions> | false\n\n /**\n * If set to false, the codeBlock extension will not be registered\n * @example codeBlock: false\n */\n codeBlock: Partial<CodeBlockOptions> | false\n\n /**\n * If set to false, the document extension will not be registered\n * @example document: false\n */\n document: false\n\n /**\n * If set to false, the dropcursor extension will not be registered\n * @example dropcursor: false\n */\n dropcursor: Partial<DropcursorOptions> | false\n\n /**\n * If set to false, the gapcursor extension will not be registered\n * @example gapcursor: false\n */\n gapcursor: false\n\n /**\n * If set to false, the hardBreak extension will not be registered\n * @example hardBreak: false\n */\n hardBreak: Partial<HardBreakOptions> | false\n\n /**\n * If set to false, the heading extension will not be registered\n * @example heading: false\n */\n heading: Partial<HeadingOptions> | false\n\n /**\n * If set to false, the undo-redo extension will not be registered\n * @example undoRedo: false\n */\n undoRedo: Partial<UndoRedoOptions> | false\n\n /**\n * If set to false, the horizontalRule extension will not be registered\n * @example horizontalRule: false\n */\n horizontalRule: Partial<HorizontalRuleOptions> | false\n\n /**\n * If set to false, the italic extension will not be registered\n * @example italic: false\n */\n italic: Partial<ItalicOptions> | false\n\n /**\n * If set to false, the listItem extension will not be registered\n * @example listItem: false\n */\n listItem: Partial<ListItemOptions> | false\n\n /**\n * If set to false, the listItemKeymap extension will not be registered\n * @example listKeymap: false\n */\n listKeymap: Partial<ListKeymapOptions> | false\n\n /**\n * If set to false, the link extension will not be registered\n * @example link: false\n */\n link: Partial<LinkOptions> | false\n\n /**\n * If set to false, the orderedList extension will not be registered\n * @example orderedList: false\n */\n orderedList: Partial<OrderedListOptions> | false\n\n /**\n * If set to false, the paragraph extension will not be registered\n * @example paragraph: false\n */\n paragraph: Partial<ParagraphOptions> | false\n\n /**\n * If set to false, the strike extension will not be registered\n * @example strike: false\n */\n strike: Partial<StrikeOptions> | false\n\n /**\n * If set to false, the text extension will not be registered\n * @example text: false\n */\n text: false\n\n /**\n * If set to false, the underline extension will not be registered\n * @example underline: false\n */\n underline: Partial<UnderlineOptions> | false\n\n /**\n * If set to false, the trailingNode extension will not be registered\n * @example trailingNode: false\n */\n trailingNode: Partial<TrailingNodeOptions> | false\n}\n\n/**\n * The starter kit is a collection of essential editor extensions.\n *\n * It’s a good starting point for building your own editor.\n */\nexport const StarterKit = Extension.create<StarterKitOptions>({\n name: 'starterKit',\n\n addExtensions() {\n const extensions = []\n\n if (this.options.bold !== false) {\n extensions.push(Bold.configure(this.options.bold))\n }\n\n if (this.options.blockquote !== false) {\n extensions.push(Blockquote.configure(this.options.blockquote))\n }\n\n if (this.options.bulletList !== false) {\n extensions.push(BulletList.configure(this.options.bulletList))\n }\n\n if (this.options.code !== false) {\n extensions.push(Code.configure(this.options.code))\n }\n\n if (this.options.codeBlock !== false) {\n extensions.push(CodeBlock.configure(this.options.codeBlock))\n }\n\n if (this.options.document !== false) {\n extensions.push(Document.configure(this.options.document))\n }\n\n if (this.options.dropcursor !== false) {\n extensions.push(Dropcursor.configure(this.options.dropcursor))\n }\n\n if (this.options.gapcursor !== false) {\n extensions.push(Gapcursor.configure(this.options.gapcursor))\n }\n\n if (this.options.hardBreak !== false) {\n extensions.push(HardBreak.configure(this.options.hardBreak))\n }\n\n if (this.options.heading !== false) {\n extensions.push(Heading.configure(this.options.heading))\n }\n\n if (this.options.undoRedo !== false) {\n extensions.push(UndoRedo.configure(this.options.undoRedo))\n }\n\n if (this.options.horizontalRule !== false) {\n extensions.push(HorizontalRule.configure(this.options.horizontalRule))\n }\n\n if (this.options.italic !== false) {\n extensions.push(Italic.configure(this.options.italic))\n }\n\n if (this.options.listItem !== false) {\n extensions.push(ListItem.configure(this.options.listItem))\n }\n\n if (this.options.listKeymap !== false) {\n extensions.push(ListKeymap.configure(this.options?.listKeymap))\n }\n\n if (this.options.link !== false) {\n extensions.push(Link.configure(this.options?.link))\n }\n\n if (this.options.orderedList !== false) {\n extensions.push(OrderedList.configure(this.options.orderedList))\n }\n\n if (this.options.paragraph !== false) {\n extensions.push(Paragraph.configure(this.options.paragraph))\n }\n\n if (this.options.strike !== false) {\n extensions.push(Strike.configure(this.options.strike))\n }\n\n if (this.options.text !== false) {\n extensions.push(Text.configure(this.options.text))\n }\n\n if (this.options.underline !== false) {\n extensions.push(Underline.configure(this.options?.underline))\n }\n\n if (this.options.trailingNode !== false) {\n extensions.push(TrailingNode.configure(this.options?.trailingNode))\n }\n\n return extensions\n },\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kBAA0B;AAE1B,kCAA2B;AAE3B,4BAAqB;AAErB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,QAAQ,IAAI,CAAC;AAAA,IACnD;AAEA,QAAI,KAAK,QAAQ,cAAc,OAAO;AACpC,iBAAW,KAAK,qCAAU,WAAU,UAAK,YAAL,mBAAc,SAAS,CAAC;AAAA,IAC9D;AAEA,QAAI,KAAK,QAAQ,iBAAiB,OAAO;AACvC,iBAAW,KAAK,+BAAa,WAAU,UAAK,YAAL,mBAAc,YAAY,CAAC;AAAA,IACpE;AAEA,WAAO;AAAA,EACT;AACF,CAAC;;;ADtQD,IAAO,gBAAQ;","names":[]}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { Extension } from '@tiptap/core';
|
|
2
2
|
import { BlockquoteOptions } from '@tiptap/extension-blockquote';
|
|
3
3
|
import { BoldOptions } from '@tiptap/extension-bold';
|
|
4
|
-
import { BulletListOptions } from '@tiptap/extension-bullet-list';
|
|
5
4
|
import { CodeOptions } from '@tiptap/extension-code';
|
|
6
5
|
import { CodeBlockOptions } from '@tiptap/extension-code-block';
|
|
7
|
-
import { DropcursorOptions } from '@tiptap/extension-dropcursor';
|
|
8
6
|
import { HardBreakOptions } from '@tiptap/extension-hard-break';
|
|
9
7
|
import { HeadingOptions } from '@tiptap/extension-heading';
|
|
10
|
-
import { HistoryOptions } from '@tiptap/extension-history';
|
|
11
8
|
import { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule';
|
|
12
9
|
import { ItalicOptions } from '@tiptap/extension-italic';
|
|
13
|
-
import {
|
|
14
|
-
import { OrderedListOptions } from '@tiptap/extension-
|
|
10
|
+
import { LinkOptions } from '@tiptap/extension-link';
|
|
11
|
+
import { BulletListOptions, ListItemOptions, ListKeymapOptions, OrderedListOptions } from '@tiptap/extension-list';
|
|
15
12
|
import { ParagraphOptions } from '@tiptap/extension-paragraph';
|
|
16
13
|
import { StrikeOptions } from '@tiptap/extension-strike';
|
|
17
|
-
|
|
14
|
+
import { UnderlineOptions } from '@tiptap/extension-underline';
|
|
15
|
+
import { DropcursorOptions, UndoRedoOptions, TrailingNodeOptions } from '@tiptap/extensions';
|
|
16
|
+
|
|
17
|
+
interface StarterKitOptions {
|
|
18
18
|
/**
|
|
19
19
|
* If set to false, the blockquote extension will not be registered
|
|
20
20
|
* @example blockquote: false
|
|
@@ -66,10 +66,10 @@ export interface StarterKitOptions {
|
|
|
66
66
|
*/
|
|
67
67
|
heading: Partial<HeadingOptions> | false;
|
|
68
68
|
/**
|
|
69
|
-
* If set to false, the
|
|
70
|
-
* @example
|
|
69
|
+
* If set to false, the undo-redo extension will not be registered
|
|
70
|
+
* @example undoRedo: false
|
|
71
71
|
*/
|
|
72
|
-
|
|
72
|
+
undoRedo: Partial<UndoRedoOptions> | false;
|
|
73
73
|
/**
|
|
74
74
|
* If set to false, the horizontalRule extension will not be registered
|
|
75
75
|
* @example horizontalRule: false
|
|
@@ -85,6 +85,16 @@ export interface StarterKitOptions {
|
|
|
85
85
|
* @example listItem: false
|
|
86
86
|
*/
|
|
87
87
|
listItem: Partial<ListItemOptions> | false;
|
|
88
|
+
/**
|
|
89
|
+
* If set to false, the listItemKeymap extension will not be registered
|
|
90
|
+
* @example listKeymap: false
|
|
91
|
+
*/
|
|
92
|
+
listKeymap: Partial<ListKeymapOptions> | false;
|
|
93
|
+
/**
|
|
94
|
+
* If set to false, the link extension will not be registered
|
|
95
|
+
* @example link: false
|
|
96
|
+
*/
|
|
97
|
+
link: Partial<LinkOptions> | false;
|
|
88
98
|
/**
|
|
89
99
|
* If set to false, the orderedList extension will not be registered
|
|
90
100
|
* @example orderedList: false
|
|
@@ -105,11 +115,22 @@ export interface StarterKitOptions {
|
|
|
105
115
|
* @example text: false
|
|
106
116
|
*/
|
|
107
117
|
text: false;
|
|
118
|
+
/**
|
|
119
|
+
* If set to false, the underline extension will not be registered
|
|
120
|
+
* @example underline: false
|
|
121
|
+
*/
|
|
122
|
+
underline: Partial<UnderlineOptions> | false;
|
|
123
|
+
/**
|
|
124
|
+
* If set to false, the trailingNode extension will not be registered
|
|
125
|
+
* @example trailingNode: false
|
|
126
|
+
*/
|
|
127
|
+
trailingNode: Partial<TrailingNodeOptions> | false;
|
|
108
128
|
}
|
|
109
129
|
/**
|
|
110
130
|
* The starter kit is a collection of essential editor extensions.
|
|
111
131
|
*
|
|
112
132
|
* It’s a good starting point for building your own editor.
|
|
113
133
|
*/
|
|
114
|
-
|
|
115
|
-
|
|
134
|
+
declare const StarterKit: Extension<StarterKitOptions, any>;
|
|
135
|
+
|
|
136
|
+
export { StarterKit, type StarterKitOptions, StarterKit as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,136 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
import { BlockquoteOptions } from '@tiptap/extension-blockquote';
|
|
3
|
+
import { BoldOptions } from '@tiptap/extension-bold';
|
|
4
|
+
import { CodeOptions } from '@tiptap/extension-code';
|
|
5
|
+
import { CodeBlockOptions } from '@tiptap/extension-code-block';
|
|
6
|
+
import { HardBreakOptions } from '@tiptap/extension-hard-break';
|
|
7
|
+
import { HeadingOptions } from '@tiptap/extension-heading';
|
|
8
|
+
import { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule';
|
|
9
|
+
import { ItalicOptions } from '@tiptap/extension-italic';
|
|
10
|
+
import { LinkOptions } from '@tiptap/extension-link';
|
|
11
|
+
import { BulletListOptions, ListItemOptions, ListKeymapOptions, OrderedListOptions } from '@tiptap/extension-list';
|
|
12
|
+
import { ParagraphOptions } from '@tiptap/extension-paragraph';
|
|
13
|
+
import { StrikeOptions } from '@tiptap/extension-strike';
|
|
14
|
+
import { UnderlineOptions } from '@tiptap/extension-underline';
|
|
15
|
+
import { DropcursorOptions, UndoRedoOptions, TrailingNodeOptions } from '@tiptap/extensions';
|
|
16
|
+
|
|
17
|
+
interface StarterKitOptions {
|
|
18
|
+
/**
|
|
19
|
+
* If set to false, the blockquote extension will not be registered
|
|
20
|
+
* @example blockquote: false
|
|
21
|
+
*/
|
|
22
|
+
blockquote: Partial<BlockquoteOptions> | false;
|
|
23
|
+
/**
|
|
24
|
+
* If set to false, the bold extension will not be registered
|
|
25
|
+
* @example bold: false
|
|
26
|
+
*/
|
|
27
|
+
bold: Partial<BoldOptions> | false;
|
|
28
|
+
/**
|
|
29
|
+
* If set to false, the bulletList extension will not be registered
|
|
30
|
+
* @example bulletList: false
|
|
31
|
+
*/
|
|
32
|
+
bulletList: Partial<BulletListOptions> | false;
|
|
33
|
+
/**
|
|
34
|
+
* If set to false, the code extension will not be registered
|
|
35
|
+
* @example code: false
|
|
36
|
+
*/
|
|
37
|
+
code: Partial<CodeOptions> | false;
|
|
38
|
+
/**
|
|
39
|
+
* If set to false, the codeBlock extension will not be registered
|
|
40
|
+
* @example codeBlock: false
|
|
41
|
+
*/
|
|
42
|
+
codeBlock: Partial<CodeBlockOptions> | false;
|
|
43
|
+
/**
|
|
44
|
+
* If set to false, the document extension will not be registered
|
|
45
|
+
* @example document: false
|
|
46
|
+
*/
|
|
47
|
+
document: false;
|
|
48
|
+
/**
|
|
49
|
+
* If set to false, the dropcursor extension will not be registered
|
|
50
|
+
* @example dropcursor: false
|
|
51
|
+
*/
|
|
52
|
+
dropcursor: Partial<DropcursorOptions> | false;
|
|
53
|
+
/**
|
|
54
|
+
* If set to false, the gapcursor extension will not be registered
|
|
55
|
+
* @example gapcursor: false
|
|
56
|
+
*/
|
|
57
|
+
gapcursor: false;
|
|
58
|
+
/**
|
|
59
|
+
* If set to false, the hardBreak extension will not be registered
|
|
60
|
+
* @example hardBreak: false
|
|
61
|
+
*/
|
|
62
|
+
hardBreak: Partial<HardBreakOptions> | false;
|
|
63
|
+
/**
|
|
64
|
+
* If set to false, the heading extension will not be registered
|
|
65
|
+
* @example heading: false
|
|
66
|
+
*/
|
|
67
|
+
heading: Partial<HeadingOptions> | false;
|
|
68
|
+
/**
|
|
69
|
+
* If set to false, the undo-redo extension will not be registered
|
|
70
|
+
* @example undoRedo: false
|
|
71
|
+
*/
|
|
72
|
+
undoRedo: Partial<UndoRedoOptions> | false;
|
|
73
|
+
/**
|
|
74
|
+
* If set to false, the horizontalRule extension will not be registered
|
|
75
|
+
* @example horizontalRule: false
|
|
76
|
+
*/
|
|
77
|
+
horizontalRule: Partial<HorizontalRuleOptions> | false;
|
|
78
|
+
/**
|
|
79
|
+
* If set to false, the italic extension will not be registered
|
|
80
|
+
* @example italic: false
|
|
81
|
+
*/
|
|
82
|
+
italic: Partial<ItalicOptions> | false;
|
|
83
|
+
/**
|
|
84
|
+
* If set to false, the listItem extension will not be registered
|
|
85
|
+
* @example listItem: false
|
|
86
|
+
*/
|
|
87
|
+
listItem: Partial<ListItemOptions> | false;
|
|
88
|
+
/**
|
|
89
|
+
* If set to false, the listItemKeymap extension will not be registered
|
|
90
|
+
* @example listKeymap: false
|
|
91
|
+
*/
|
|
92
|
+
listKeymap: Partial<ListKeymapOptions> | false;
|
|
93
|
+
/**
|
|
94
|
+
* If set to false, the link extension will not be registered
|
|
95
|
+
* @example link: false
|
|
96
|
+
*/
|
|
97
|
+
link: Partial<LinkOptions> | false;
|
|
98
|
+
/**
|
|
99
|
+
* If set to false, the orderedList extension will not be registered
|
|
100
|
+
* @example orderedList: false
|
|
101
|
+
*/
|
|
102
|
+
orderedList: Partial<OrderedListOptions> | false;
|
|
103
|
+
/**
|
|
104
|
+
* If set to false, the paragraph extension will not be registered
|
|
105
|
+
* @example paragraph: false
|
|
106
|
+
*/
|
|
107
|
+
paragraph: Partial<ParagraphOptions> | false;
|
|
108
|
+
/**
|
|
109
|
+
* If set to false, the strike extension will not be registered
|
|
110
|
+
* @example strike: false
|
|
111
|
+
*/
|
|
112
|
+
strike: Partial<StrikeOptions> | false;
|
|
113
|
+
/**
|
|
114
|
+
* If set to false, the text extension will not be registered
|
|
115
|
+
* @example text: false
|
|
116
|
+
*/
|
|
117
|
+
text: false;
|
|
118
|
+
/**
|
|
119
|
+
* If set to false, the underline extension will not be registered
|
|
120
|
+
* @example underline: false
|
|
121
|
+
*/
|
|
122
|
+
underline: Partial<UnderlineOptions> | false;
|
|
123
|
+
/**
|
|
124
|
+
* If set to false, the trailingNode extension will not be registered
|
|
125
|
+
* @example trailingNode: false
|
|
126
|
+
*/
|
|
127
|
+
trailingNode: Partial<TrailingNodeOptions> | false;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* The starter kit is a collection of essential editor extensions.
|
|
131
|
+
*
|
|
132
|
+
* It’s a good starting point for building your own editor.
|
|
133
|
+
*/
|
|
134
|
+
declare const StarterKit: Extension<StarterKitOptions, any>;
|
|
135
|
+
|
|
136
|
+
export { StarterKit, type StarterKitOptions, StarterKit as default };
|
package/dist/index.js
CHANGED
|
@@ -1,89 +1,100 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Code } from
|
|
6
|
-
import { CodeBlock } from
|
|
7
|
-
import { Document } from
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
1
|
+
// src/starter-kit.ts
|
|
2
|
+
import { Extension } from "@tiptap/core";
|
|
3
|
+
import { Blockquote } from "@tiptap/extension-blockquote";
|
|
4
|
+
import { Bold } from "@tiptap/extension-bold";
|
|
5
|
+
import { Code } from "@tiptap/extension-code";
|
|
6
|
+
import { CodeBlock } from "@tiptap/extension-code-block";
|
|
7
|
+
import { Document } from "@tiptap/extension-document";
|
|
8
|
+
import { HardBreak } from "@tiptap/extension-hard-break";
|
|
9
|
+
import { Heading } from "@tiptap/extension-heading";
|
|
10
|
+
import { HorizontalRule } from "@tiptap/extension-horizontal-rule";
|
|
11
|
+
import { Italic } from "@tiptap/extension-italic";
|
|
12
|
+
import { Link } from "@tiptap/extension-link";
|
|
13
|
+
import { BulletList, ListItem, ListKeymap, OrderedList } from "@tiptap/extension-list";
|
|
14
|
+
import { Paragraph } from "@tiptap/extension-paragraph";
|
|
15
|
+
import { Strike } from "@tiptap/extension-strike";
|
|
16
|
+
import { Text } from "@tiptap/extension-text";
|
|
17
|
+
import { Underline } from "@tiptap/extension-underline";
|
|
18
|
+
import { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from "@tiptap/extensions";
|
|
19
|
+
var StarterKit = Extension.create({
|
|
20
|
+
name: "starterKit",
|
|
21
|
+
addExtensions() {
|
|
22
|
+
var _a, _b, _c, _d;
|
|
23
|
+
const extensions = [];
|
|
24
|
+
if (this.options.bold !== false) {
|
|
25
|
+
extensions.push(Bold.configure(this.options.bold));
|
|
26
|
+
}
|
|
27
|
+
if (this.options.blockquote !== false) {
|
|
28
|
+
extensions.push(Blockquote.configure(this.options.blockquote));
|
|
29
|
+
}
|
|
30
|
+
if (this.options.bulletList !== false) {
|
|
31
|
+
extensions.push(BulletList.configure(this.options.bulletList));
|
|
32
|
+
}
|
|
33
|
+
if (this.options.code !== false) {
|
|
34
|
+
extensions.push(Code.configure(this.options.code));
|
|
35
|
+
}
|
|
36
|
+
if (this.options.codeBlock !== false) {
|
|
37
|
+
extensions.push(CodeBlock.configure(this.options.codeBlock));
|
|
38
|
+
}
|
|
39
|
+
if (this.options.document !== false) {
|
|
40
|
+
extensions.push(Document.configure(this.options.document));
|
|
41
|
+
}
|
|
42
|
+
if (this.options.dropcursor !== false) {
|
|
43
|
+
extensions.push(Dropcursor.configure(this.options.dropcursor));
|
|
44
|
+
}
|
|
45
|
+
if (this.options.gapcursor !== false) {
|
|
46
|
+
extensions.push(Gapcursor.configure(this.options.gapcursor));
|
|
47
|
+
}
|
|
48
|
+
if (this.options.hardBreak !== false) {
|
|
49
|
+
extensions.push(HardBreak.configure(this.options.hardBreak));
|
|
50
|
+
}
|
|
51
|
+
if (this.options.heading !== false) {
|
|
52
|
+
extensions.push(Heading.configure(this.options.heading));
|
|
53
|
+
}
|
|
54
|
+
if (this.options.undoRedo !== false) {
|
|
55
|
+
extensions.push(UndoRedo.configure(this.options.undoRedo));
|
|
56
|
+
}
|
|
57
|
+
if (this.options.horizontalRule !== false) {
|
|
58
|
+
extensions.push(HorizontalRule.configure(this.options.horizontalRule));
|
|
59
|
+
}
|
|
60
|
+
if (this.options.italic !== false) {
|
|
61
|
+
extensions.push(Italic.configure(this.options.italic));
|
|
62
|
+
}
|
|
63
|
+
if (this.options.listItem !== false) {
|
|
64
|
+
extensions.push(ListItem.configure(this.options.listItem));
|
|
65
|
+
}
|
|
66
|
+
if (this.options.listKeymap !== false) {
|
|
67
|
+
extensions.push(ListKeymap.configure((_a = this.options) == null ? void 0 : _a.listKeymap));
|
|
68
|
+
}
|
|
69
|
+
if (this.options.link !== false) {
|
|
70
|
+
extensions.push(Link.configure((_b = this.options) == null ? void 0 : _b.link));
|
|
71
|
+
}
|
|
72
|
+
if (this.options.orderedList !== false) {
|
|
73
|
+
extensions.push(OrderedList.configure(this.options.orderedList));
|
|
74
|
+
}
|
|
75
|
+
if (this.options.paragraph !== false) {
|
|
76
|
+
extensions.push(Paragraph.configure(this.options.paragraph));
|
|
77
|
+
}
|
|
78
|
+
if (this.options.strike !== false) {
|
|
79
|
+
extensions.push(Strike.configure(this.options.strike));
|
|
80
|
+
}
|
|
81
|
+
if (this.options.text !== false) {
|
|
82
|
+
extensions.push(Text.configure(this.options.text));
|
|
83
|
+
}
|
|
84
|
+
if (this.options.underline !== false) {
|
|
85
|
+
extensions.push(Underline.configure((_c = this.options) == null ? void 0 : _c.underline));
|
|
86
|
+
}
|
|
87
|
+
if (this.options.trailingNode !== false) {
|
|
88
|
+
extensions.push(TrailingNode.configure((_d = this.options) == null ? void 0 : _d.trailingNode));
|
|
89
|
+
}
|
|
90
|
+
return extensions;
|
|
91
|
+
}
|
|
86
92
|
});
|
|
87
93
|
|
|
88
|
-
|
|
89
|
-
|
|
94
|
+
// src/index.ts
|
|
95
|
+
var index_default = StarterKit;
|
|
96
|
+
export {
|
|
97
|
+
StarterKit,
|
|
98
|
+
index_default as default
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/starter-kit.ts"],"sourcesContent":["import { Extension } from '@tiptap/core'\nimport { Blockquote, BlockquoteOptions } from '@tiptap/extension-blockquote'\nimport { Bold, BoldOptions } from '@tiptap/extension-bold'\nimport { BulletList, BulletListOptions } from '@tiptap/extension-bullet-list'\nimport { Code, CodeOptions } from '@tiptap/extension-code'\nimport { CodeBlock, CodeBlockOptions } from '@tiptap/extension-code-block'\nimport { Document } from '@tiptap/extension-document'\nimport { Dropcursor, DropcursorOptions } from '@tiptap/extension-dropcursor'\nimport { Gapcursor } from '@tiptap/extension-gapcursor'\nimport { HardBreak, HardBreakOptions } from '@tiptap/extension-hard-break'\nimport { Heading, HeadingOptions } from '@tiptap/extension-heading'\nimport { History, HistoryOptions } from '@tiptap/extension-history'\nimport { HorizontalRule, HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'\nimport { Italic, ItalicOptions } from '@tiptap/extension-italic'\nimport { ListItem, ListItemOptions } from '@tiptap/extension-list-item'\nimport { OrderedList, OrderedListOptions } from '@tiptap/extension-ordered-list'\nimport { Paragraph, ParagraphOptions } from '@tiptap/extension-paragraph'\nimport { Strike, StrikeOptions } from '@tiptap/extension-strike'\nimport { Text } from '@tiptap/extension-text'\n\nexport interface StarterKitOptions {\n /**\n * If set to false, the blockquote extension will not be registered\n * @example blockquote: false\n */\n blockquote: Partial<BlockquoteOptions> | false,\n\n /**\n * If set to false, the bold extension will not be registered\n * @example bold: false\n */\n bold: Partial<BoldOptions> | false,\n\n /**\n * If set to false, the bulletList extension will not be registered\n * @example bulletList: false\n */\n bulletList: Partial<BulletListOptions> | false,\n\n /**\n * If set to false, the code extension will not be registered\n * @example code: false\n */\n code: Partial<CodeOptions> | false,\n\n /**\n * If set to false, the codeBlock extension will not be registered\n * @example codeBlock: false\n */\n codeBlock: Partial<CodeBlockOptions> | false,\n\n /**\n * If set to false, the document extension will not be registered\n * @example document: false\n */\n document: false,\n\n /**\n * If set to false, the dropcursor extension will not be registered\n * @example dropcursor: false\n */\n dropcursor: Partial<DropcursorOptions> | false,\n\n /**\n * If set to false, the gapcursor extension will not be registered\n * @example gapcursor: false\n */\n gapcursor: false,\n\n /**\n * If set to false, the hardBreak extension will not be registered\n * @example hardBreak: false\n */\n hardBreak: Partial<HardBreakOptions> | false,\n\n /**\n * If set to false, the heading extension will not be registered\n * @example heading: false\n */\n heading: Partial<HeadingOptions> | false,\n\n /**\n * If set to false, the history extension will not be registered\n * @example history: false\n */\n history: Partial<HistoryOptions> | false,\n\n /**\n * If set to false, the horizontalRule extension will not be registered\n * @example horizontalRule: false\n */\n horizontalRule: Partial<HorizontalRuleOptions> | false,\n\n /**\n * If set to false, the italic extension will not be registered\n * @example italic: false\n */\n italic: Partial<ItalicOptions> | false,\n\n /**\n * If set to false, the listItem extension will not be registered\n * @example listItem: false\n */\n listItem: Partial<ListItemOptions> | false,\n\n /**\n * If set to false, the orderedList extension will not be registered\n * @example orderedList: false\n */\n orderedList: Partial<OrderedListOptions> | false,\n\n /**\n * If set to false, the paragraph extension will not be registered\n * @example paragraph: false\n */\n paragraph: Partial<ParagraphOptions> | false,\n\n /**\n * If set to false, the strike extension will not be registered\n * @example strike: false\n */\n strike: Partial<StrikeOptions> | false,\n\n /**\n * If set to false, the text extension will not be registered\n * @example text: false\n */\n text: false,\n}\n\n/**\n * The starter kit is a collection of essential editor extensions.\n *\n * It’s a good starting point for building your own editor.\n */\nexport const StarterKit = Extension.create<StarterKitOptions>({\n name: 'starterKit',\n\n addExtensions() {\n const extensions = []\n\n if (this.options.bold !== false) {\n extensions.push(Bold.configure(this.options.bold))\n }\n\n if (this.options.blockquote !== false) {\n extensions.push(Blockquote.configure(this.options.blockquote))\n }\n\n if (this.options.bulletList !== false) {\n extensions.push(BulletList.configure(this.options.bulletList))\n }\n\n if (this.options.code !== false) {\n extensions.push(Code.configure(this.options.code))\n }\n\n if (this.options.codeBlock !== false) {\n extensions.push(CodeBlock.configure(this.options.codeBlock))\n }\n\n if (this.options.document !== false) {\n extensions.push(Document.configure(this.options.document))\n }\n\n if (this.options.dropcursor !== false) {\n extensions.push(Dropcursor.configure(this.options.dropcursor))\n }\n\n if (this.options.gapcursor !== false) {\n extensions.push(Gapcursor.configure(this.options.gapcursor))\n }\n\n if (this.options.hardBreak !== false) {\n extensions.push(HardBreak.configure(this.options.hardBreak))\n }\n\n if (this.options.heading !== false) {\n extensions.push(Heading.configure(this.options.heading))\n }\n\n if (this.options.history !== false) {\n extensions.push(History.configure(this.options.history))\n }\n\n if (this.options.horizontalRule !== false) {\n extensions.push(HorizontalRule.configure(this.options.horizontalRule))\n }\n\n if (this.options.italic !== false) {\n extensions.push(Italic.configure(this.options.italic))\n }\n\n if (this.options.listItem !== false) {\n extensions.push(ListItem.configure(this.options.listItem))\n }\n\n if (this.options.orderedList !== false) {\n extensions.push(OrderedList.configure(this.options.orderedList))\n }\n\n if (this.options.paragraph !== false) {\n extensions.push(Paragraph.configure(this.options.paragraph))\n }\n\n if (this.options.strike !== false) {\n extensions.push(Strike.configure(this.options.strike))\n }\n\n if (this.options.text !== false) {\n extensions.push(Text.configure(this.options.text))\n }\n\n return extensions\n },\n})\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAkIA;;;;AAIG;AACU,MAAA,UAAU,GAAG,SAAS,CAAC,MAAM,CAAoB;AAC5D,IAAA,IAAI,EAAE,YAAY;IAElB,aAAa,GAAA;QACX,MAAM,UAAU,GAAG,EAAE;QAErB,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,KAAK,EAAE;AAC/B,YAAA,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;;QAGpD,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,KAAK,KAAK,EAAE;AACrC,YAAA,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;;QAGhE,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,KAAK,KAAK,EAAE;AACrC,YAAA,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;;QAGhE,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,KAAK,EAAE;AAC/B,YAAA,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS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"],"sourcesContent":["import { Extension } from '@tiptap/core'\nimport type { BlockquoteOptions } from '@tiptap/extension-blockquote'\nimport { Blockquote } from '@tiptap/extension-blockquote'\nimport type { BoldOptions } from '@tiptap/extension-bold'\nimport { Bold } from '@tiptap/extension-bold'\nimport type { CodeOptions } from '@tiptap/extension-code'\nimport { Code } from '@tiptap/extension-code'\nimport type { CodeBlockOptions } from '@tiptap/extension-code-block'\nimport { CodeBlock } from '@tiptap/extension-code-block'\nimport { Document } from '@tiptap/extension-document'\nimport type { HardBreakOptions } from '@tiptap/extension-hard-break'\nimport { HardBreak } from '@tiptap/extension-hard-break'\nimport type { HeadingOptions } from '@tiptap/extension-heading'\nimport { Heading } from '@tiptap/extension-heading'\nimport type { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'\nimport { HorizontalRule } from '@tiptap/extension-horizontal-rule'\nimport type { ItalicOptions } from '@tiptap/extension-italic'\nimport { Italic } from '@tiptap/extension-italic'\nimport type { LinkOptions } from '@tiptap/extension-link'\nimport { Link } from '@tiptap/extension-link'\nimport type { BulletListOptions, ListItemOptions, ListKeymapOptions, OrderedListOptions } from '@tiptap/extension-list'\nimport { BulletList, ListItem, ListKeymap, OrderedList } from '@tiptap/extension-list'\nimport type { ParagraphOptions } from '@tiptap/extension-paragraph'\nimport { Paragraph } from '@tiptap/extension-paragraph'\nimport type { StrikeOptions } from '@tiptap/extension-strike'\nimport { Strike } from '@tiptap/extension-strike'\nimport { Text } from '@tiptap/extension-text'\nimport type { UnderlineOptions } from '@tiptap/extension-underline'\nimport { Underline } from '@tiptap/extension-underline'\nimport type { DropcursorOptions, TrailingNodeOptions, UndoRedoOptions } from '@tiptap/extensions'\nimport { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from '@tiptap/extensions'\n\nexport interface StarterKitOptions {\n /**\n * If set to false, the blockquote extension will not be registered\n * @example blockquote: false\n */\n blockquote: Partial<BlockquoteOptions> | false\n\n /**\n * If set to false, the bold extension will not be registered\n * @example bold: false\n */\n bold: Partial<BoldOptions> | false\n\n /**\n * If set to false, the bulletList extension will not be registered\n * @example bulletList: false\n */\n bulletList: Partial<BulletListOptions> | false\n\n /**\n * If set to false, the code extension will not be registered\n * @example code: false\n */\n code: Partial<CodeOptions> | false\n\n /**\n * If set to false, the codeBlock extension will not be registered\n * @example codeBlock: false\n */\n codeBlock: Partial<CodeBlockOptions> | false\n\n /**\n * If set to false, the document extension will not be registered\n * @example document: false\n */\n document: false\n\n /**\n * If set to false, the dropcursor extension will not be registered\n * @example dropcursor: false\n */\n dropcursor: Partial<DropcursorOptions> | false\n\n /**\n * If set to false, the gapcursor extension will not be registered\n * @example gapcursor: false\n */\n gapcursor: false\n\n /**\n * If set to false, the hardBreak extension will not be registered\n * @example hardBreak: false\n */\n hardBreak: Partial<HardBreakOptions> | false\n\n /**\n * If set to false, the heading extension will not be registered\n * @example heading: false\n */\n heading: Partial<HeadingOptions> | false\n\n /**\n * If set to false, the undo-redo extension will not be registered\n * @example undoRedo: false\n */\n undoRedo: Partial<UndoRedoOptions> | false\n\n /**\n * If set to false, the horizontalRule extension will not be registered\n * @example horizontalRule: false\n */\n horizontalRule: Partial<HorizontalRuleOptions> | false\n\n /**\n * If set to false, the italic extension will not be registered\n * @example italic: false\n */\n italic: Partial<ItalicOptions> | false\n\n /**\n * If set to false, the listItem extension will not be registered\n * @example listItem: false\n */\n listItem: Partial<ListItemOptions> | false\n\n /**\n * If set to false, the listItemKeymap extension will not be registered\n * @example listKeymap: false\n */\n listKeymap: Partial<ListKeymapOptions> | false\n\n /**\n * If set to false, the link extension will not be registered\n * @example link: false\n */\n link: Partial<LinkOptions> | false\n\n /**\n * If set to false, the orderedList extension will not be registered\n * @example orderedList: false\n */\n orderedList: Partial<OrderedListOptions> | false\n\n /**\n * If set to false, the paragraph extension will not be registered\n * @example paragraph: false\n */\n paragraph: Partial<ParagraphOptions> | false\n\n /**\n * If set to false, the strike extension will not be registered\n * @example strike: false\n */\n strike: Partial<StrikeOptions> | false\n\n /**\n * If set to false, the text extension will not be registered\n * @example text: false\n */\n text: false\n\n /**\n * If set to false, the underline extension will not be registered\n * @example underline: false\n */\n underline: Partial<UnderlineOptions> | false\n\n /**\n * If set to false, the trailingNode extension will not be registered\n * @example trailingNode: false\n */\n trailingNode: Partial<TrailingNodeOptions> | false\n}\n\n/**\n * The starter kit is a collection of essential editor extensions.\n *\n * It’s a good starting point for building your own editor.\n */\nexport const StarterKit = Extension.create<StarterKitOptions>({\n name: 'starterKit',\n\n addExtensions() {\n const extensions = []\n\n if (this.options.bold !== false) {\n extensions.push(Bold.configure(this.options.bold))\n }\n\n if (this.options.blockquote !== false) {\n extensions.push(Blockquote.configure(this.options.blockquote))\n }\n\n if (this.options.bulletList !== false) {\n extensions.push(BulletList.configure(this.options.bulletList))\n }\n\n if (this.options.code !== false) {\n extensions.push(Code.configure(this.options.code))\n }\n\n if (this.options.codeBlock !== false) {\n extensions.push(CodeBlock.configure(this.options.codeBlock))\n }\n\n if (this.options.document !== false) {\n extensions.push(Document.configure(this.options.document))\n }\n\n if (this.options.dropcursor !== false) {\n extensions.push(Dropcursor.configure(this.options.dropcursor))\n }\n\n if (this.options.gapcursor !== false) {\n extensions.push(Gapcursor.configure(this.options.gapcursor))\n }\n\n if (this.options.hardBreak !== false) {\n extensions.push(HardBreak.configure(this.options.hardBreak))\n }\n\n if (this.options.heading !== false) {\n extensions.push(Heading.configure(this.options.heading))\n }\n\n if (this.options.undoRedo !== false) {\n extensions.push(UndoRedo.configure(this.options.undoRedo))\n }\n\n if (this.options.horizontalRule !== false) {\n extensions.push(HorizontalRule.configure(this.options.horizontalRule))\n }\n\n if (this.options.italic !== false) {\n extensions.push(Italic.configure(this.options.italic))\n }\n\n if (this.options.listItem !== false) {\n extensions.push(ListItem.configure(this.options.listItem))\n }\n\n if (this.options.listKeymap !== false) {\n extensions.push(ListKeymap.configure(this.options?.listKeymap))\n }\n\n if (this.options.link !== false) {\n extensions.push(Link.configure(this.options?.link))\n }\n\n if (this.options.orderedList !== false) {\n extensions.push(OrderedList.configure(this.options.orderedList))\n }\n\n if (this.options.paragraph !== false) {\n extensions.push(Paragraph.configure(this.options.paragraph))\n }\n\n if (this.options.strike !== false) {\n extensions.push(Strike.configure(this.options.strike))\n }\n\n if (this.options.text !== false) {\n extensions.push(Text.configure(this.options.text))\n }\n\n if (this.options.underline !== false) {\n extensions.push(Underline.configure(this.options?.underline))\n }\n\n if (this.options.trailingNode !== false) {\n extensions.push(TrailingNode.configure(this.options?.trailingNode))\n }\n\n return extensions\n },\n})\n","import { StarterKit } from './starter-kit.js'\n\nexport type { StarterKitOptions } from './starter-kit.js'\nexport * from './starter-kit.js'\n\nexport default StarterKit\n"],"mappings":";AAAA,SAAS,iBAAiB;AAE1B,SAAS,kBAAkB;AAE3B,SAAS,YAAY;AAErB,SAAS,YAAY;AAErB,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB;AAEzB,SAAS,iBAAiB;AAE1B,SAAS,eAAe;AAExB,SAAS,sBAAsB;AAE/B,SAAS,cAAc;AAEvB,SAAS,YAAY;AAErB,SAAS,YAAY,UAAU,YAAY,mBAAmB;AAE9D,SAAS,iBAAiB;AAE1B,SAAS,cAAc;AACvB,SAAS,YAAY;AAErB,SAAS,iBAAiB;AAE1B,SAAS,YAAY,WAAW,cAAc,gBAAgB;AA6IvD,IAAM,aAAa,UAAU,OAA0B;AAAA,EAC5D,MAAM;AAAA,EAEN,gBAAgB;AA9KlB;AA+KI,UAAM,aAAa,CAAC;AAEpB,QAAI,KAAK,QAAQ,SAAS,OAAO;AAC/B,iBAAW,KAAK,KAAK,UAAU,KAAK,QAAQ,IAAI,CAAC;AAAA,IACnD;AAEA,QAAI,KAAK,QAAQ,eAAe,OAAO;AACrC,iBAAW,KAAK,WAAW,UAAU,KAAK,QAAQ,UAAU,CAAC;AAAA,IAC/D;AAEA,QAAI,KAAK,QAAQ,eAAe,OAAO;AACrC,iBAAW,KAAK,WAAW,UAAU,KAAK,QAAQ,UAAU,CAAC;AAAA,I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BAAW,KAAK,WAAW,WAAU,UAAK,YAAL,mBAAc,UAAU,CAAC;AAAA,IAChE;AAEA,QAAI,KAAK,QAAQ,SAAS,OAAO;AAC/B,iBAAW,KAAK,KAAK,WAAU,UAAK,YAAL,mBAAc,IAAI,CAAC;AAAA,IACpD;AAEA,QAAI,KAAK,QAAQ,gBAAgB,OAAO;AACtC,iBAAW,KAAK,YAAY,UAAU,KAAK,QAAQ,WAAW,CAAC;AAAA,IACjE;AAEA,QAAI,KAAK,QAAQ,cAAc,OAAO;AACpC,iBAAW,KAAK,UAAU,UAAU,KAAK,QAAQ,SAAS,CAAC;AAAA,IAC7D;AAEA,QAAI,KAAK,QAAQ,WAAW,OAAO;AACjC,iBAAW,KAAK,OAAO,UAAU,KAAK,QAAQ,MAAM,CAAC;AAAA,IACvD;AAEA,QAAI,KAAK,QAAQ,SAAS,OAAO;AAC/B,iBAAW,KAAK,KAAK,UAAU,KAAK,QAAQ,IAAI,CAAC;AAAA,IACnD;AAEA,QAAI,KAAK,QAAQ,cAAc,OAAO;AACpC,iBAAW,KAAK,UAAU,WAAU,UAAK,YAAL,mBAAc,SAAS,CAAC;AAAA,IAC9D;AAEA,QAAI,KAAK,QAAQ,iBAAiB,OAAO;AACvC,iBAAW,KAAK,aAAa,WAAU,UAAK,YAAL,mBAAc,YAAY,CAAC;AAAA,IACpE;AAEA,WAAO;AAAA,EACT;AACF,CAAC;;;ACtQD,IAAO,gBAAQ;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiptap/starter-kit",
|
|
3
3
|
"description": "starter kit for tiptap",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0-beta.0",
|
|
5
5
|
"homepage": "https://tiptap.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tiptap",
|
|
@@ -14,14 +14,16 @@
|
|
|
14
14
|
},
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
|
-
"types":
|
|
17
|
+
"types": {
|
|
18
|
+
"import": "./dist/index.d.ts",
|
|
19
|
+
"require": "./dist/index.d.cts"
|
|
20
|
+
},
|
|
18
21
|
"import": "./dist/index.js",
|
|
19
22
|
"require": "./dist/index.cjs"
|
|
20
23
|
}
|
|
21
24
|
},
|
|
22
25
|
"main": "dist/index.cjs",
|
|
23
26
|
"module": "dist/index.js",
|
|
24
|
-
"umd": "dist/index.umd.js",
|
|
25
27
|
"types": "dist/index.d.ts",
|
|
26
28
|
"type": "module",
|
|
27
29
|
"files": [
|
|
@@ -29,27 +31,30 @@
|
|
|
29
31
|
"dist"
|
|
30
32
|
],
|
|
31
33
|
"dependencies": {
|
|
32
|
-
"@tiptap/core": "^
|
|
33
|
-
"@tiptap/extension-blockquote": "^
|
|
34
|
-
"@tiptap/extension-bold": "^
|
|
35
|
-
"@tiptap/extension-bullet-list": "^
|
|
36
|
-
"@tiptap/extension-code": "^
|
|
37
|
-
"@tiptap/extension-code-block": "^
|
|
38
|
-
"@tiptap/extension-document": "^
|
|
39
|
-
"@tiptap/extension-dropcursor": "^
|
|
40
|
-
"@tiptap/extension-gapcursor": "^
|
|
41
|
-
"@tiptap/extension-hard-break": "^
|
|
42
|
-
"@tiptap/extension-heading": "^
|
|
43
|
-
"@tiptap/extension-
|
|
44
|
-
"@tiptap/extension-
|
|
45
|
-
"@tiptap/extension-
|
|
46
|
-
"@tiptap/extension-list
|
|
47
|
-
"@tiptap/extension-
|
|
48
|
-
"@tiptap/extension-
|
|
49
|
-
"@tiptap/extension-
|
|
50
|
-
"@tiptap/extension-
|
|
51
|
-
"@tiptap/extension-
|
|
52
|
-
"@tiptap/
|
|
34
|
+
"@tiptap/core": "^3.0.0-beta.0",
|
|
35
|
+
"@tiptap/extension-blockquote": "^3.0.0-beta.0",
|
|
36
|
+
"@tiptap/extension-bold": "^3.0.0-beta.0",
|
|
37
|
+
"@tiptap/extension-bullet-list": "^3.0.0-beta.0",
|
|
38
|
+
"@tiptap/extension-code": "^3.0.0-beta.0",
|
|
39
|
+
"@tiptap/extension-code-block": "^3.0.0-beta.0",
|
|
40
|
+
"@tiptap/extension-document": "^3.0.0-beta.0",
|
|
41
|
+
"@tiptap/extension-dropcursor": "^3.0.0-beta.0",
|
|
42
|
+
"@tiptap/extension-gapcursor": "^3.0.0-beta.0",
|
|
43
|
+
"@tiptap/extension-hard-break": "^3.0.0-beta.0",
|
|
44
|
+
"@tiptap/extension-heading": "^3.0.0-beta.0",
|
|
45
|
+
"@tiptap/extension-horizontal-rule": "^3.0.0-beta.0",
|
|
46
|
+
"@tiptap/extension-italic": "^3.0.0-beta.0",
|
|
47
|
+
"@tiptap/extension-link": "^3.0.0-beta.0",
|
|
48
|
+
"@tiptap/extension-list": "^3.0.0-beta.0",
|
|
49
|
+
"@tiptap/extension-list-item": "^3.0.0-beta.0",
|
|
50
|
+
"@tiptap/extension-list-keymap": "^3.0.0-beta.0",
|
|
51
|
+
"@tiptap/extension-ordered-list": "^3.0.0-beta.0",
|
|
52
|
+
"@tiptap/extension-paragraph": "^3.0.0-beta.0",
|
|
53
|
+
"@tiptap/extension-strike": "^3.0.0-beta.0",
|
|
54
|
+
"@tiptap/extension-text": "^3.0.0-beta.0",
|
|
55
|
+
"@tiptap/extension-underline": "^3.0.0-beta.0",
|
|
56
|
+
"@tiptap/extensions": "^3.0.0-beta.0",
|
|
57
|
+
"@tiptap/pm": "^3.0.0-beta.0"
|
|
53
58
|
},
|
|
54
59
|
"repository": {
|
|
55
60
|
"type": "git",
|
|
@@ -57,7 +62,7 @@
|
|
|
57
62
|
"directory": "packages/starter-kit"
|
|
58
63
|
},
|
|
59
64
|
"scripts": {
|
|
60
|
-
"
|
|
61
|
-
"
|
|
65
|
+
"build": "tsup",
|
|
66
|
+
"lint": "prettier ./src/ --check && eslint --cache --quiet --no-error-on-unmatched-pattern ./src/"
|
|
62
67
|
}
|
|
63
|
-
}
|
|
68
|
+
}
|
package/src/starter-kit.ts
CHANGED
|
@@ -1,131 +1,167 @@
|
|
|
1
1
|
import { Extension } from '@tiptap/core'
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import type { BlockquoteOptions } from '@tiptap/extension-blockquote'
|
|
3
|
+
import { Blockquote } from '@tiptap/extension-blockquote'
|
|
4
|
+
import type { BoldOptions } from '@tiptap/extension-bold'
|
|
5
|
+
import { Bold } from '@tiptap/extension-bold'
|
|
6
|
+
import type { CodeOptions } from '@tiptap/extension-code'
|
|
7
|
+
import { Code } from '@tiptap/extension-code'
|
|
8
|
+
import type { CodeBlockOptions } from '@tiptap/extension-code-block'
|
|
9
|
+
import { CodeBlock } from '@tiptap/extension-code-block'
|
|
7
10
|
import { Document } from '@tiptap/extension-document'
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { Heading
|
|
12
|
-
import {
|
|
13
|
-
import { HorizontalRule
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
11
|
+
import type { HardBreakOptions } from '@tiptap/extension-hard-break'
|
|
12
|
+
import { HardBreak } from '@tiptap/extension-hard-break'
|
|
13
|
+
import type { HeadingOptions } from '@tiptap/extension-heading'
|
|
14
|
+
import { Heading } from '@tiptap/extension-heading'
|
|
15
|
+
import type { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'
|
|
16
|
+
import { HorizontalRule } from '@tiptap/extension-horizontal-rule'
|
|
17
|
+
import type { ItalicOptions } from '@tiptap/extension-italic'
|
|
18
|
+
import { Italic } from '@tiptap/extension-italic'
|
|
19
|
+
import type { LinkOptions } from '@tiptap/extension-link'
|
|
20
|
+
import { Link } from '@tiptap/extension-link'
|
|
21
|
+
import type { BulletListOptions, ListItemOptions, ListKeymapOptions, OrderedListOptions } from '@tiptap/extension-list'
|
|
22
|
+
import { BulletList, ListItem, ListKeymap, OrderedList } from '@tiptap/extension-list'
|
|
23
|
+
import type { ParagraphOptions } from '@tiptap/extension-paragraph'
|
|
24
|
+
import { Paragraph } from '@tiptap/extension-paragraph'
|
|
25
|
+
import type { StrikeOptions } from '@tiptap/extension-strike'
|
|
26
|
+
import { Strike } from '@tiptap/extension-strike'
|
|
19
27
|
import { Text } from '@tiptap/extension-text'
|
|
28
|
+
import type { UnderlineOptions } from '@tiptap/extension-underline'
|
|
29
|
+
import { Underline } from '@tiptap/extension-underline'
|
|
30
|
+
import type { DropcursorOptions, TrailingNodeOptions, UndoRedoOptions } from '@tiptap/extensions'
|
|
31
|
+
import { Dropcursor, Gapcursor, TrailingNode, UndoRedo } from '@tiptap/extensions'
|
|
20
32
|
|
|
21
33
|
export interface StarterKitOptions {
|
|
22
34
|
/**
|
|
23
35
|
* If set to false, the blockquote extension will not be registered
|
|
24
36
|
* @example blockquote: false
|
|
25
37
|
*/
|
|
26
|
-
blockquote: Partial<BlockquoteOptions> | false
|
|
38
|
+
blockquote: Partial<BlockquoteOptions> | false
|
|
27
39
|
|
|
28
40
|
/**
|
|
29
41
|
* If set to false, the bold extension will not be registered
|
|
30
42
|
* @example bold: false
|
|
31
43
|
*/
|
|
32
|
-
bold: Partial<BoldOptions> | false
|
|
44
|
+
bold: Partial<BoldOptions> | false
|
|
33
45
|
|
|
34
46
|
/**
|
|
35
47
|
* If set to false, the bulletList extension will not be registered
|
|
36
48
|
* @example bulletList: false
|
|
37
49
|
*/
|
|
38
|
-
bulletList: Partial<BulletListOptions> | false
|
|
50
|
+
bulletList: Partial<BulletListOptions> | false
|
|
39
51
|
|
|
40
52
|
/**
|
|
41
53
|
* If set to false, the code extension will not be registered
|
|
42
54
|
* @example code: false
|
|
43
55
|
*/
|
|
44
|
-
code: Partial<CodeOptions> | false
|
|
56
|
+
code: Partial<CodeOptions> | false
|
|
45
57
|
|
|
46
58
|
/**
|
|
47
59
|
* If set to false, the codeBlock extension will not be registered
|
|
48
60
|
* @example codeBlock: false
|
|
49
61
|
*/
|
|
50
|
-
codeBlock: Partial<CodeBlockOptions> | false
|
|
62
|
+
codeBlock: Partial<CodeBlockOptions> | false
|
|
51
63
|
|
|
52
64
|
/**
|
|
53
65
|
* If set to false, the document extension will not be registered
|
|
54
66
|
* @example document: false
|
|
55
67
|
*/
|
|
56
|
-
document: false
|
|
68
|
+
document: false
|
|
57
69
|
|
|
58
70
|
/**
|
|
59
71
|
* If set to false, the dropcursor extension will not be registered
|
|
60
72
|
* @example dropcursor: false
|
|
61
73
|
*/
|
|
62
|
-
dropcursor: Partial<DropcursorOptions> | false
|
|
74
|
+
dropcursor: Partial<DropcursorOptions> | false
|
|
63
75
|
|
|
64
76
|
/**
|
|
65
77
|
* If set to false, the gapcursor extension will not be registered
|
|
66
78
|
* @example gapcursor: false
|
|
67
79
|
*/
|
|
68
|
-
gapcursor: false
|
|
80
|
+
gapcursor: false
|
|
69
81
|
|
|
70
82
|
/**
|
|
71
83
|
* If set to false, the hardBreak extension will not be registered
|
|
72
84
|
* @example hardBreak: false
|
|
73
85
|
*/
|
|
74
|
-
hardBreak: Partial<HardBreakOptions> | false
|
|
86
|
+
hardBreak: Partial<HardBreakOptions> | false
|
|
75
87
|
|
|
76
88
|
/**
|
|
77
89
|
* If set to false, the heading extension will not be registered
|
|
78
90
|
* @example heading: false
|
|
79
91
|
*/
|
|
80
|
-
heading: Partial<HeadingOptions> | false
|
|
92
|
+
heading: Partial<HeadingOptions> | false
|
|
81
93
|
|
|
82
94
|
/**
|
|
83
|
-
* If set to false, the
|
|
84
|
-
* @example
|
|
95
|
+
* If set to false, the undo-redo extension will not be registered
|
|
96
|
+
* @example undoRedo: false
|
|
85
97
|
*/
|
|
86
|
-
|
|
98
|
+
undoRedo: Partial<UndoRedoOptions> | false
|
|
87
99
|
|
|
88
100
|
/**
|
|
89
101
|
* If set to false, the horizontalRule extension will not be registered
|
|
90
102
|
* @example horizontalRule: false
|
|
91
103
|
*/
|
|
92
|
-
horizontalRule: Partial<HorizontalRuleOptions> | false
|
|
104
|
+
horizontalRule: Partial<HorizontalRuleOptions> | false
|
|
93
105
|
|
|
94
106
|
/**
|
|
95
107
|
* If set to false, the italic extension will not be registered
|
|
96
108
|
* @example italic: false
|
|
97
109
|
*/
|
|
98
|
-
italic: Partial<ItalicOptions> | false
|
|
110
|
+
italic: Partial<ItalicOptions> | false
|
|
99
111
|
|
|
100
112
|
/**
|
|
101
113
|
* If set to false, the listItem extension will not be registered
|
|
102
114
|
* @example listItem: false
|
|
103
115
|
*/
|
|
104
|
-
listItem: Partial<ListItemOptions> | false
|
|
116
|
+
listItem: Partial<ListItemOptions> | false
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* If set to false, the listItemKeymap extension will not be registered
|
|
120
|
+
* @example listKeymap: false
|
|
121
|
+
*/
|
|
122
|
+
listKeymap: Partial<ListKeymapOptions> | false
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* If set to false, the link extension will not be registered
|
|
126
|
+
* @example link: false
|
|
127
|
+
*/
|
|
128
|
+
link: Partial<LinkOptions> | false
|
|
105
129
|
|
|
106
130
|
/**
|
|
107
131
|
* If set to false, the orderedList extension will not be registered
|
|
108
132
|
* @example orderedList: false
|
|
109
133
|
*/
|
|
110
|
-
orderedList: Partial<OrderedListOptions> | false
|
|
134
|
+
orderedList: Partial<OrderedListOptions> | false
|
|
111
135
|
|
|
112
136
|
/**
|
|
113
137
|
* If set to false, the paragraph extension will not be registered
|
|
114
138
|
* @example paragraph: false
|
|
115
139
|
*/
|
|
116
|
-
paragraph: Partial<ParagraphOptions> | false
|
|
140
|
+
paragraph: Partial<ParagraphOptions> | false
|
|
117
141
|
|
|
118
142
|
/**
|
|
119
143
|
* If set to false, the strike extension will not be registered
|
|
120
144
|
* @example strike: false
|
|
121
145
|
*/
|
|
122
|
-
strike: Partial<StrikeOptions> | false
|
|
146
|
+
strike: Partial<StrikeOptions> | false
|
|
123
147
|
|
|
124
148
|
/**
|
|
125
149
|
* If set to false, the text extension will not be registered
|
|
126
150
|
* @example text: false
|
|
127
151
|
*/
|
|
128
|
-
text: false
|
|
152
|
+
text: false
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* If set to false, the underline extension will not be registered
|
|
156
|
+
* @example underline: false
|
|
157
|
+
*/
|
|
158
|
+
underline: Partial<UnderlineOptions> | false
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* If set to false, the trailingNode extension will not be registered
|
|
162
|
+
* @example trailingNode: false
|
|
163
|
+
*/
|
|
164
|
+
trailingNode: Partial<TrailingNodeOptions> | false
|
|
129
165
|
}
|
|
130
166
|
|
|
131
167
|
/**
|
|
@@ -179,8 +215,8 @@ export const StarterKit = Extension.create<StarterKitOptions>({
|
|
|
179
215
|
extensions.push(Heading.configure(this.options.heading))
|
|
180
216
|
}
|
|
181
217
|
|
|
182
|
-
if (this.options.
|
|
183
|
-
extensions.push(
|
|
218
|
+
if (this.options.undoRedo !== false) {
|
|
219
|
+
extensions.push(UndoRedo.configure(this.options.undoRedo))
|
|
184
220
|
}
|
|
185
221
|
|
|
186
222
|
if (this.options.horizontalRule !== false) {
|
|
@@ -195,6 +231,14 @@ export const StarterKit = Extension.create<StarterKitOptions>({
|
|
|
195
231
|
extensions.push(ListItem.configure(this.options.listItem))
|
|
196
232
|
}
|
|
197
233
|
|
|
234
|
+
if (this.options.listKeymap !== false) {
|
|
235
|
+
extensions.push(ListKeymap.configure(this.options?.listKeymap))
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
if (this.options.link !== false) {
|
|
239
|
+
extensions.push(Link.configure(this.options?.link))
|
|
240
|
+
}
|
|
241
|
+
|
|
198
242
|
if (this.options.orderedList !== false) {
|
|
199
243
|
extensions.push(OrderedList.configure(this.options.orderedList))
|
|
200
244
|
}
|
|
@@ -211,6 +255,14 @@ export const StarterKit = Extension.create<StarterKitOptions>({
|
|
|
211
255
|
extensions.push(Text.configure(this.options.text))
|
|
212
256
|
}
|
|
213
257
|
|
|
258
|
+
if (this.options.underline !== false) {
|
|
259
|
+
extensions.push(Underline.configure(this.options?.underline))
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
if (this.options.trailingNode !== false) {
|
|
263
|
+
extensions.push(TrailingNode.configure(this.options?.trailingNode))
|
|
264
|
+
}
|
|
265
|
+
|
|
214
266
|
return extensions
|
|
215
267
|
},
|
|
216
268
|
})
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACzD,cAAc,kBAAkB,CAAA;AAEhC,eAAe,UAAU,CAAA"}
|
package/dist/index.umd.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tiptap/core'), require('@tiptap/extension-blockquote'), require('@tiptap/extension-bold'), require('@tiptap/extension-bullet-list'), require('@tiptap/extension-code'), require('@tiptap/extension-code-block'), require('@tiptap/extension-document'), require('@tiptap/extension-dropcursor'), require('@tiptap/extension-gapcursor'), require('@tiptap/extension-hard-break'), require('@tiptap/extension-heading'), require('@tiptap/extension-history'), require('@tiptap/extension-horizontal-rule'), require('@tiptap/extension-italic'), require('@tiptap/extension-list-item'), require('@tiptap/extension-ordered-list'), require('@tiptap/extension-paragraph'), require('@tiptap/extension-strike'), require('@tiptap/extension-text')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@tiptap/core', '@tiptap/extension-blockquote', '@tiptap/extension-bold', '@tiptap/extension-bullet-list', '@tiptap/extension-code', '@tiptap/extension-code-block', '@tiptap/extension-document', '@tiptap/extension-dropcursor', '@tiptap/extension-gapcursor', '@tiptap/extension-hard-break', '@tiptap/extension-heading', '@tiptap/extension-history', '@tiptap/extension-horizontal-rule', '@tiptap/extension-italic', '@tiptap/extension-list-item', '@tiptap/extension-ordered-list', '@tiptap/extension-paragraph', '@tiptap/extension-strike', '@tiptap/extension-text'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@tiptap/starter-kit"] = {}, global.core, global.extensionBlockquote, global.extensionBold, global.extensionBulletList, global.extensionCode, global.extensionCodeBlock, global.extensionDocument, global.extensionDropcursor, global.extensionGapcursor, global.extensionHardBreak, global.extensionHeading, global.extensionHistory, global.extensionHorizontalRule, global.extensionItalic, global.extensionListItem, global.extensionOrderedList, global.extensionParagraph, global.extensionStrike, global.extensionText));
|
|
5
|
-
})(this, (function (exports, core, extensionBlockquote, extensionBold, extensionBulletList, extensionCode, extensionCodeBlock, extensionDocument, extensionDropcursor, extensionGapcursor, extensionHardBreak, extensionHeading, extensionHistory, extensionHorizontalRule, extensionItalic, extensionListItem, extensionOrderedList, extensionParagraph, extensionStrike, extensionText) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The starter kit is a collection of essential editor extensions.
|
|
9
|
-
*
|
|
10
|
-
* It’s a good starting point for building your own editor.
|
|
11
|
-
*/
|
|
12
|
-
const StarterKit = core.Extension.create({
|
|
13
|
-
name: 'starterKit',
|
|
14
|
-
addExtensions() {
|
|
15
|
-
const extensions = [];
|
|
16
|
-
if (this.options.bold !== false) {
|
|
17
|
-
extensions.push(extensionBold.Bold.configure(this.options.bold));
|
|
18
|
-
}
|
|
19
|
-
if (this.options.blockquote !== false) {
|
|
20
|
-
extensions.push(extensionBlockquote.Blockquote.configure(this.options.blockquote));
|
|
21
|
-
}
|
|
22
|
-
if (this.options.bulletList !== false) {
|
|
23
|
-
extensions.push(extensionBulletList.BulletList.configure(this.options.bulletList));
|
|
24
|
-
}
|
|
25
|
-
if (this.options.code !== false) {
|
|
26
|
-
extensions.push(extensionCode.Code.configure(this.options.code));
|
|
27
|
-
}
|
|
28
|
-
if (this.options.codeBlock !== false) {
|
|
29
|
-
extensions.push(extensionCodeBlock.CodeBlock.configure(this.options.codeBlock));
|
|
30
|
-
}
|
|
31
|
-
if (this.options.document !== false) {
|
|
32
|
-
extensions.push(extensionDocument.Document.configure(this.options.document));
|
|
33
|
-
}
|
|
34
|
-
if (this.options.dropcursor !== false) {
|
|
35
|
-
extensions.push(extensionDropcursor.Dropcursor.configure(this.options.dropcursor));
|
|
36
|
-
}
|
|
37
|
-
if (this.options.gapcursor !== false) {
|
|
38
|
-
extensions.push(extensionGapcursor.Gapcursor.configure(this.options.gapcursor));
|
|
39
|
-
}
|
|
40
|
-
if (this.options.hardBreak !== false) {
|
|
41
|
-
extensions.push(extensionHardBreak.HardBreak.configure(this.options.hardBreak));
|
|
42
|
-
}
|
|
43
|
-
if (this.options.heading !== false) {
|
|
44
|
-
extensions.push(extensionHeading.Heading.configure(this.options.heading));
|
|
45
|
-
}
|
|
46
|
-
if (this.options.history !== false) {
|
|
47
|
-
extensions.push(extensionHistory.History.configure(this.options.history));
|
|
48
|
-
}
|
|
49
|
-
if (this.options.horizontalRule !== false) {
|
|
50
|
-
extensions.push(extensionHorizontalRule.HorizontalRule.configure(this.options.horizontalRule));
|
|
51
|
-
}
|
|
52
|
-
if (this.options.italic !== false) {
|
|
53
|
-
extensions.push(extensionItalic.Italic.configure(this.options.italic));
|
|
54
|
-
}
|
|
55
|
-
if (this.options.listItem !== false) {
|
|
56
|
-
extensions.push(extensionListItem.ListItem.configure(this.options.listItem));
|
|
57
|
-
}
|
|
58
|
-
if (this.options.orderedList !== false) {
|
|
59
|
-
extensions.push(extensionOrderedList.OrderedList.configure(this.options.orderedList));
|
|
60
|
-
}
|
|
61
|
-
if (this.options.paragraph !== false) {
|
|
62
|
-
extensions.push(extensionParagraph.Paragraph.configure(this.options.paragraph));
|
|
63
|
-
}
|
|
64
|
-
if (this.options.strike !== false) {
|
|
65
|
-
extensions.push(extensionStrike.Strike.configure(this.options.strike));
|
|
66
|
-
}
|
|
67
|
-
if (this.options.text !== false) {
|
|
68
|
-
extensions.push(extensionText.Text.configure(this.options.text));
|
|
69
|
-
}
|
|
70
|
-
return extensions;
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
exports.StarterKit = StarterKit;
|
|
75
|
-
exports.default = StarterKit;
|
|
76
|
-
|
|
77
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
78
|
-
|
|
79
|
-
}));
|
|
80
|
-
//# sourceMappingURL=index.umd.js.map
|
package/dist/index.umd.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../src/starter-kit.ts"],"sourcesContent":["import { Extension } from '@tiptap/core'\nimport { Blockquote, BlockquoteOptions } from '@tiptap/extension-blockquote'\nimport { Bold, BoldOptions } from '@tiptap/extension-bold'\nimport { BulletList, BulletListOptions } from '@tiptap/extension-bullet-list'\nimport { Code, CodeOptions } from '@tiptap/extension-code'\nimport { CodeBlock, CodeBlockOptions } from '@tiptap/extension-code-block'\nimport { Document } from '@tiptap/extension-document'\nimport { Dropcursor, DropcursorOptions } from '@tiptap/extension-dropcursor'\nimport { Gapcursor } from '@tiptap/extension-gapcursor'\nimport { HardBreak, HardBreakOptions } from '@tiptap/extension-hard-break'\nimport { Heading, HeadingOptions } from '@tiptap/extension-heading'\nimport { History, HistoryOptions } from '@tiptap/extension-history'\nimport { HorizontalRule, HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'\nimport { Italic, ItalicOptions } from '@tiptap/extension-italic'\nimport { ListItem, ListItemOptions } from '@tiptap/extension-list-item'\nimport { OrderedList, OrderedListOptions } from '@tiptap/extension-ordered-list'\nimport { Paragraph, ParagraphOptions } from '@tiptap/extension-paragraph'\nimport { Strike, StrikeOptions } from '@tiptap/extension-strike'\nimport { Text } from '@tiptap/extension-text'\n\nexport interface StarterKitOptions {\n /**\n * If set to false, the blockquote extension will not be registered\n * @example blockquote: false\n */\n blockquote: Partial<BlockquoteOptions> | false,\n\n /**\n * If set to false, the bold extension will not be registered\n * @example bold: false\n */\n bold: Partial<BoldOptions> | false,\n\n /**\n * If set to false, the bulletList extension will not be registered\n * @example bulletList: false\n */\n bulletList: Partial<BulletListOptions> | false,\n\n /**\n * If set to false, the code extension will not be registered\n * @example code: false\n */\n code: Partial<CodeOptions> | false,\n\n /**\n * If set to false, the codeBlock extension will not be registered\n * @example codeBlock: false\n */\n codeBlock: Partial<CodeBlockOptions> | false,\n\n /**\n * If set to false, the document extension will not be registered\n * @example document: false\n */\n document: false,\n\n /**\n * If set to false, the dropcursor extension will not be registered\n * @example dropcursor: false\n */\n dropcursor: Partial<DropcursorOptions> | false,\n\n /**\n * If set to false, the gapcursor extension will not be registered\n * @example gapcursor: false\n */\n gapcursor: false,\n\n /**\n * If set to false, the hardBreak extension will not be registered\n * @example hardBreak: false\n */\n hardBreak: Partial<HardBreakOptions> | false,\n\n /**\n * If set to false, the heading extension will not be registered\n * @example heading: false\n */\n heading: Partial<HeadingOptions> | false,\n\n /**\n * If set to false, the history extension will not be registered\n * @example history: false\n */\n history: Partial<HistoryOptions> | false,\n\n /**\n * If set to false, the horizontalRule extension will not be registered\n * @example horizontalRule: false\n */\n horizontalRule: Partial<HorizontalRuleOptions> | false,\n\n /**\n * If set to false, the italic extension will not be registered\n * @example italic: false\n */\n italic: Partial<ItalicOptions> | false,\n\n /**\n * If set to false, the listItem extension will not be registered\n * @example listItem: false\n */\n listItem: Partial<ListItemOptions> | false,\n\n /**\n * If set to false, the orderedList extension will not be registered\n * @example orderedList: false\n */\n orderedList: Partial<OrderedListOptions> | false,\n\n /**\n * If set to false, the paragraph extension will not be registered\n * @example paragraph: false\n */\n paragraph: Partial<ParagraphOptions> | false,\n\n /**\n * If set to false, the strike extension will not be registered\n * @example strike: false\n */\n strike: Partial<StrikeOptions> | false,\n\n /**\n * If set to false, the text extension will not be registered\n * @example text: false\n */\n text: false,\n}\n\n/**\n * The starter kit is a collection of essential editor extensions.\n *\n * It’s a good starting point for building your own editor.\n */\nexport const StarterKit = Extension.create<StarterKitOptions>({\n name: 'starterKit',\n\n addExtensions() {\n const extensions = []\n\n if (this.options.bold !== false) {\n extensions.push(Bold.configure(this.options.bold))\n }\n\n if (this.options.blockquote !== false) {\n extensions.push(Blockquote.configure(this.options.blockquote))\n }\n\n if (this.options.bulletList !== false) {\n extensions.push(BulletList.configure(this.options.bulletList))\n }\n\n if (this.options.code !== false) {\n extensions.push(Code.configure(this.options.code))\n }\n\n if (this.options.codeBlock !== false) {\n extensions.push(CodeBlock.configure(this.options.codeBlock))\n }\n\n if (this.options.document !== false) {\n extensions.push(Document.configure(this.options.document))\n }\n\n if (this.options.dropcursor !== false) {\n extensions.push(Dropcursor.configure(this.options.dropcursor))\n }\n\n if (this.options.gapcursor !== false) {\n extensions.push(Gapcursor.configure(this.options.gapcursor))\n }\n\n if (this.options.hardBreak !== false) {\n extensions.push(HardBreak.configure(this.options.hardBreak))\n }\n\n if (this.options.heading !== false) {\n extensions.push(Heading.configure(this.options.heading))\n }\n\n if (this.options.history !== false) {\n extensions.push(History.configure(this.options.history))\n }\n\n if (this.options.horizontalRule !== false) {\n extensions.push(HorizontalRule.configure(this.options.horizontalRule))\n }\n\n if (this.options.italic !== false) {\n extensions.push(Italic.configure(this.options.italic))\n }\n\n if (this.options.listItem !== false) {\n extensions.push(ListItem.configure(this.options.listItem))\n }\n\n if (this.options.orderedList !== false) {\n extensions.push(OrderedList.configure(this.options.orderedList))\n }\n\n if (this.options.paragraph !== false) {\n extensions.push(Paragraph.configure(this.options.paragraph))\n }\n\n if (this.options.strike !== false) {\n extensions.push(Strike.configure(this.options.strike))\n }\n\n if (this.options.text !== false) {\n extensions.push(Text.configure(this.options.text))\n }\n\n return extensions\n },\n})\n"],"names":["Extension","Bold","Blockquote","BulletList","Code","CodeBlock","Document","Dropcursor","Gapcursor","HardBreak","Heading","History","HorizontalRule","Italic","ListItem","OrderedList","Paragraph","Strike","Text"],"mappings":";;;;;;EAkIA;;;;EAIG;AACU,QAAA,UAA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