@tiptap/starter-kit 2.0.0-beta.2 → 2.0.0-beta.200

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/README.md CHANGED
@@ -7,8 +7,8 @@
7
7
  ## Introduction
8
8
  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
9
 
10
- ## Offical Documentation
10
+ ## Official Documentation
11
11
  Documentation can be found on the [tiptap website](https://tiptap.dev).
12
12
 
13
13
  ## License
14
- tiptap is open-sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap-next/blob/main/LICENSE.md).
14
+ tiptap is open sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap/blob/main/LICENSE.md).
@@ -1,32 +1,4 @@
1
- import { DropcursorOptions } from '@tiptap/extension-dropcursor';
2
- import { ParagraphOptions } from '@tiptap/extension-paragraph';
3
- import { HistoryOptions } from '@tiptap/extension-history';
4
- import { BoldOptions } from '@tiptap/extension-bold';
5
- import { ItalicOptions } from '@tiptap/extension-italic';
6
- import { CodeOptions } from '@tiptap/extension-code';
7
- import { CodeBlockOptions } from '@tiptap/extension-code-block';
8
- import { HeadingOptions } from '@tiptap/extension-heading';
9
- import { HardBreakOptions } from '@tiptap/extension-hard-break';
10
- import { StrikeOptions } from '@tiptap/extension-strike';
11
- import { BlockquoteOptions } from '@tiptap/extension-blockquote';
12
- import { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule';
13
- import { BulletListOptions } from '@tiptap/extension-bullet-list';
14
- import { OrderedListOptions } from '@tiptap/extension-ordered-list';
15
- import { ListItemOptions } from '@tiptap/extension-list-item';
16
- export declare function defaultExtensions(options?: Partial<{
17
- dropursor: Partial<DropcursorOptions>;
18
- paragraph: Partial<ParagraphOptions>;
19
- history: Partial<HistoryOptions>;
20
- bold: Partial<BoldOptions>;
21
- italic: Partial<ItalicOptions>;
22
- code: Partial<CodeOptions>;
23
- codeBlock: Partial<CodeBlockOptions>;
24
- heading: Partial<HeadingOptions>;
25
- hardBreak: Partial<HardBreakOptions>;
26
- strike: Partial<StrikeOptions>;
27
- blockquote: Partial<BlockquoteOptions>;
28
- horizontalRule: Partial<HorizontalRuleOptions>;
29
- bulletList: Partial<BulletListOptions>;
30
- orderedList: Partial<OrderedListOptions>;
31
- listItem: Partial<ListItemOptions>;
32
- }>): (import("@tiptap/core").Node<unknown> | import("@tiptap/core").Node<ParagraphOptions> | import("@tiptap/core").Mark<BoldOptions> | import("@tiptap/core").Node<HeadingOptions> | import("@tiptap/core").Node<CodeBlockOptions> | import("@tiptap/core").Extension<HistoryOptions> | import("@tiptap/core").Extension<DropcursorOptions> | import("@tiptap/core").Extension<unknown>)[];
1
+ import { StarterKit } from './starter-kit';
2
+ export type { StarterKitOptions } from './starter-kit';
3
+ export * from './starter-kit';
4
+ export default StarterKit;
@@ -0,0 +1,37 @@
1
+ import { Extension } from '@tiptap/core';
2
+ import { BlockquoteOptions } from '@tiptap/extension-blockquote';
3
+ import { BoldOptions } from '@tiptap/extension-bold';
4
+ import { BulletListOptions } from '@tiptap/extension-bullet-list';
5
+ import { CodeOptions } from '@tiptap/extension-code';
6
+ import { CodeBlockOptions } from '@tiptap/extension-code-block';
7
+ import { DropcursorOptions } from '@tiptap/extension-dropcursor';
8
+ import { HardBreakOptions } from '@tiptap/extension-hard-break';
9
+ import { HeadingOptions } from '@tiptap/extension-heading';
10
+ import { HistoryOptions } from '@tiptap/extension-history';
11
+ import { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule';
12
+ import { ItalicOptions } from '@tiptap/extension-italic';
13
+ import { ListItemOptions } from '@tiptap/extension-list-item';
14
+ import { OrderedListOptions } from '@tiptap/extension-ordered-list';
15
+ import { ParagraphOptions } from '@tiptap/extension-paragraph';
16
+ import { StrikeOptions } from '@tiptap/extension-strike';
17
+ export interface StarterKitOptions {
18
+ blockquote: Partial<BlockquoteOptions> | false;
19
+ bold: Partial<BoldOptions> | false;
20
+ bulletList: Partial<BulletListOptions> | false;
21
+ code: Partial<CodeOptions> | false;
22
+ codeBlock: Partial<CodeBlockOptions> | false;
23
+ document: false;
24
+ dropcursor: Partial<DropcursorOptions> | false;
25
+ gapcursor: false;
26
+ hardBreak: Partial<HardBreakOptions> | false;
27
+ heading: Partial<HeadingOptions> | false;
28
+ history: Partial<HistoryOptions> | false;
29
+ horizontalRule: Partial<HorizontalRuleOptions> | false;
30
+ italic: Partial<ItalicOptions> | false;
31
+ listItem: Partial<ListItemOptions> | false;
32
+ orderedList: Partial<OrderedListOptions> | false;
33
+ paragraph: Partial<ParagraphOptions> | false;
34
+ strike: Partial<StrikeOptions> | false;
35
+ text: false;
36
+ }
37
+ export declare const StarterKit: Extension<StarterKitOptions, any>;
@@ -2,68 +2,89 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var Dropcursor = require('@tiptap/extension-dropcursor');
6
- var Gapcursor = require('@tiptap/extension-gapcursor');
7
- var Document = require('@tiptap/extension-document');
8
- var Paragraph = require('@tiptap/extension-paragraph');
9
- var Text = require('@tiptap/extension-text');
10
- var History = require('@tiptap/extension-history');
11
- var Bold = require('@tiptap/extension-bold');
12
- var Italic = require('@tiptap/extension-italic');
13
- var Code = require('@tiptap/extension-code');
14
- var CodeBlock = require('@tiptap/extension-code-block');
15
- var Heading = require('@tiptap/extension-heading');
16
- var HardBreak = require('@tiptap/extension-hard-break');
17
- var Strike = require('@tiptap/extension-strike');
18
- var Blockquote = require('@tiptap/extension-blockquote');
19
- var HorizontalRule = require('@tiptap/extension-horizontal-rule');
20
- var BulletList = require('@tiptap/extension-bullet-list');
21
- var OrderedList = require('@tiptap/extension-ordered-list');
22
- var ListItem = require('@tiptap/extension-list-item');
5
+ var core = require('@tiptap/core');
6
+ var extensionBlockquote = require('@tiptap/extension-blockquote');
7
+ var extensionBold = require('@tiptap/extension-bold');
8
+ var extensionBulletList = require('@tiptap/extension-bullet-list');
9
+ var extensionCode = require('@tiptap/extension-code');
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');
23
24
 
24
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
25
+ const StarterKit = core.Extension.create({
26
+ name: 'starterKit',
27
+ addExtensions() {
28
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
29
+ const extensions = [];
30
+ if (this.options.blockquote !== false) {
31
+ extensions.push(extensionBlockquote.Blockquote.configure((_a = this.options) === null || _a === void 0 ? void 0 : _a.blockquote));
32
+ }
33
+ if (this.options.bold !== false) {
34
+ extensions.push(extensionBold.Bold.configure((_b = this.options) === null || _b === void 0 ? void 0 : _b.bold));
35
+ }
36
+ if (this.options.bulletList !== false) {
37
+ extensions.push(extensionBulletList.BulletList.configure((_c = this.options) === null || _c === void 0 ? void 0 : _c.bulletList));
38
+ }
39
+ if (this.options.code !== false) {
40
+ extensions.push(extensionCode.Code.configure((_d = this.options) === null || _d === void 0 ? void 0 : _d.code));
41
+ }
42
+ if (this.options.codeBlock !== false) {
43
+ extensions.push(extensionCodeBlock.CodeBlock.configure((_e = this.options) === null || _e === void 0 ? void 0 : _e.codeBlock));
44
+ }
45
+ if (this.options.document !== false) {
46
+ extensions.push(extensionDocument.Document.configure((_f = this.options) === null || _f === void 0 ? void 0 : _f.document));
47
+ }
48
+ if (this.options.dropcursor !== false) {
49
+ extensions.push(extensionDropcursor.Dropcursor.configure((_g = this.options) === null || _g === void 0 ? void 0 : _g.dropcursor));
50
+ }
51
+ if (this.options.gapcursor !== false) {
52
+ extensions.push(extensionGapcursor.Gapcursor.configure((_h = this.options) === null || _h === void 0 ? void 0 : _h.gapcursor));
53
+ }
54
+ if (this.options.hardBreak !== false) {
55
+ extensions.push(extensionHardBreak.HardBreak.configure((_j = this.options) === null || _j === void 0 ? void 0 : _j.hardBreak));
56
+ }
57
+ if (this.options.heading !== false) {
58
+ extensions.push(extensionHeading.Heading.configure((_k = this.options) === null || _k === void 0 ? void 0 : _k.heading));
59
+ }
60
+ if (this.options.history !== false) {
61
+ extensions.push(extensionHistory.History.configure((_l = this.options) === null || _l === void 0 ? void 0 : _l.history));
62
+ }
63
+ if (this.options.horizontalRule !== false) {
64
+ extensions.push(extensionHorizontalRule.HorizontalRule.configure((_m = this.options) === null || _m === void 0 ? void 0 : _m.horizontalRule));
65
+ }
66
+ if (this.options.italic !== false) {
67
+ extensions.push(extensionItalic.Italic.configure((_o = this.options) === null || _o === void 0 ? void 0 : _o.italic));
68
+ }
69
+ if (this.options.listItem !== false) {
70
+ extensions.push(extensionListItem.ListItem.configure((_p = this.options) === null || _p === void 0 ? void 0 : _p.listItem));
71
+ }
72
+ if (this.options.orderedList !== false) {
73
+ extensions.push(extensionOrderedList.OrderedList.configure((_q = this.options) === null || _q === void 0 ? void 0 : _q.orderedList));
74
+ }
75
+ if (this.options.paragraph !== false) {
76
+ extensions.push(extensionParagraph.Paragraph.configure((_r = this.options) === null || _r === void 0 ? void 0 : _r.paragraph));
77
+ }
78
+ if (this.options.strike !== false) {
79
+ extensions.push(extensionStrike.Strike.configure((_s = this.options) === null || _s === void 0 ? void 0 : _s.strike));
80
+ }
81
+ if (this.options.text !== false) {
82
+ extensions.push(extensionText.Text.configure((_t = this.options) === null || _t === void 0 ? void 0 : _t.text));
83
+ }
84
+ return extensions;
85
+ },
86
+ });
25
87
 
26
- var Dropcursor__default = /*#__PURE__*/_interopDefaultLegacy(Dropcursor);
27
- var Gapcursor__default = /*#__PURE__*/_interopDefaultLegacy(Gapcursor);
28
- var Document__default = /*#__PURE__*/_interopDefaultLegacy(Document);
29
- var Paragraph__default = /*#__PURE__*/_interopDefaultLegacy(Paragraph);
30
- var Text__default = /*#__PURE__*/_interopDefaultLegacy(Text);
31
- var History__default = /*#__PURE__*/_interopDefaultLegacy(History);
32
- var Bold__default = /*#__PURE__*/_interopDefaultLegacy(Bold);
33
- var Italic__default = /*#__PURE__*/_interopDefaultLegacy(Italic);
34
- var Code__default = /*#__PURE__*/_interopDefaultLegacy(Code);
35
- var CodeBlock__default = /*#__PURE__*/_interopDefaultLegacy(CodeBlock);
36
- var Heading__default = /*#__PURE__*/_interopDefaultLegacy(Heading);
37
- var HardBreak__default = /*#__PURE__*/_interopDefaultLegacy(HardBreak);
38
- var Strike__default = /*#__PURE__*/_interopDefaultLegacy(Strike);
39
- var Blockquote__default = /*#__PURE__*/_interopDefaultLegacy(Blockquote);
40
- var HorizontalRule__default = /*#__PURE__*/_interopDefaultLegacy(HorizontalRule);
41
- var BulletList__default = /*#__PURE__*/_interopDefaultLegacy(BulletList);
42
- var OrderedList__default = /*#__PURE__*/_interopDefaultLegacy(OrderedList);
43
- var ListItem__default = /*#__PURE__*/_interopDefaultLegacy(ListItem);
44
-
45
- function defaultExtensions(options) {
46
- return [
47
- Document__default['default'],
48
- Paragraph__default['default'].configure(options === null || options === void 0 ? void 0 : options.paragraph),
49
- Text__default['default'],
50
- Bold__default['default'].configure(options === null || options === void 0 ? void 0 : options.bold),
51
- Italic__default['default'].configure(options === null || options === void 0 ? void 0 : options.italic),
52
- Code__default['default'].configure(options === null || options === void 0 ? void 0 : options.code),
53
- Strike__default['default'].configure(options === null || options === void 0 ? void 0 : options.strike),
54
- HardBreak__default['default'].configure(options === null || options === void 0 ? void 0 : options.hardBreak),
55
- Heading__default['default'].configure(options === null || options === void 0 ? void 0 : options.heading),
56
- Blockquote__default['default'].configure(options === null || options === void 0 ? void 0 : options.blockquote),
57
- BulletList__default['default'].configure(options === null || options === void 0 ? void 0 : options.bulletList),
58
- OrderedList__default['default'].configure(options === null || options === void 0 ? void 0 : options.orderedList),
59
- ListItem__default['default'].configure(options === null || options === void 0 ? void 0 : options.listItem),
60
- HorizontalRule__default['default'].configure(options === null || options === void 0 ? void 0 : options.horizontalRule),
61
- CodeBlock__default['default'].configure(options === null || options === void 0 ? void 0 : options.codeBlock),
62
- History__default['default'].configure(options === null || options === void 0 ? void 0 : options.history),
63
- Dropcursor__default['default'].configure(options === null || options === void 0 ? void 0 : options.dropursor),
64
- Gapcursor__default['default'],
65
- ];
66
- }
67
-
68
- exports.defaultExtensions = defaultExtensions;
88
+ exports.StarterKit = StarterKit;
89
+ exports["default"] = StarterKit;
69
90
  //# sourceMappingURL=tiptap-starter-kit.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tiptap-starter-kit.cjs.js","sources":["../src/index.ts"],"sourcesContent":["import Dropcursor, { DropcursorOptions } from '@tiptap/extension-dropcursor'\nimport Gapcursor from '@tiptap/extension-gapcursor'\nimport Document from '@tiptap/extension-document'\nimport Paragraph, { ParagraphOptions } from '@tiptap/extension-paragraph'\nimport Text from '@tiptap/extension-text'\nimport History, { HistoryOptions } from '@tiptap/extension-history'\nimport Bold, { BoldOptions } from '@tiptap/extension-bold'\nimport Italic, { ItalicOptions } from '@tiptap/extension-italic'\nimport Code, { CodeOptions } from '@tiptap/extension-code'\nimport CodeBlock, { CodeBlockOptions } from '@tiptap/extension-code-block'\nimport Heading, { HeadingOptions } from '@tiptap/extension-heading'\nimport HardBreak, { HardBreakOptions } from '@tiptap/extension-hard-break'\nimport Strike, { StrikeOptions } from '@tiptap/extension-strike'\nimport Blockquote, { BlockquoteOptions } from '@tiptap/extension-blockquote'\nimport HorizontalRule, { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'\nimport BulletList, { BulletListOptions } from '@tiptap/extension-bullet-list'\nimport OrderedList, { OrderedListOptions } from '@tiptap/extension-ordered-list'\nimport ListItem, { ListItemOptions } from '@tiptap/extension-list-item'\n\nexport function defaultExtensions(options?: Partial<{\n dropursor: Partial<DropcursorOptions>,\n paragraph: Partial<ParagraphOptions>,\n history: Partial<HistoryOptions>,\n bold: Partial<BoldOptions>,\n italic: Partial<ItalicOptions>,\n code: Partial<CodeOptions>,\n codeBlock: Partial<CodeBlockOptions>,\n heading: Partial<HeadingOptions>,\n hardBreak: Partial<HardBreakOptions>,\n strike: Partial<StrikeOptions>,\n blockquote: Partial<BlockquoteOptions>,\n horizontalRule: Partial<HorizontalRuleOptions>,\n bulletList: Partial<BulletListOptions>,\n orderedList: Partial<OrderedListOptions>,\n listItem: Partial<ListItemOptions>,\n}>) {\n return [\n Document,\n Paragraph.configure(options?.paragraph),\n Text,\n Bold.configure(options?.bold),\n Italic.configure(options?.italic),\n Code.configure(options?.code),\n Strike.configure(options?.strike),\n HardBreak.configure(options?.hardBreak),\n Heading.configure(options?.heading),\n Blockquote.configure(options?.blockquote),\n BulletList.configure(options?.bulletList),\n OrderedList.configure(options?.orderedList),\n ListItem.configure(options?.listItem),\n HorizontalRule.configure(options?.horizontalRule),\n CodeBlock.configure(options?.codeBlock),\n History.configure(options?.history),\n Dropcursor.configure(options?.dropursor),\n Gapcursor,\n ]\n}\n"],"names":["Document","Paragraph","Text","Bold","Italic","Code","Strike","HardBreak","Heading","Blockquote","BulletList","OrderedList","ListItem","HorizontalRule","CodeBlock","History","Dropcursor","Gapcursor"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAmBgB,iBAAiB,CAAC,OAgBhC;IACA,OAAO;QACLA,4BAAQ;QACRC,6BAAS,CAAC,SAAS,CAAC,OAA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AA;AACH;;;;"}
1
+ {"version":3,"file":"tiptap-starter-kit.cjs.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 blockquote: Partial<BlockquoteOptions> | false,\n bold: Partial<BoldOptions> | false,\n bulletList: Partial<BulletListOptions> | false,\n code: Partial<CodeOptions> | false,\n codeBlock: Partial<CodeBlockOptions> | false,\n document: false,\n dropcursor: Partial<DropcursorOptions> | false,\n gapcursor: false,\n hardBreak: Partial<HardBreakOptions> | false,\n heading: Partial<HeadingOptions> | false,\n history: Partial<HistoryOptions> | false,\n horizontalRule: Partial<HorizontalRuleOptions> | false,\n italic: Partial<ItalicOptions> | false,\n listItem: Partial<ListItemOptions> | false,\n orderedList: Partial<OrderedListOptions> | false,\n paragraph: Partial<ParagraphOptions> | false,\n strike: Partial<StrikeOptions> | false,\n text: false,\n}\n\nexport const StarterKit = Extension.create<StarterKitOptions>({\n name: 'starterKit',\n\n addExtensions() {\n const extensions = []\n\n if (this.options.blockquote !== false) {\n extensions.push(Blockquote.configure(this.options?.blockquote))\n }\n\n if (this.options.bold !== false) {\n extensions.push(Bold.configure(this.options?.bold))\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","Blockquote","Bold","BulletList","Code","CodeBlock","Document","Dropcursor","Gapcursor","HardBreak","Heading","History","HorizontalRule","Italic","ListItem","OrderedList","Paragraph","Strike","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,OAAO,CAAC,IAAI,KAAK,KAAK,EAAE;AAC/B,YAAA,UAAU,CAAC,IAAI,CAACC,kBAAI,CAAC,SAAS,CAAC,CAAA,EAAA,GAAA,IAAI,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,IAAI,CAAC,CAAC,CAAA;AACpD,SAAA;AAED,QAAA,OAAO,UAAU,CAAA;KAClB;AACF,CAAA;;;;;"}
@@ -1,44 +1,85 @@
1
- import Dropcursor from '@tiptap/extension-dropcursor';
2
- import Gapcursor from '@tiptap/extension-gapcursor';
3
- import Document from '@tiptap/extension-document';
4
- import Paragraph from '@tiptap/extension-paragraph';
5
- import Text from '@tiptap/extension-text';
6
- import History from '@tiptap/extension-history';
7
- import Bold from '@tiptap/extension-bold';
8
- import Italic from '@tiptap/extension-italic';
9
- import Code from '@tiptap/extension-code';
10
- import CodeBlock from '@tiptap/extension-code-block';
11
- import Heading from '@tiptap/extension-heading';
12
- import HardBreak from '@tiptap/extension-hard-break';
13
- import Strike from '@tiptap/extension-strike';
14
- import Blockquote from '@tiptap/extension-blockquote';
15
- import HorizontalRule from '@tiptap/extension-horizontal-rule';
16
- import BulletList from '@tiptap/extension-bullet-list';
17
- import OrderedList from '@tiptap/extension-ordered-list';
18
- import ListItem from '@tiptap/extension-list-item';
1
+ import { Extension } from '@tiptap/core';
2
+ import { Blockquote } from '@tiptap/extension-blockquote';
3
+ import { Bold } from '@tiptap/extension-bold';
4
+ import { BulletList } from '@tiptap/extension-bullet-list';
5
+ import { Code } from '@tiptap/extension-code';
6
+ import { CodeBlock } from '@tiptap/extension-code-block';
7
+ import { Document } from '@tiptap/extension-document';
8
+ import { Dropcursor } from '@tiptap/extension-dropcursor';
9
+ import { Gapcursor } from '@tiptap/extension-gapcursor';
10
+ import { HardBreak } from '@tiptap/extension-hard-break';
11
+ import { Heading } from '@tiptap/extension-heading';
12
+ import { History } from '@tiptap/extension-history';
13
+ import { HorizontalRule } from '@tiptap/extension-horizontal-rule';
14
+ import { Italic } from '@tiptap/extension-italic';
15
+ import { ListItem } from '@tiptap/extension-list-item';
16
+ import { OrderedList } from '@tiptap/extension-ordered-list';
17
+ import { Paragraph } from '@tiptap/extension-paragraph';
18
+ import { Strike } from '@tiptap/extension-strike';
19
+ import { Text } from '@tiptap/extension-text';
19
20
 
20
- function defaultExtensions(options) {
21
- return [
22
- Document,
23
- Paragraph.configure(options === null || options === void 0 ? void 0 : options.paragraph),
24
- Text,
25
- Bold.configure(options === null || options === void 0 ? void 0 : options.bold),
26
- Italic.configure(options === null || options === void 0 ? void 0 : options.italic),
27
- Code.configure(options === null || options === void 0 ? void 0 : options.code),
28
- Strike.configure(options === null || options === void 0 ? void 0 : options.strike),
29
- HardBreak.configure(options === null || options === void 0 ? void 0 : options.hardBreak),
30
- Heading.configure(options === null || options === void 0 ? void 0 : options.heading),
31
- Blockquote.configure(options === null || options === void 0 ? void 0 : options.blockquote),
32
- BulletList.configure(options === null || options === void 0 ? void 0 : options.bulletList),
33
- OrderedList.configure(options === null || options === void 0 ? void 0 : options.orderedList),
34
- ListItem.configure(options === null || options === void 0 ? void 0 : options.listItem),
35
- HorizontalRule.configure(options === null || options === void 0 ? void 0 : options.horizontalRule),
36
- CodeBlock.configure(options === null || options === void 0 ? void 0 : options.codeBlock),
37
- History.configure(options === null || options === void 0 ? void 0 : options.history),
38
- Dropcursor.configure(options === null || options === void 0 ? void 0 : options.dropursor),
39
- Gapcursor,
40
- ];
41
- }
21
+ const StarterKit = Extension.create({
22
+ name: 'starterKit',
23
+ addExtensions() {
24
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
25
+ const extensions = [];
26
+ if (this.options.blockquote !== false) {
27
+ extensions.push(Blockquote.configure((_a = this.options) === null || _a === void 0 ? void 0 : _a.blockquote));
28
+ }
29
+ if (this.options.bold !== false) {
30
+ extensions.push(Bold.configure((_b = this.options) === null || _b === void 0 ? void 0 : _b.bold));
31
+ }
32
+ if (this.options.bulletList !== false) {
33
+ extensions.push(BulletList.configure((_c = this.options) === null || _c === void 0 ? void 0 : _c.bulletList));
34
+ }
35
+ if (this.options.code !== false) {
36
+ extensions.push(Code.configure((_d = this.options) === null || _d === void 0 ? void 0 : _d.code));
37
+ }
38
+ if (this.options.codeBlock !== false) {
39
+ extensions.push(CodeBlock.configure((_e = this.options) === null || _e === void 0 ? void 0 : _e.codeBlock));
40
+ }
41
+ if (this.options.document !== false) {
42
+ extensions.push(Document.configure((_f = this.options) === null || _f === void 0 ? void 0 : _f.document));
43
+ }
44
+ if (this.options.dropcursor !== false) {
45
+ extensions.push(Dropcursor.configure((_g = this.options) === null || _g === void 0 ? void 0 : _g.dropcursor));
46
+ }
47
+ if (this.options.gapcursor !== false) {
48
+ extensions.push(Gapcursor.configure((_h = this.options) === null || _h === void 0 ? void 0 : _h.gapcursor));
49
+ }
50
+ if (this.options.hardBreak !== false) {
51
+ extensions.push(HardBreak.configure((_j = this.options) === null || _j === void 0 ? void 0 : _j.hardBreak));
52
+ }
53
+ if (this.options.heading !== false) {
54
+ extensions.push(Heading.configure((_k = this.options) === null || _k === void 0 ? void 0 : _k.heading));
55
+ }
56
+ if (this.options.history !== false) {
57
+ extensions.push(History.configure((_l = this.options) === null || _l === void 0 ? void 0 : _l.history));
58
+ }
59
+ if (this.options.horizontalRule !== false) {
60
+ extensions.push(HorizontalRule.configure((_m = this.options) === null || _m === void 0 ? void 0 : _m.horizontalRule));
61
+ }
62
+ if (this.options.italic !== false) {
63
+ extensions.push(Italic.configure((_o = this.options) === null || _o === void 0 ? void 0 : _o.italic));
64
+ }
65
+ if (this.options.listItem !== false) {
66
+ extensions.push(ListItem.configure((_p = this.options) === null || _p === void 0 ? void 0 : _p.listItem));
67
+ }
68
+ if (this.options.orderedList !== false) {
69
+ extensions.push(OrderedList.configure((_q = this.options) === null || _q === void 0 ? void 0 : _q.orderedList));
70
+ }
71
+ if (this.options.paragraph !== false) {
72
+ extensions.push(Paragraph.configure((_r = this.options) === null || _r === void 0 ? void 0 : _r.paragraph));
73
+ }
74
+ if (this.options.strike !== false) {
75
+ extensions.push(Strike.configure((_s = this.options) === null || _s === void 0 ? void 0 : _s.strike));
76
+ }
77
+ if (this.options.text !== false) {
78
+ extensions.push(Text.configure((_t = this.options) === null || _t === void 0 ? void 0 : _t.text));
79
+ }
80
+ return extensions;
81
+ },
82
+ });
42
83
 
43
- export { defaultExtensions };
84
+ export { StarterKit, StarterKit as default };
44
85
  //# sourceMappingURL=tiptap-starter-kit.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tiptap-starter-kit.esm.js","sources":["../src/index.ts"],"sourcesContent":["import Dropcursor, { DropcursorOptions } from '@tiptap/extension-dropcursor'\nimport Gapcursor from '@tiptap/extension-gapcursor'\nimport Document from '@tiptap/extension-document'\nimport Paragraph, { ParagraphOptions } from '@tiptap/extension-paragraph'\nimport Text from '@tiptap/extension-text'\nimport History, { HistoryOptions } from '@tiptap/extension-history'\nimport Bold, { BoldOptions } from '@tiptap/extension-bold'\nimport Italic, { ItalicOptions } from '@tiptap/extension-italic'\nimport Code, { CodeOptions } from '@tiptap/extension-code'\nimport CodeBlock, { CodeBlockOptions } from '@tiptap/extension-code-block'\nimport Heading, { HeadingOptions } from '@tiptap/extension-heading'\nimport HardBreak, { HardBreakOptions } from '@tiptap/extension-hard-break'\nimport Strike, { StrikeOptions } from '@tiptap/extension-strike'\nimport Blockquote, { BlockquoteOptions } from '@tiptap/extension-blockquote'\nimport HorizontalRule, { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'\nimport BulletList, { BulletListOptions } from '@tiptap/extension-bullet-list'\nimport OrderedList, { OrderedListOptions } from '@tiptap/extension-ordered-list'\nimport ListItem, { ListItemOptions } from '@tiptap/extension-list-item'\n\nexport function defaultExtensions(options?: Partial<{\n dropursor: Partial<DropcursorOptions>,\n paragraph: Partial<ParagraphOptions>,\n history: Partial<HistoryOptions>,\n bold: Partial<BoldOptions>,\n italic: Partial<ItalicOptions>,\n code: Partial<CodeOptions>,\n codeBlock: Partial<CodeBlockOptions>,\n heading: Partial<HeadingOptions>,\n hardBreak: Partial<HardBreakOptions>,\n strike: Partial<StrikeOptions>,\n blockquote: Partial<BlockquoteOptions>,\n horizontalRule: Partial<HorizontalRuleOptions>,\n bulletList: Partial<BulletListOptions>,\n orderedList: Partial<OrderedListOptions>,\n listItem: Partial<ListItemOptions>,\n}>) {\n return [\n Document,\n Paragraph.configure(options?.paragraph),\n Text,\n Bold.configure(options?.bold),\n Italic.configure(options?.italic),\n Code.configure(options?.code),\n Strike.configure(options?.strike),\n HardBreak.configure(options?.hardBreak),\n Heading.configure(options?.heading),\n Blockquote.configure(options?.blockquote),\n BulletList.configure(options?.bulletList),\n OrderedList.configure(options?.orderedList),\n ListItem.configure(options?.listItem),\n HorizontalRule.configure(options?.horizontalRule),\n CodeBlock.configure(options?.codeBlock),\n History.configure(options?.history),\n Dropcursor.configure(options?.dropursor),\n Gapcursor,\n ]\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;SAmBgB,iBAAiB,CAAC,OAgBhC;IACA,OAAO;QACL,QAAQ;QACR,SAAS,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC;QACvC,IAAI;QACJ,IAAI,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CAAC;QAC7B,MAAM,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,CAAC;QACjC,IAAI,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CAAC;QAC7B,MAAM,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,CAAC;QACjC,SAAS,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC;QACvC,OAAO,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC;QACnC,UAAU,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,CAAC;QACzC,UAAU,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,CAAC;QACzC,WAAW,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,CAAC;QAC3C,QAAQ,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,CAAC;QACrC,cAAc,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CAAC;QACjD,SAAS,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC;QACvC,OAAO,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC;QACnC,UAAU,CAAC,SAAS,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC;QACxC,SAAS;KACV,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"tiptap-starter-kit.esm.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 blockquote: Partial<BlockquoteOptions> | false,\n bold: Partial<BoldOptions> | false,\n bulletList: Partial<BulletListOptions> | false,\n code: Partial<CodeOptions> | false,\n codeBlock: Partial<CodeBlockOptions> | false,\n document: false,\n dropcursor: Partial<DropcursorOptions> | false,\n gapcursor: false,\n hardBreak: Partial<HardBreakOptions> | false,\n heading: Partial<HeadingOptions> | false,\n history: Partial<HistoryOptions> | false,\n horizontalRule: Partial<HorizontalRuleOptions> | false,\n italic: Partial<ItalicOptions> | false,\n listItem: Partial<ListItemOptions> | false,\n orderedList: Partial<OrderedListOptions> | false,\n paragraph: Partial<ParagraphOptions> | false,\n strike: Partial<StrikeOptions> | false,\n text: false,\n}\n\nexport const StarterKit = Extension.create<StarterKitOptions>({\n name: 'starterKit',\n\n addExtensions() {\n const extensions = []\n\n if (this.options.blockquote !== false) {\n extensions.push(Blockquote.configure(this.options?.blockquote))\n }\n\n if (this.options.bold !== false) {\n extensions.push(Bold.configure(this.options?.bold))\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":";;;;;;;;;;;;;;;;;;;;AAyCa,MAAA,UAAU,GAAG,SAAS,CAAC,MAAM,CAAoB;AAC5D,IAAA,IAAI,EAAE,YAAY;IAElB,aAAa,GAAA;;QACX,MAAM,UAAU,GAAG,EAAE,CAAA;AAErB,QAAA,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,KAAK,KAAK,EAAE;AACrC,YAAA,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAA,EAAA,GAAA,IAAI,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,UAAU,CAAC,CAAC,CAAA;AAChE,SAAA;AAED,QAAA,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,KAAK,EAAE;AAC/B,YAAA,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA,EAAA,GAAA,IAAI,CAAC,OAAO,M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AA;AAClE,SAAA;AAED,QAAA,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,KAAK,KAAK,EAAE;AACpC,YAAA,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA,EAAA,GAAA,IAAI,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,SAAS,CAAC,CAAC,CAAA;AAC9D,SAAA;AAED,QAAA,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,KAAK,EAAE;AACjC,YAAA,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA,EAAA,GAAA,IAAI,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,MAAM,CAAC,CAAC,CAAA;AACxD,SAAA;AAED,QAAA,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,KAAK,KAAK,EAAE;AAC/B,YAAA,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA,EAAA,GAAA,IAAI,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAE,IAAI,CAAC,CAAC,CAAA;AACpD,SAAA;AAED,QAAA,OAAO,UAAU,CAAA;KAClB;AACF,CAAA;;;;"}
@@ -1,56 +1,76 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tiptap/extension-dropcursor'), require('@tiptap/extension-gapcursor'), require('@tiptap/extension-document'), require('@tiptap/extension-paragraph'), require('@tiptap/extension-text'), require('@tiptap/extension-history'), require('@tiptap/extension-bold'), require('@tiptap/extension-italic'), require('@tiptap/extension-code'), require('@tiptap/extension-code-block'), require('@tiptap/extension-heading'), require('@tiptap/extension-hard-break'), require('@tiptap/extension-strike'), require('@tiptap/extension-blockquote'), require('@tiptap/extension-horizontal-rule'), require('@tiptap/extension-bullet-list'), require('@tiptap/extension-ordered-list'), require('@tiptap/extension-list-item')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@tiptap/extension-dropcursor', '@tiptap/extension-gapcursor', '@tiptap/extension-document', '@tiptap/extension-paragraph', '@tiptap/extension-text', '@tiptap/extension-history', '@tiptap/extension-bold', '@tiptap/extension-italic', '@tiptap/extension-code', '@tiptap/extension-code-block', '@tiptap/extension-heading', '@tiptap/extension-hard-break', '@tiptap/extension-strike', '@tiptap/extension-blockquote', '@tiptap/extension-horizontal-rule', '@tiptap/extension-bullet-list', '@tiptap/extension-ordered-list', '@tiptap/extension-list-item'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['@tiptap/starter-kit'] = {}, global.Dropcursor, global.Gapcursor, global.Document, global.Paragraph, global.Text, global.History, global.Bold, global.Italic, global.Code, global.CodeBlock, global.Heading, global.HardBreak, global.Strike, global.Blockquote, global.HorizontalRule, global.BulletList, global.OrderedList, global.ListItem));
5
- }(this, (function (exports, Dropcursor, Gapcursor, Document, Paragraph, Text, History, Bold, Italic, Code, CodeBlock, Heading, HardBreak, Strike, Blockquote, HorizontalRule, BulletList, OrderedList, ListItem) { 'use strict';
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
6
 
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
+ const StarterKit = core.Extension.create({
8
+ name: 'starterKit',
9
+ addExtensions() {
10
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
11
+ const extensions = [];
12
+ if (this.options.blockquote !== false) {
13
+ extensions.push(extensionBlockquote.Blockquote.configure((_a = this.options) === null || _a === void 0 ? void 0 : _a.blockquote));
14
+ }
15
+ if (this.options.bold !== false) {
16
+ extensions.push(extensionBold.Bold.configure((_b = this.options) === null || _b === void 0 ? void 0 : _b.bold));
17
+ }
18
+ if (this.options.bulletList !== false) {
19
+ extensions.push(extensionBulletList.BulletList.configure((_c = this.options) === null || _c === void 0 ? void 0 : _c.bulletList));
20
+ }
21
+ if (this.options.code !== false) {
22
+ extensions.push(extensionCode.Code.configure((_d = this.options) === null || _d === void 0 ? void 0 : _d.code));
23
+ }
24
+ if (this.options.codeBlock !== false) {
25
+ extensions.push(extensionCodeBlock.CodeBlock.configure((_e = this.options) === null || _e === void 0 ? void 0 : _e.codeBlock));
26
+ }
27
+ if (this.options.document !== false) {
28
+ extensions.push(extensionDocument.Document.configure((_f = this.options) === null || _f === void 0 ? void 0 : _f.document));
29
+ }
30
+ if (this.options.dropcursor !== false) {
31
+ extensions.push(extensionDropcursor.Dropcursor.configure((_g = this.options) === null || _g === void 0 ? void 0 : _g.dropcursor));
32
+ }
33
+ if (this.options.gapcursor !== false) {
34
+ extensions.push(extensionGapcursor.Gapcursor.configure((_h = this.options) === null || _h === void 0 ? void 0 : _h.gapcursor));
35
+ }
36
+ if (this.options.hardBreak !== false) {
37
+ extensions.push(extensionHardBreak.HardBreak.configure((_j = this.options) === null || _j === void 0 ? void 0 : _j.hardBreak));
38
+ }
39
+ if (this.options.heading !== false) {
40
+ extensions.push(extensionHeading.Heading.configure((_k = this.options) === null || _k === void 0 ? void 0 : _k.heading));
41
+ }
42
+ if (this.options.history !== false) {
43
+ extensions.push(extensionHistory.History.configure((_l = this.options) === null || _l === void 0 ? void 0 : _l.history));
44
+ }
45
+ if (this.options.horizontalRule !== false) {
46
+ extensions.push(extensionHorizontalRule.HorizontalRule.configure((_m = this.options) === null || _m === void 0 ? void 0 : _m.horizontalRule));
47
+ }
48
+ if (this.options.italic !== false) {
49
+ extensions.push(extensionItalic.Italic.configure((_o = this.options) === null || _o === void 0 ? void 0 : _o.italic));
50
+ }
51
+ if (this.options.listItem !== false) {
52
+ extensions.push(extensionListItem.ListItem.configure((_p = this.options) === null || _p === void 0 ? void 0 : _p.listItem));
53
+ }
54
+ if (this.options.orderedList !== false) {
55
+ extensions.push(extensionOrderedList.OrderedList.configure((_q = this.options) === null || _q === void 0 ? void 0 : _q.orderedList));
56
+ }
57
+ if (this.options.paragraph !== false) {
58
+ extensions.push(extensionParagraph.Paragraph.configure((_r = this.options) === null || _r === void 0 ? void 0 : _r.paragraph));
59
+ }
60
+ if (this.options.strike !== false) {
61
+ extensions.push(extensionStrike.Strike.configure((_s = this.options) === null || _s === void 0 ? void 0 : _s.strike));
62
+ }
63
+ if (this.options.text !== false) {
64
+ extensions.push(extensionText.Text.configure((_t = this.options) === null || _t === void 0 ? void 0 : _t.text));
65
+ }
66
+ return extensions;
67
+ },
68
+ });
8
69
 
9
- var Dropcursor__default = /*#__PURE__*/_interopDefaultLegacy(Dropcursor);
10
- var Gapcursor__default = /*#__PURE__*/_interopDefaultLegacy(Gapcursor);
11
- var Document__default = /*#__PURE__*/_interopDefaultLegacy(Document);
12
- var Paragraph__default = /*#__PURE__*/_interopDefaultLegacy(Paragraph);
13
- var Text__default = /*#__PURE__*/_interopDefaultLegacy(Text);
14
- var History__default = /*#__PURE__*/_interopDefaultLegacy(History);
15
- var Bold__default = /*#__PURE__*/_interopDefaultLegacy(Bold);
16
- var Italic__default = /*#__PURE__*/_interopDefaultLegacy(Italic);
17
- var Code__default = /*#__PURE__*/_interopDefaultLegacy(Code);
18
- var CodeBlock__default = /*#__PURE__*/_interopDefaultLegacy(CodeBlock);
19
- var Heading__default = /*#__PURE__*/_interopDefaultLegacy(Heading);
20
- var HardBreak__default = /*#__PURE__*/_interopDefaultLegacy(HardBreak);
21
- var Strike__default = /*#__PURE__*/_interopDefaultLegacy(Strike);
22
- var Blockquote__default = /*#__PURE__*/_interopDefaultLegacy(Blockquote);
23
- var HorizontalRule__default = /*#__PURE__*/_interopDefaultLegacy(HorizontalRule);
24
- var BulletList__default = /*#__PURE__*/_interopDefaultLegacy(BulletList);
25
- var OrderedList__default = /*#__PURE__*/_interopDefaultLegacy(OrderedList);
26
- var ListItem__default = /*#__PURE__*/_interopDefaultLegacy(ListItem);
27
-
28
- function defaultExtensions(options) {
29
- return [
30
- Document__default['default'],
31
- Paragraph__default['default'].configure(options === null || options === void 0 ? void 0 : options.paragraph),
32
- Text__default['default'],
33
- Bold__default['default'].configure(options === null || options === void 0 ? void 0 : options.bold),
34
- Italic__default['default'].configure(options === null || options === void 0 ? void 0 : options.italic),
35
- Code__default['default'].configure(options === null || options === void 0 ? void 0 : options.code),
36
- Strike__default['default'].configure(options === null || options === void 0 ? void 0 : options.strike),
37
- HardBreak__default['default'].configure(options === null || options === void 0 ? void 0 : options.hardBreak),
38
- Heading__default['default'].configure(options === null || options === void 0 ? void 0 : options.heading),
39
- Blockquote__default['default'].configure(options === null || options === void 0 ? void 0 : options.blockquote),
40
- BulletList__default['default'].configure(options === null || options === void 0 ? void 0 : options.bulletList),
41
- OrderedList__default['default'].configure(options === null || options === void 0 ? void 0 : options.orderedList),
42
- ListItem__default['default'].configure(options === null || options === void 0 ? void 0 : options.listItem),
43
- HorizontalRule__default['default'].configure(options === null || options === void 0 ? void 0 : options.horizontalRule),
44
- CodeBlock__default['default'].configure(options === null || options === void 0 ? void 0 : options.codeBlock),
45
- History__default['default'].configure(options === null || options === void 0 ? void 0 : options.history),
46
- Dropcursor__default['default'].configure(options === null || options === void 0 ? void 0 : options.dropursor),
47
- Gapcursor__default['default'],
48
- ];
49
- }
50
-
51
- exports.defaultExtensions = defaultExtensions;
70
+ exports.StarterKit = StarterKit;
71
+ exports["default"] = StarterKit;
52
72
 
53
73
  Object.defineProperty(exports, '__esModule', { value: true });
54
74
 
55
- })));
75
+ }));
56
76
  //# sourceMappingURL=tiptap-starter-kit.umd.js.map