@tiptap/starter-kit 3.0.0-next.4 → 3.0.0-next.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024, Tiptap GmbH
3
+ Copyright (c) 2025, Tiptap GmbH
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.cjs CHANGED
@@ -29,19 +29,15 @@ module.exports = __toCommonJS(index_exports);
29
29
  var import_core = require("@tiptap/core");
30
30
  var import_extension_blockquote = require("@tiptap/extension-blockquote");
31
31
  var import_extension_bold = require("@tiptap/extension-bold");
32
- var import_extension_bullet_list = require("@tiptap/extension-bullet-list");
33
32
  var import_extension_code = require("@tiptap/extension-code");
34
33
  var import_extension_code_block = require("@tiptap/extension-code-block");
35
34
  var import_extension_document = require("@tiptap/extension-document");
36
35
  var import_extension_hard_break = require("@tiptap/extension-hard-break");
37
36
  var import_extension_heading = require("@tiptap/extension-heading");
38
- var import_extension_history = require("@tiptap/extension-history");
39
37
  var import_extension_horizontal_rule = require("@tiptap/extension-horizontal-rule");
40
38
  var import_extension_italic = require("@tiptap/extension-italic");
41
39
  var import_extension_link = require("@tiptap/extension-link");
42
- var import_extension_list_item = require("@tiptap/extension-list-item");
43
- var import_extension_list_keymap = require("@tiptap/extension-list-keymap");
44
- var import_extension_ordered_list = require("@tiptap/extension-ordered-list");
40
+ var import_extension_list = require("@tiptap/extension-list");
45
41
  var import_extension_paragraph = require("@tiptap/extension-paragraph");
46
42
  var import_extension_strike = require("@tiptap/extension-strike");
47
43
  var import_extension_text = require("@tiptap/extension-text");
@@ -59,7 +55,7 @@ var StarterKit = import_core.Extension.create({
59
55
  extensions.push(import_extension_blockquote.Blockquote.configure((_b = this.options) == null ? void 0 : _b.blockquote));
60
56
  }
61
57
  if (this.options.bulletList !== false) {
62
- extensions.push(import_extension_bullet_list.BulletList.configure((_c = this.options) == null ? void 0 : _c.bulletList));
58
+ extensions.push(import_extension_list.BulletList.configure((_c = this.options) == null ? void 0 : _c.bulletList));
63
59
  }
64
60
  if (this.options.code !== false) {
65
61
  extensions.push(import_extension_code.Code.configure((_d = this.options) == null ? void 0 : _d.code));
@@ -83,7 +79,7 @@ var StarterKit = import_core.Extension.create({
83
79
  extensions.push(import_extension_heading.Heading.configure((_j = this.options) == null ? void 0 : _j.heading));
84
80
  }
85
81
  if (this.options.history !== false) {
86
- extensions.push(import_extension_history.History.configure((_k = this.options) == null ? void 0 : _k.history));
82
+ extensions.push(import_extensions.History.configure((_k = this.options) == null ? void 0 : _k.history));
87
83
  }
88
84
  if (this.options.horizontalRule !== false) {
89
85
  extensions.push(import_extension_horizontal_rule.HorizontalRule.configure((_l = this.options) == null ? void 0 : _l.horizontalRule));
@@ -92,16 +88,16 @@ var StarterKit = import_core.Extension.create({
92
88
  extensions.push(import_extension_italic.Italic.configure((_m = this.options) == null ? void 0 : _m.italic));
93
89
  }
94
90
  if (this.options.listItem !== false) {
95
- extensions.push(import_extension_list_item.ListItem.configure((_n = this.options) == null ? void 0 : _n.listItem));
91
+ extensions.push(import_extension_list.ListItem.configure((_n = this.options) == null ? void 0 : _n.listItem));
96
92
  }
97
93
  if (this.options.listKeymap !== false) {
98
- extensions.push(import_extension_list_keymap.ListKeymap.configure((_o = this.options) == null ? void 0 : _o.listKeymap));
94
+ extensions.push(import_extension_list.ListKeymap.configure((_o = this.options) == null ? void 0 : _o.listKeymap));
99
95
  }
100
96
  if (this.options.link !== false) {
101
97
  extensions.push(import_extension_link.Link.configure((_p = this.options) == null ? void 0 : _p.link));
102
98
  }
103
99
  if (this.options.orderedList !== false) {
104
- extensions.push(import_extension_ordered_list.OrderedList.configure((_q = this.options) == null ? void 0 : _q.orderedList));
100
+ extensions.push(import_extension_list.OrderedList.configure((_q = this.options) == null ? void 0 : _q.orderedList));
105
101
  }
106
102
  if (this.options.paragraph !== false) {
107
103
  extensions.push(import_extension_paragraph.Paragraph.configure((_r = this.options) == null ? void 0 : _r.paragraph));
@@ -1 +1 @@
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 { 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 { 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 { Link, LinkOptions } from '@tiptap/extension-link'\nimport { ListItem, ListItemOptions } from '@tiptap/extension-list-item'\nimport { ListKeymap, ListKeymapOptions } from '@tiptap/extension-list-keymap'\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'\nimport { Underline, UnderlineOptions } from '@tiptap/extension-underline'\nimport { Dropcursor, DropcursorOptions, Gapcursor, TrailingNode, TrailingNodeOptions } 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 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 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.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.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;AAC1B,kCAA8C;AAC9C,4BAAkC;AAClC,mCAA8C;AAC9C,4BAAkC;AAClC,kCAA4C;AAC5C,gCAAyB;AACzB,kCAA4C;AAC5C,+BAAwC;AACxC,+BAAwC;AACxC,uCAAsD;AACtD,8BAAsC;AACtC,4BAAkC;AAClC,iCAA0C;AAC1C,mCAA8C;AAC9C,oCAAgD;AAChD,iCAA4C;AAC5C,8BAAsC;AACtC,4BAAqB;AACrB,iCAA4C;AAC5C,wBAA4F;AA6IrF,IAAM,aAAa,sBAAU,OAA0B;AAAA,EAC5D,MAAM;AAAA,EAEN,gBAAgB;AApKlB;AAqKI,UAAM,aAAa,CAAC;AAEpB,QAAI,KAAK,QAAQ,SAAS,OAAO;AAC/B,iBAAW,KAAK,2BAAK,WAAU,UAAK,YAAL,mBAAc,IAAI,CAAC;AAAA,IACpD;AAEA,QAAI,KAAK,QAAQ,eAAe,OAAO;AACrC,iBAAW,KAAK,uCAAW,WAAU,UAAK,YAAL,mBAAc,UAAU,CAAC;AAAA,IAChE;AAEA,QAAI,KAAK,QAAQ,eAAe,OAAO;AACrC,iBAAW,KAAK,wCAAW,WAAU,UAAK,YAAL,mBAAc,UAAU,CAAC;AAAA,IAChE;AAEA,QAAI,KAAK,QAAQ,SAAS,OAAO;AAC/B,iBAAW,KAAK,2BAAK,WAAU,UAAK,YAAL,mBAAc,IAAI,CAAC;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K,YAAL,mBAAc,UAAU,CAAC;AAAA,IAChE;AAEA,QAAI,KAAK,QAAQ,SAAS,OAAO;AAC/B,iBAAW,KAAK,2BAAK,WAAU,UAAK,YAAL,mBAAc,IAAI,CAAC;AAAA,IACpD;AAEA,QAAI,KAAK,QAAQ,gBAAgB,OAAO;AACtC,iBAAW,KAAK,0CAAY,WAAU,UAAK,YAAL,mBAAc,WAAW,CAAC;AAAA,IAClE;AAEA,QAAI,KAAK,QAAQ,cAAc,OAAO;AACpC,iBAAW,KAAK,qCAAU,WAAU,UAAK,YAAL,mBAAc,SAAS,CAAC;AAAA,IAC9D;AAEA,QAAI,KAAK,QAAQ,WAAW,OAAO;AACjC,iBAAW,KAAK,+BAAO,WAAU,UAAK,YAAL,mBAAc,MAAM,CAAC;AAAA,IACxD;AAEA,QAAI,KAAK,QAAQ,SAAS,OAAO;AAC/B,iBAAW,KAAK,2BAAK,WAAU,UAAK,YAAL,mBAAc,IAAI,CAAC;AAAA,IACpD;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;;;AD5PD,IAAO,gBAAQ;","names":[]}
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 { Blockquote, BlockquoteOptions } from '@tiptap/extension-blockquote'\nimport { Bold, BoldOptions } from '@tiptap/extension-bold'\nimport { Code, CodeOptions } from '@tiptap/extension-code'\nimport { CodeBlock, CodeBlockOptions } from '@tiptap/extension-code-block'\nimport { Document } from '@tiptap/extension-document'\nimport { HardBreak, HardBreakOptions } from '@tiptap/extension-hard-break'\nimport { Heading, HeadingOptions } from '@tiptap/extension-heading'\nimport { HorizontalRule, HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'\nimport { Italic, ItalicOptions } from '@tiptap/extension-italic'\nimport { Link, LinkOptions } from '@tiptap/extension-link'\nimport {\n BulletList,\n BulletListOptions,\n ListItem,\n ListItemOptions,\n ListKeymap,\n ListKeymapOptions,\n OrderedList,\n OrderedListOptions,\n} from '@tiptap/extension-list'\nimport { Paragraph, ParagraphOptions } from '@tiptap/extension-paragraph'\nimport { Strike, StrikeOptions } from '@tiptap/extension-strike'\nimport { Text } from '@tiptap/extension-text'\nimport { Underline, UnderlineOptions } from '@tiptap/extension-underline'\nimport {\n Dropcursor,\n DropcursorOptions,\n Gapcursor,\n History,\n HistoryOptions,\n TrailingNode,\n TrailingNodeOptions,\n} 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 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 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.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.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;AAC1B,kCAA8C;AAC9C,4BAAkC;AAClC,4BAAkC;AAClC,kCAA4C;AAC5C,gCAAyB;AACzB,kCAA4C;AAC5C,+B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,KAAK,2BAAK,WAAU,UAAK,YAAL,mBAAc,IAAI,CAAC;AAAA,IACpD;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;;;ADzQD,IAAO,gBAAQ;","names":[]}
package/dist/index.d.cts CHANGED
@@ -1,22 +1,18 @@
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
6
  import { HardBreakOptions } from '@tiptap/extension-hard-break';
8
7
  import { HeadingOptions } from '@tiptap/extension-heading';
9
- import { HistoryOptions } from '@tiptap/extension-history';
10
8
  import { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule';
11
9
  import { ItalicOptions } from '@tiptap/extension-italic';
12
10
  import { LinkOptions } from '@tiptap/extension-link';
13
- import { ListItemOptions } from '@tiptap/extension-list-item';
14
- import { ListKeymapOptions } from '@tiptap/extension-list-keymap';
15
- import { OrderedListOptions } from '@tiptap/extension-ordered-list';
11
+ import { BulletListOptions, ListItemOptions, ListKeymapOptions, OrderedListOptions } from '@tiptap/extension-list';
16
12
  import { ParagraphOptions } from '@tiptap/extension-paragraph';
17
13
  import { StrikeOptions } from '@tiptap/extension-strike';
18
14
  import { UnderlineOptions } from '@tiptap/extension-underline';
19
- import { DropcursorOptions, TrailingNodeOptions } from '@tiptap/extensions';
15
+ import { DropcursorOptions, HistoryOptions, TrailingNodeOptions } from '@tiptap/extensions';
20
16
 
21
17
  interface StarterKitOptions {
22
18
  /**
package/dist/index.d.ts CHANGED
@@ -1,22 +1,18 @@
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
6
  import { HardBreakOptions } from '@tiptap/extension-hard-break';
8
7
  import { HeadingOptions } from '@tiptap/extension-heading';
9
- import { HistoryOptions } from '@tiptap/extension-history';
10
8
  import { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule';
11
9
  import { ItalicOptions } from '@tiptap/extension-italic';
12
10
  import { LinkOptions } from '@tiptap/extension-link';
13
- import { ListItemOptions } from '@tiptap/extension-list-item';
14
- import { ListKeymapOptions } from '@tiptap/extension-list-keymap';
15
- import { OrderedListOptions } from '@tiptap/extension-ordered-list';
11
+ import { BulletListOptions, ListItemOptions, ListKeymapOptions, OrderedListOptions } from '@tiptap/extension-list';
16
12
  import { ParagraphOptions } from '@tiptap/extension-paragraph';
17
13
  import { StrikeOptions } from '@tiptap/extension-strike';
18
14
  import { UnderlineOptions } from '@tiptap/extension-underline';
19
- import { DropcursorOptions, TrailingNodeOptions } from '@tiptap/extensions';
15
+ import { DropcursorOptions, HistoryOptions, TrailingNodeOptions } from '@tiptap/extensions';
20
16
 
21
17
  interface StarterKitOptions {
22
18
  /**
package/dist/index.js CHANGED
@@ -2,24 +2,30 @@
2
2
  import { Extension } from "@tiptap/core";
3
3
  import { Blockquote } from "@tiptap/extension-blockquote";
4
4
  import { Bold } from "@tiptap/extension-bold";
5
- import { BulletList } from "@tiptap/extension-bullet-list";
6
5
  import { Code } from "@tiptap/extension-code";
7
6
  import { CodeBlock } from "@tiptap/extension-code-block";
8
7
  import { Document } from "@tiptap/extension-document";
9
8
  import { HardBreak } from "@tiptap/extension-hard-break";
10
9
  import { Heading } from "@tiptap/extension-heading";
11
- import { History } from "@tiptap/extension-history";
12
10
  import { HorizontalRule } from "@tiptap/extension-horizontal-rule";
13
11
  import { Italic } from "@tiptap/extension-italic";
14
12
  import { Link } from "@tiptap/extension-link";
15
- import { ListItem } from "@tiptap/extension-list-item";
16
- import { ListKeymap } from "@tiptap/extension-list-keymap";
17
- import { OrderedList } from "@tiptap/extension-ordered-list";
13
+ import {
14
+ BulletList,
15
+ ListItem,
16
+ ListKeymap,
17
+ OrderedList
18
+ } from "@tiptap/extension-list";
18
19
  import { Paragraph } from "@tiptap/extension-paragraph";
19
20
  import { Strike } from "@tiptap/extension-strike";
20
21
  import { Text } from "@tiptap/extension-text";
21
22
  import { Underline } from "@tiptap/extension-underline";
22
- import { Dropcursor, Gapcursor, TrailingNode } from "@tiptap/extensions";
23
+ import {
24
+ Dropcursor,
25
+ Gapcursor,
26
+ History,
27
+ TrailingNode
28
+ } from "@tiptap/extensions";
23
29
  var StarterKit = Extension.create({
24
30
  name: "starterKit",
25
31
  addExtensions() {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/starter-kit.ts","../src/index.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 { 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 { Link, LinkOptions } from '@tiptap/extension-link'\nimport { ListItem, ListItemOptions } from '@tiptap/extension-list-item'\nimport { ListKeymap, ListKeymapOptions } from '@tiptap/extension-list-keymap'\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'\nimport { Underline, UnderlineOptions } from '@tiptap/extension-underline'\nimport { Dropcursor, DropcursorOptions, Gapcursor, TrailingNode, TrailingNodeOptions } 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 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 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.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.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;AAC1B,SAAS,kBAAqC;AAC9C,SAAS,YAAyB;AAClC,SAAS,kBAAqC;AAC9C,SAAS,YAAyB;AAClC,SAAS,iBAAmC;AAC5C,SAAS,gBAAgB;AACzB,SAAS,iBAAmC;AAC5C,SAAS,eAA+B;AACxC,SAAS,eAA+B;AACxC,SAAS,sBAA6C;AACtD,SAAS,cAA6B;AACtC,SAAS,YAAyB;AAClC,SAAS,gBAAiC;AAC1C,SAAS,kBAAqC;AAC9C,SAAS,mBAAuC;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,CAAC;AAAA,IACpD;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;;;AC5PD,IAAO,gBAAQ;","names":[]}
1
+ {"version":3,"sources":["../src/starter-kit.ts","../src/index.ts"],"sourcesContent":["import { Extension } from '@tiptap/core'\nimport { Blockquote, BlockquoteOptions } from '@tiptap/extension-blockquote'\nimport { Bold, BoldOptions } from '@tiptap/extension-bold'\nimport { Code, CodeOptions } from '@tiptap/extension-code'\nimport { CodeBlock, CodeBlockOptions } from '@tiptap/extension-code-block'\nimport { Document } from '@tiptap/extension-document'\nimport { HardBreak, HardBreakOptions } from '@tiptap/extension-hard-break'\nimport { Heading, HeadingOptions } from '@tiptap/extension-heading'\nimport { HorizontalRule, HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'\nimport { Italic, ItalicOptions } from '@tiptap/extension-italic'\nimport { Link, LinkOptions } from '@tiptap/extension-link'\nimport {\n BulletList,\n BulletListOptions,\n ListItem,\n ListItemOptions,\n ListKeymap,\n ListKeymapOptions,\n OrderedList,\n OrderedListOptions,\n} from '@tiptap/extension-list'\nimport { Paragraph, ParagraphOptions } from '@tiptap/extension-paragraph'\nimport { Strike, StrikeOptions } from '@tiptap/extension-strike'\nimport { Text } from '@tiptap/extension-text'\nimport { Underline, UnderlineOptions } from '@tiptap/extension-underline'\nimport {\n Dropcursor,\n DropcursorOptions,\n Gapcursor,\n History,\n HistoryOptions,\n TrailingNode,\n TrailingNodeOptions,\n} 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 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 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.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.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;AAC1B,SAAS,kBAAqC;AAC9C,SAAS,YAAyB;AAClC,SAAS,YAAyB;AAClC,SAAS,iBAAmC;AAC5C,SAAS,gBAAgB;AACzB,SAAS,iBAAmC;AAC5C,SAAS,eAA+B;AACxC,SAAS,sBAA6C;AACtD,SAAS,cAA6B;AACtC,SAAS,YAAyB;AAClC;AAAA,EACE;AAAA,EAEA;AAAA,EAEA;AAAA,EAEA;AAAA,OAEK;AACP,SAAS,iBAAmC;AAC5C,SAAS,cAA6B;AACtC,SAAS,YAAY;AACrB,SAAS,iBAAmC;AAC5C;AAAA,EACE;AAAA,EAEA;AAAA,EACA;AAAA,EAEA;AAAA,OAEK;AA6IA,IAAM,aAAa,UAAU,OAA0B;AAAA,EAC5D,MAAM;AAAA,EAEN,gBAAgB;AAjLlB;AAkLI,UAAM,aAAa,CAAC;AAEpB,QAAI,KAAK,QAAQ,SAAS,OAAO;AAC/B,iBAAW,KAAK,KAAK,WAAU,UAAK,YAAL,mBAAc,IAAI,CAAC;AAAA,IACpD;AAEA,QAAI,KAAK,QAAQ,eAAe,OAAO;AACrC,iBAAW,KAAK,WAAW,WAAU,UAAK,YAAL,mBAAc,UAAU,CAAC;AAAA,IAChE;AAEA,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
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -31,30 +31,30 @@
31
31
  "dist"
32
32
  ],
33
33
  "dependencies": {
34
- "@tiptap/core": "^3.0.0-next.4",
35
- "@tiptap/extension-blockquote": "^3.0.0-next.4",
36
- "@tiptap/extension-bold": "^3.0.0-next.4",
37
- "@tiptap/extension-bullet-list": "^3.0.0-next.4",
38
- "@tiptap/extension-code": "^3.0.0-next.4",
39
- "@tiptap/extension-code-block": "^3.0.0-next.4",
40
- "@tiptap/extension-document": "^3.0.0-next.4",
41
- "@tiptap/extension-dropcursor": "^3.0.0-next.4",
42
- "@tiptap/extension-gapcursor": "^3.0.0-next.4",
43
- "@tiptap/extension-hard-break": "^3.0.0-next.4",
44
- "@tiptap/extension-heading": "^3.0.0-next.4",
45
- "@tiptap/extension-history": "^3.0.0-next.4",
46
- "@tiptap/extension-horizontal-rule": "^3.0.0-next.4",
47
- "@tiptap/extension-italic": "^3.0.0-next.4",
48
- "@tiptap/extension-link": "^3.0.0-next.4",
49
- "@tiptap/extension-list-item": "^3.0.0-next.4",
50
- "@tiptap/extension-list-keymap": "^3.0.0-next.4",
51
- "@tiptap/extension-ordered-list": "^3.0.0-next.4",
52
- "@tiptap/extension-paragraph": "^3.0.0-next.4",
53
- "@tiptap/extension-strike": "^3.0.0-next.4",
54
- "@tiptap/extension-text": "^3.0.0-next.4",
55
- "@tiptap/extension-underline": "^3.0.0-next.4",
56
- "@tiptap/extensions": "^3.0.0-next.4",
57
- "@tiptap/pm": "^3.0.0-next.4"
34
+ "@tiptap/core": "^3.0.0-next.6",
35
+ "@tiptap/extension-blockquote": "^3.0.0-next.6",
36
+ "@tiptap/extension-bold": "^3.0.0-next.6",
37
+ "@tiptap/extension-bullet-list": "^3.0.0-next.6",
38
+ "@tiptap/extension-code": "^3.0.0-next.6",
39
+ "@tiptap/extension-code-block": "^3.0.0-next.6",
40
+ "@tiptap/extension-document": "^3.0.0-next.6",
41
+ "@tiptap/extension-dropcursor": "^3.0.0-next.6",
42
+ "@tiptap/extension-gapcursor": "^3.0.0-next.6",
43
+ "@tiptap/extension-hard-break": "^3.0.0-next.6",
44
+ "@tiptap/extension-heading": "^3.0.0-next.6",
45
+ "@tiptap/extension-history": "^3.0.0-next.6",
46
+ "@tiptap/extension-horizontal-rule": "^3.0.0-next.6",
47
+ "@tiptap/extension-italic": "^3.0.0-next.6",
48
+ "@tiptap/extension-link": "^3.0.0-next.6",
49
+ "@tiptap/extension-list-item": "^3.0.0-next.6",
50
+ "@tiptap/extension-list-keymap": "^3.0.0-next.6",
51
+ "@tiptap/extension-ordered-list": "^3.0.0-next.6",
52
+ "@tiptap/extension-paragraph": "^3.0.0-next.6",
53
+ "@tiptap/extension-strike": "^3.0.0-next.6",
54
+ "@tiptap/extension-text": "^3.0.0-next.6",
55
+ "@tiptap/extension-underline": "^3.0.0-next.6",
56
+ "@tiptap/extensions": "^3.0.0-next.6",
57
+ "@tiptap/pm": "^3.0.0-next.6"
58
58
  },
59
59
  "repository": {
60
60
  "type": "git",
@@ -1,24 +1,37 @@
1
1
  import { Extension } from '@tiptap/core'
2
2
  import { Blockquote, BlockquoteOptions } from '@tiptap/extension-blockquote'
3
3
  import { Bold, BoldOptions } from '@tiptap/extension-bold'
4
- import { BulletList, BulletListOptions } from '@tiptap/extension-bullet-list'
5
4
  import { Code, CodeOptions } from '@tiptap/extension-code'
6
5
  import { CodeBlock, CodeBlockOptions } from '@tiptap/extension-code-block'
7
6
  import { Document } from '@tiptap/extension-document'
8
7
  import { HardBreak, HardBreakOptions } from '@tiptap/extension-hard-break'
9
8
  import { Heading, HeadingOptions } from '@tiptap/extension-heading'
10
- import { History, HistoryOptions } from '@tiptap/extension-history'
11
9
  import { HorizontalRule, HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule'
12
10
  import { Italic, ItalicOptions } from '@tiptap/extension-italic'
13
11
  import { Link, LinkOptions } from '@tiptap/extension-link'
14
- import { ListItem, ListItemOptions } from '@tiptap/extension-list-item'
15
- import { ListKeymap, ListKeymapOptions } from '@tiptap/extension-list-keymap'
16
- import { OrderedList, OrderedListOptions } from '@tiptap/extension-ordered-list'
12
+ import {
13
+ BulletList,
14
+ BulletListOptions,
15
+ ListItem,
16
+ ListItemOptions,
17
+ ListKeymap,
18
+ ListKeymapOptions,
19
+ OrderedList,
20
+ OrderedListOptions,
21
+ } from '@tiptap/extension-list'
17
22
  import { Paragraph, ParagraphOptions } from '@tiptap/extension-paragraph'
18
23
  import { Strike, StrikeOptions } from '@tiptap/extension-strike'
19
24
  import { Text } from '@tiptap/extension-text'
20
25
  import { Underline, UnderlineOptions } from '@tiptap/extension-underline'
21
- import { Dropcursor, DropcursorOptions, Gapcursor, TrailingNode, TrailingNodeOptions } from '@tiptap/extensions'
26
+ import {
27
+ Dropcursor,
28
+ DropcursorOptions,
29
+ Gapcursor,
30
+ History,
31
+ HistoryOptions,
32
+ TrailingNode,
33
+ TrailingNodeOptions,
34
+ } from '@tiptap/extensions'
22
35
 
23
36
  export interface StarterKitOptions {
24
37
  /**