@tiptap/extension-bullet-list 2.0.0-beta.15 → 2.0.0-beta.19

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.
@@ -13,4 +13,4 @@ declare module '@tiptap/core' {
13
13
  }
14
14
  }
15
15
  export declare const inputRegex: RegExp;
16
- export declare const BulletList: Node<BulletListOptions>;
16
+ export declare const BulletList: Node<BulletListOptions, any>;
@@ -3,13 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var core = require('@tiptap/core');
6
- var prosemirrorInputrules = require('prosemirror-inputrules');
7
6
 
8
7
  const inputRegex = /^\s*([-+*])\s$/;
9
8
  const BulletList = core.Node.create({
10
9
  name: 'bulletList',
11
- defaultOptions: {
12
- HTMLAttributes: {},
10
+ addOptions() {
11
+ return {
12
+ HTMLAttributes: {},
13
+ };
13
14
  },
14
15
  group: 'block list',
15
16
  content: 'listItem+',
@@ -35,12 +36,15 @@ const BulletList = core.Node.create({
35
36
  },
36
37
  addInputRules() {
37
38
  return [
38
- prosemirrorInputrules.wrappingInputRule(inputRegex, this.type),
39
+ core.wrappingInputRule({
40
+ find: inputRegex,
41
+ type: this.type,
42
+ }),
39
43
  ];
40
44
  },
41
45
  });
42
46
 
43
47
  exports.BulletList = BulletList;
44
- exports.default = BulletList;
48
+ exports["default"] = BulletList;
45
49
  exports.inputRegex = inputRegex;
46
50
  //# sourceMappingURL=tiptap-extension-bullet-list.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tiptap-extension-bullet-list.cjs.js","sources":["../src/bullet-list.ts"],"sourcesContent":["import { Node, mergeAttributes } from '@tiptap/core'\nimport { wrappingInputRule } from 'prosemirror-inputrules'\n\nexport interface BulletListOptions {\n HTMLAttributes: Record<string, any>,\n}\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n bulletList: {\n /**\n * Toggle a bullet list\n */\n toggleBulletList: () => ReturnType,\n }\n }\n}\n\nexport const inputRegex = /^\\s*([-+*])\\s$/\n\nexport const BulletList = Node.create<BulletListOptions>({\n name: 'bulletList',\n\n defaultOptions: {\n HTMLAttributes: {},\n },\n\n group: 'block list',\n\n content: 'listItem+',\n\n parseHTML() {\n return [\n { tag: 'ul' },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['ul', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n addCommands() {\n return {\n toggleBulletList: () => ({ commands }) => {\n return commands.toggleList('bulletList', 'listItem')\n },\n }\n },\n\n addKeyboardShortcuts() {\n return {\n 'Mod-Shift-8': () => this.editor.commands.toggleBulletList(),\n }\n },\n\n addInputRules() {\n return [\n wrappingInputRule(inputRegex, this.type),\n ]\n },\n})\n"],"names":["Node","mergeAttributes","wrappingInputRule"],"mappings":";;;;;;;MAkBa,UAAU,GAAG,iBAAgB;MAE7B,UAAU,GAAGA,SAAI,CAAC,MAAM,CAAoB;IACvD,IAAI,EAAE,YAAY;IAElB,cAAc,EAAE;QACd,cAAc,EAAE,EAAE;KACnB;IAED,KAAK,EAAE,YAAY;IAEnB,OAAO,EAAE,WAAW;IAEpB,SAAS;QACP,OAAO;YACL,EAAE,GAAG,EAAE,IAAI,EAAE;SACd,CAAA;KACF;IAED,UAAU,CAAC,EAAE,cAAc,EAAE;QAC3B,OAAO,CAAC,IAAI,EAAEC,oBAAe,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC,CAAA;KAC/E;IAED,WAAW;QACT,OAAO;YACL,gBAAgB,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE;gBACnC,OAAO,QAAQ,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,CAAA;aACrD;SACF,CAAA;KACF;IAED,oBAAoB;QAClB,OAAO;YACL,aAAa,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,EAAE;SAC7D,CAAA;KACF;IAED,aAAa;QACX,OAAO;YACLC,uCAAiB,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC;SACzC,CAAA;KACF;CACF;;;;;;"}
1
+ {"version":3,"file":"tiptap-extension-bullet-list.cjs.js","sources":["../src/bullet-list.ts"],"sourcesContent":["import { Node, mergeAttributes, wrappingInputRule } from '@tiptap/core'\n\nexport interface BulletListOptions {\n HTMLAttributes: Record<string, any>,\n}\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n bulletList: {\n /**\n * Toggle a bullet list\n */\n toggleBulletList: () => ReturnType,\n }\n }\n}\n\nexport const inputRegex = /^\\s*([-+*])\\s$/\n\nexport const BulletList = Node.create<BulletListOptions>({\n name: 'bulletList',\n\n addOptions() {\n return {\n HTMLAttributes: {},\n }\n },\n\n group: 'block list',\n\n content: 'listItem+',\n\n parseHTML() {\n return [\n { tag: 'ul' },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['ul', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n addCommands() {\n return {\n toggleBulletList: () => ({ commands }) => {\n return commands.toggleList('bulletList', 'listItem')\n },\n }\n },\n\n addKeyboardShortcuts() {\n return {\n 'Mod-Shift-8': () => this.editor.commands.toggleBulletList(),\n }\n },\n\n addInputRules() {\n return [\n wrappingInputRule({\n find: inputRegex,\n type: this.type,\n }),\n ]\n },\n})\n"],"names":["Node","mergeAttributes","wrappingInputRule"],"mappings":";;;;;;MAiBa,UAAU,GAAG,iBAAgB;MAE7B,UAAU,GAAGA,SAAI,CAAC,MAAM,CAAoB;IACvD,IAAI,EAAE,YAAY;IAElB,UAAU;QACR,OAAO;YACL,cAAc,EAAE,EAAE;SACnB,CAAA;KACF;IAED,KAAK,EAAE,YAAY;IAEnB,OAAO,EAAE,WAAW;IAEpB,SAAS;QACP,OAAO;YACL,EAAE,GAAG,EAAE,IAAI,EAAE;SACd,CAAA;KACF;IAED,UAAU,CAAC,EAAE,cAAc,EAAE;QAC3B,OAAO,CAAC,IAAI,EAAEC,oBAAe,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC,CAAA;KAC/E;IAED,WAAW;QACT,OAAO;YACL,gBAAgB,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE;gBACnC,OAAO,QAAQ,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,CAAA;aACrD;SACF,CAAA;KACF;IAED,oBAAoB;QAClB,OAAO;YACL,aAAa,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,EAAE;SAC7D,CAAA;KACF;IAED,aAAa;QACX,OAAO;YACLC,sBAAiB,CAAC;gBAChB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,IAAI,CAAC,IAAI;aAChB,CAAC;SACH,CAAA;KACF;CACF;;;;;;"}
@@ -1,11 +1,12 @@
1
- import { Node, mergeAttributes } from '@tiptap/core';
2
- import { wrappingInputRule } from 'prosemirror-inputrules';
1
+ import { Node, mergeAttributes, wrappingInputRule } from '@tiptap/core';
3
2
 
4
3
  const inputRegex = /^\s*([-+*])\s$/;
5
4
  const BulletList = Node.create({
6
5
  name: 'bulletList',
7
- defaultOptions: {
8
- HTMLAttributes: {},
6
+ addOptions() {
7
+ return {
8
+ HTMLAttributes: {},
9
+ };
9
10
  },
10
11
  group: 'block list',
11
12
  content: 'listItem+',
@@ -31,11 +32,13 @@ const BulletList = Node.create({
31
32
  },
32
33
  addInputRules() {
33
34
  return [
34
- wrappingInputRule(inputRegex, this.type),
35
+ wrappingInputRule({
36
+ find: inputRegex,
37
+ type: this.type,
38
+ }),
35
39
  ];
36
40
  },
37
41
  });
38
42
 
39
- export default BulletList;
40
- export { BulletList, inputRegex };
43
+ export { BulletList, BulletList as default, inputRegex };
41
44
  //# sourceMappingURL=tiptap-extension-bullet-list.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tiptap-extension-bullet-list.esm.js","sources":["../src/bullet-list.ts"],"sourcesContent":["import { Node, mergeAttributes } from '@tiptap/core'\nimport { wrappingInputRule } from 'prosemirror-inputrules'\n\nexport interface BulletListOptions {\n HTMLAttributes: Record<string, any>,\n}\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n bulletList: {\n /**\n * Toggle a bullet list\n */\n toggleBulletList: () => ReturnType,\n }\n }\n}\n\nexport const inputRegex = /^\\s*([-+*])\\s$/\n\nexport const BulletList = Node.create<BulletListOptions>({\n name: 'bulletList',\n\n defaultOptions: {\n HTMLAttributes: {},\n },\n\n group: 'block list',\n\n content: 'listItem+',\n\n parseHTML() {\n return [\n { tag: 'ul' },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['ul', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n addCommands() {\n return {\n toggleBulletList: () => ({ commands }) => {\n return commands.toggleList('bulletList', 'listItem')\n },\n }\n },\n\n addKeyboardShortcuts() {\n return {\n 'Mod-Shift-8': () => this.editor.commands.toggleBulletList(),\n }\n },\n\n addInputRules() {\n return [\n wrappingInputRule(inputRegex, this.type),\n ]\n },\n})\n"],"names":[],"mappings":";;;MAkBa,UAAU,GAAG,iBAAgB;MAE7B,UAAU,GAAG,IAAI,CAAC,MAAM,CAAoB;IACvD,IAAI,EAAE,YAAY;IAElB,cAAc,EAAE;QACd,cAAc,EAAE,EAAE;KACnB;IAED,KAAK,EAAE,YAAY;IAEnB,OAAO,EAAE,WAAW;IAEpB,SAAS;QACP,OAAO;YACL,EAAE,GAAG,EAAE,IAAI,EAAE;SACd,CAAA;KACF;IAED,UAAU,CAAC,EAAE,cAAc,EAAE;QAC3B,OAAO,CAAC,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC,CAAA;KAC/E;IAED,WAAW;QACT,OAAO;YACL,gBAAgB,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE;gBACnC,OAAO,QAAQ,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,CAAA;aACrD;SACF,CAAA;KACF;IAED,oBAAoB;QAClB,OAAO;YACL,aAAa,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,EAAE;SAC7D,CAAA;KACF;IAED,aAAa;QACX,OAAO;YACL,iBAAiB,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC;SACzC,CAAA;KACF;CACF;;;;;"}
1
+ {"version":3,"file":"tiptap-extension-bullet-list.esm.js","sources":["../src/bullet-list.ts"],"sourcesContent":["import { Node, mergeAttributes, wrappingInputRule } from '@tiptap/core'\n\nexport interface BulletListOptions {\n HTMLAttributes: Record<string, any>,\n}\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n bulletList: {\n /**\n * Toggle a bullet list\n */\n toggleBulletList: () => ReturnType,\n }\n }\n}\n\nexport const inputRegex = /^\\s*([-+*])\\s$/\n\nexport const BulletList = Node.create<BulletListOptions>({\n name: 'bulletList',\n\n addOptions() {\n return {\n HTMLAttributes: {},\n }\n },\n\n group: 'block list',\n\n content: 'listItem+',\n\n parseHTML() {\n return [\n { tag: 'ul' },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['ul', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n addCommands() {\n return {\n toggleBulletList: () => ({ commands }) => {\n return commands.toggleList('bulletList', 'listItem')\n },\n }\n },\n\n addKeyboardShortcuts() {\n return {\n 'Mod-Shift-8': () => this.editor.commands.toggleBulletList(),\n }\n },\n\n addInputRules() {\n return [\n wrappingInputRule({\n find: inputRegex,\n type: this.type,\n }),\n ]\n },\n})\n"],"names":[],"mappings":";;MAiBa,UAAU,GAAG,iBAAgB;MAE7B,UAAU,GAAG,IAAI,CAAC,MAAM,CAAoB;IACvD,IAAI,EAAE,YAAY;IAElB,UAAU;QACR,OAAO;YACL,cAAc,EAAE,EAAE;SACnB,CAAA;KACF;IAED,KAAK,EAAE,YAAY;IAEnB,OAAO,EAAE,WAAW;IAEpB,SAAS;QACP,OAAO;YACL,EAAE,GAAG,EAAE,IAAI,EAAE;SACd,CAAA;KACF;IAED,UAAU,CAAC,EAAE,cAAc,EAAE;QAC3B,OAAO,CAAC,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC,CAAA;KAC/E;IAED,WAAW;QACT,OAAO;YACL,gBAAgB,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE;gBACnC,OAAO,QAAQ,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,CAAA;aACrD;SACF,CAAA;KACF;IAED,oBAAoB;QAClB,OAAO;YACL,aAAa,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,EAAE;SAC7D,CAAA;KACF;IAED,aAAa;QACX,OAAO;YACL,iBAAiB,CAAC;gBAChB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,IAAI,CAAC,IAAI;aAChB,CAAC;SACH,CAAA;KACF;CACF;;;;"}
@@ -1,14 +1,16 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tiptap/core'), require('prosemirror-inputrules')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@tiptap/core', 'prosemirror-inputrules'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['@tiptap/extension-bullet-list'] = {}, global.core, global.prosemirrorInputrules));
5
- }(this, (function (exports, core, prosemirrorInputrules) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tiptap/core')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@tiptap/core'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@tiptap/extension-bullet-list"] = {}, global.core));
5
+ })(this, (function (exports, core) { 'use strict';
6
6
 
7
7
  const inputRegex = /^\s*([-+*])\s$/;
8
8
  const BulletList = core.Node.create({
9
9
  name: 'bulletList',
10
- defaultOptions: {
11
- HTMLAttributes: {},
10
+ addOptions() {
11
+ return {
12
+ HTMLAttributes: {},
13
+ };
12
14
  },
13
15
  group: 'block list',
14
16
  content: 'listItem+',
@@ -34,16 +36,19 @@
34
36
  },
35
37
  addInputRules() {
36
38
  return [
37
- prosemirrorInputrules.wrappingInputRule(inputRegex, this.type),
39
+ core.wrappingInputRule({
40
+ find: inputRegex,
41
+ type: this.type,
42
+ }),
38
43
  ];
39
44
  },
40
45
  });
41
46
 
42
47
  exports.BulletList = BulletList;
43
- exports.default = BulletList;
48
+ exports["default"] = BulletList;
44
49
  exports.inputRegex = inputRegex;
45
50
 
46
51
  Object.defineProperty(exports, '__esModule', { value: true });
47
52
 
48
- })));
53
+ }));
49
54
  //# sourceMappingURL=tiptap-extension-bullet-list.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tiptap-extension-bullet-list.umd.js","sources":["../src/bullet-list.ts"],"sourcesContent":["import { Node, mergeAttributes } from '@tiptap/core'\nimport { wrappingInputRule } from 'prosemirror-inputrules'\n\nexport interface BulletListOptions {\n HTMLAttributes: Record<string, any>,\n}\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n bulletList: {\n /**\n * Toggle a bullet list\n */\n toggleBulletList: () => ReturnType,\n }\n }\n}\n\nexport const inputRegex = /^\\s*([-+*])\\s$/\n\nexport const BulletList = Node.create<BulletListOptions>({\n name: 'bulletList',\n\n defaultOptions: {\n HTMLAttributes: {},\n },\n\n group: 'block list',\n\n content: 'listItem+',\n\n parseHTML() {\n return [\n { tag: 'ul' },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['ul', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n addCommands() {\n return {\n toggleBulletList: () => ({ commands }) => {\n return commands.toggleList('bulletList', 'listItem')\n },\n }\n },\n\n addKeyboardShortcuts() {\n return {\n 'Mod-Shift-8': () => this.editor.commands.toggleBulletList(),\n }\n },\n\n addInputRules() {\n return [\n wrappingInputRule(inputRegex, this.type),\n ]\n },\n})\n"],"names":["Node","mergeAttributes","wrappingInputRule"],"mappings":";;;;;;QAkBa,UAAU,GAAG,iBAAgB;QAE7B,UAAU,GAAGA,SAAI,CAAC,MAAM,CAAoB;MACvD,IAAI,EAAE,YAAY;MAElB,cAAc,EAAE;UACd,cAAc,EAAE,EAAE;OACnB;MAED,KAAK,EAAE,YAAY;MAEnB,OAAO,EAAE,WAAW;MAEpB,SAAS;UACP,OAAO;cACL,EAAE,GAAG,EAAE,IAAI,EAAE;WACd,CAAA;OACF;MAED,UAAU,CAAC,EAAE,cAAc,EAAE;UAC3B,OAAO,CAAC,IAAI,EAAEC,oBAAe,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC,CAAA;OAC/E;MAED,WAAW;UACT,OAAO;cACL,gBAAgB,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE;kBACnC,OAAO,QAAQ,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,CAAA;eACrD;WACF,CAAA;OACF;MAED,oBAAoB;UAClB,OAAO;cACL,aAAa,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,EAAE;WAC7D,CAAA;OACF;MAED,aAAa;UACX,OAAO;cACLC,uCAAiB,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC;WACzC,CAAA;OACF;GACF;;;;;;;;;;;;"}
1
+ {"version":3,"file":"tiptap-extension-bullet-list.umd.js","sources":["../src/bullet-list.ts"],"sourcesContent":["import { Node, mergeAttributes, wrappingInputRule } from '@tiptap/core'\n\nexport interface BulletListOptions {\n HTMLAttributes: Record<string, any>,\n}\n\ndeclare module '@tiptap/core' {\n interface Commands<ReturnType> {\n bulletList: {\n /**\n * Toggle a bullet list\n */\n toggleBulletList: () => ReturnType,\n }\n }\n}\n\nexport const inputRegex = /^\\s*([-+*])\\s$/\n\nexport const BulletList = Node.create<BulletListOptions>({\n name: 'bulletList',\n\n addOptions() {\n return {\n HTMLAttributes: {},\n }\n },\n\n group: 'block list',\n\n content: 'listItem+',\n\n parseHTML() {\n return [\n { tag: 'ul' },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['ul', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n addCommands() {\n return {\n toggleBulletList: () => ({ commands }) => {\n return commands.toggleList('bulletList', 'listItem')\n },\n }\n },\n\n addKeyboardShortcuts() {\n return {\n 'Mod-Shift-8': () => this.editor.commands.toggleBulletList(),\n }\n },\n\n addInputRules() {\n return [\n wrappingInputRule({\n find: inputRegex,\n type: this.type,\n }),\n ]\n },\n})\n"],"names":["Node","mergeAttributes","wrappingInputRule"],"mappings":";;;;;;QAiBa,UAAU,GAAG,iBAAgB;QAE7B,UAAU,GAAGA,SAAI,CAAC,MAAM,CAAoB;MACvD,IAAI,EAAE,YAAY;MAElB,UAAU;UACR,OAAO;cACL,cAAc,EAAE,EAAE;WACnB,CAAA;OACF;MAED,KAAK,EAAE,YAAY;MAEnB,OAAO,EAAE,WAAW;MAEpB,SAAS;UACP,OAAO;cACL,EAAE,GAAG,EAAE,IAAI,EAAE;WACd,CAAA;OACF;MAED,UAAU,CAAC,EAAE,cAAc,EAAE;UAC3B,OAAO,CAAC,IAAI,EAAEC,oBAAe,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC,CAAA;OAC/E;MAED,WAAW;UACT,OAAO;cACL,gBAAgB,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE;kBACnC,OAAO,QAAQ,CAAC,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,CAAA;eACrD;WACF,CAAA;OACF;MAED,oBAAoB;UAClB,OAAO;cACL,aAAa,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,EAAE;WAC7D,CAAA;OACF;MAED,aAAa;UACX,OAAO;cACLC,sBAAiB,CAAC;kBAChB,IAAI,EAAE,UAAU;kBAChB,IAAI,EAAE,IAAI,CAAC,IAAI;eAChB,CAAC;WACH,CAAA;OACF;GACF;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/extension-bullet-list",
3
3
  "description": "bullet list extension for tiptap",
4
- "version": "2.0.0-beta.15",
4
+ "version": "2.0.0-beta.19",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -23,13 +23,10 @@
23
23
  "peerDependencies": {
24
24
  "@tiptap/core": "^2.0.0-beta.1"
25
25
  },
26
- "dependencies": {
27
- "prosemirror-inputrules": "^1.1.3"
28
- },
29
26
  "repository": {
30
27
  "type": "git",
31
28
  "url": "https://github.com/ueberdosis/tiptap",
32
29
  "directory": "packages/extension-bullet-list"
33
30
  },
34
- "gitHead": "345ea8cf8abba6422dabc6e548594fb8e2c30409"
31
+ "gitHead": "642627ec3635a1d8fa851887d75bee5f193ec63b"
35
32
  }
@@ -1,5 +1,4 @@
1
- import { Node, mergeAttributes } from '@tiptap/core'
2
- import { wrappingInputRule } from 'prosemirror-inputrules'
1
+ import { Node, mergeAttributes, wrappingInputRule } from '@tiptap/core'
3
2
 
4
3
  export interface BulletListOptions {
5
4
  HTMLAttributes: Record<string, any>,
@@ -21,8 +20,10 @@ export const inputRegex = /^\s*([-+*])\s$/
21
20
  export const BulletList = Node.create<BulletListOptions>({
22
21
  name: 'bulletList',
23
22
 
24
- defaultOptions: {
25
- HTMLAttributes: {},
23
+ addOptions() {
24
+ return {
25
+ HTMLAttributes: {},
26
+ }
26
27
  },
27
28
 
28
29
  group: 'block list',
@@ -55,7 +56,10 @@ export const BulletList = Node.create<BulletListOptions>({
55
56
 
56
57
  addInputRules() {
57
58
  return [
58
- wrappingInputRule(inputRegex, this.type),
59
+ wrappingInputRule({
60
+ find: inputRegex,
61
+ type: this.type,
62
+ }),
59
63
  ]
60
64
  },
61
65
  })
package/CHANGELOG.md DELETED
@@ -1,236 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [2.0.0-beta.15](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-beta.14...@tiptap/extension-bullet-list@2.0.0-beta.15) (2021-07-26)
7
-
8
- **Note:** Version bump only for package @tiptap/extension-bullet-list
9
-
10
-
11
-
12
-
13
-
14
- # [2.0.0-beta.14](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-beta.13...@tiptap/extension-bullet-list@2.0.0-beta.14) (2021-06-07)
15
-
16
- **Note:** Version bump only for package @tiptap/extension-bullet-list
17
-
18
-
19
-
20
-
21
-
22
- # [2.0.0-beta.13](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-beta.12...@tiptap/extension-bullet-list@2.0.0-beta.13) (2021-05-18)
23
-
24
- **Note:** Version bump only for package @tiptap/extension-bullet-list
25
-
26
-
27
-
28
-
29
-
30
- # [2.0.0-beta.12](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-beta.11...@tiptap/extension-bullet-list@2.0.0-beta.12) (2021-05-13)
31
-
32
- **Note:** Version bump only for package @tiptap/extension-bullet-list
33
-
34
-
35
-
36
-
37
-
38
- # [2.0.0-beta.11](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-beta.10...@tiptap/extension-bullet-list@2.0.0-beta.11) (2021-05-07)
39
-
40
-
41
- ### Bug Fixes
42
-
43
- * revert adding exports ([bc320d0](https://github.com/ueberdosis/tiptap/commit/bc320d0b4b80b0e37a7e47a56e0f6daec6e65d98))
44
-
45
-
46
-
47
-
48
-
49
- # [2.0.0-beta.10](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-beta.9...@tiptap/extension-bullet-list@2.0.0-beta.10) (2021-05-06)
50
-
51
-
52
- ### Bug Fixes
53
-
54
- * revert adding type: module ([f8d6475](https://github.com/ueberdosis/tiptap/commit/f8d6475e2151faea6f96baecdd6bd75880d50d2c))
55
-
56
-
57
-
58
-
59
-
60
- # [2.0.0-beta.9](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-beta.8...@tiptap/extension-bullet-list@2.0.0-beta.9) (2021-05-06)
61
-
62
-
63
- ### Bug Fixes
64
-
65
- * add exports to package.json ([1277fa4](https://github.com/ueberdosis/tiptap/commit/1277fa47151e9c039508cdb219bdd0ffe647f4ee))
66
-
67
-
68
-
69
-
70
-
71
- # [2.0.0-beta.8](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-beta.7...@tiptap/extension-bullet-list@2.0.0-beta.8) (2021-05-06)
72
-
73
- **Note:** Version bump only for package @tiptap/extension-bullet-list
74
-
75
-
76
-
77
-
78
-
79
- # [2.0.0-beta.7](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-beta.6...@tiptap/extension-bullet-list@2.0.0-beta.7) (2021-05-05)
80
-
81
- **Note:** Version bump only for package @tiptap/extension-bullet-list
82
-
83
-
84
-
85
-
86
-
87
- # [2.0.0-beta.6](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-beta.5...@tiptap/extension-bullet-list@2.0.0-beta.6) (2021-04-23)
88
-
89
- **Note:** Version bump only for package @tiptap/extension-bullet-list
90
-
91
-
92
-
93
-
94
-
95
- # [2.0.0-beta.5](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-beta.4...@tiptap/extension-bullet-list@2.0.0-beta.5) (2021-04-22)
96
-
97
- **Note:** Version bump only for package @tiptap/extension-bullet-list
98
-
99
-
100
-
101
-
102
-
103
- # [2.0.0-beta.4](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-beta.3...@tiptap/extension-bullet-list@2.0.0-beta.4) (2021-04-21)
104
-
105
- **Note:** Version bump only for package @tiptap/extension-bullet-list
106
-
107
-
108
-
109
-
110
-
111
- # [2.0.0-beta.3](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-beta.2...@tiptap/extension-bullet-list@2.0.0-beta.3) (2021-04-16)
112
-
113
- **Note:** Version bump only for package @tiptap/extension-bullet-list
114
-
115
-
116
-
117
-
118
-
119
- # [2.0.0-beta.2](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-beta.1...@tiptap/extension-bullet-list@2.0.0-beta.2) (2021-04-15)
120
-
121
- **Note:** Version bump only for package @tiptap/extension-bullet-list
122
-
123
-
124
-
125
-
126
-
127
- # [2.0.0-beta.1](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-alpha.11...@tiptap/extension-bullet-list@2.0.0-beta.1) (2021-03-05)
128
-
129
- **Note:** Version bump only for package @tiptap/extension-bullet-list
130
-
131
-
132
-
133
-
134
-
135
- # [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-alpha.10...@tiptap/extension-bullet-list@2.0.0-alpha.11) (2021-02-16)
136
-
137
- **Note:** Version bump only for package @tiptap/extension-bullet-list
138
-
139
-
140
-
141
-
142
-
143
- # [2.0.0-alpha.10](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-alpha.9...@tiptap/extension-bullet-list@2.0.0-alpha.10) (2021-02-07)
144
-
145
- **Note:** Version bump only for package @tiptap/extension-bullet-list
146
-
147
-
148
-
149
-
150
-
151
- # [2.0.0-alpha.9](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-alpha.8...@tiptap/extension-bullet-list@2.0.0-alpha.9) (2021-02-05)
152
-
153
- **Note:** Version bump only for package @tiptap/extension-bullet-list
154
-
155
-
156
-
157
-
158
-
159
- # [2.0.0-alpha.8](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-alpha.7...@tiptap/extension-bullet-list@2.0.0-alpha.8) (2021-01-29)
160
-
161
- **Note:** Version bump only for package @tiptap/extension-bullet-list
162
-
163
-
164
-
165
-
166
-
167
- # [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-alpha.6...@tiptap/extension-bullet-list@2.0.0-alpha.7) (2021-01-29)
168
-
169
- **Note:** Version bump only for package @tiptap/extension-bullet-list
170
-
171
-
172
-
173
-
174
-
175
- # [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-alpha.5...@tiptap/extension-bullet-list@2.0.0-alpha.6) (2021-01-28)
176
-
177
- **Note:** Version bump only for package @tiptap/extension-bullet-list
178
-
179
-
180
-
181
-
182
-
183
- # [2.0.0-alpha.5](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-alpha.4...@tiptap/extension-bullet-list@2.0.0-alpha.5) (2020-12-18)
184
-
185
- **Note:** Version bump only for package @tiptap/extension-bullet-list
186
-
187
-
188
-
189
-
190
-
191
- # [2.0.0-alpha.4](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-alpha.3...@tiptap/extension-bullet-list@2.0.0-alpha.4) (2020-12-02)
192
-
193
- **Note:** Version bump only for package @tiptap/extension-bullet-list
194
-
195
-
196
-
197
-
198
-
199
- # [2.0.0-alpha.3](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-alpha.2...@tiptap/extension-bullet-list@2.0.0-alpha.3) (2020-11-19)
200
-
201
- **Note:** Version bump only for package @tiptap/extension-bullet-list
202
-
203
-
204
-
205
-
206
-
207
- # [2.0.0-alpha.2](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@2.0.0-alpha.1...@tiptap/extension-bullet-list@2.0.0-alpha.2) (2020-11-19)
208
-
209
- **Note:** Version bump only for package @tiptap/extension-bullet-list
210
-
211
-
212
-
213
-
214
-
215
- # [2.0.0-alpha.1](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@1.0.0-alpha.2...@tiptap/extension-bullet-list@2.0.0-alpha.1) (2020-11-18)
216
-
217
- **Note:** Version bump only for package @tiptap/extension-bullet-list
218
-
219
-
220
-
221
-
222
-
223
- # [1.0.0-alpha.2](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-bullet-list@1.0.0-alpha.1...@tiptap/extension-bullet-list@1.0.0-alpha.2) (2020-11-16)
224
-
225
- **Note:** Version bump only for package @tiptap/extension-bullet-list
226
-
227
-
228
-
229
-
230
-
231
- # 1.0.0-alpha.1 (2020-11-16)
232
-
233
-
234
- ### Reverts
235
-
236
- * Revert "use global namespace" ([0c9ce26](https://github.com/ueberdosis/tiptap/commit/0c9ce26c02c07d88a757c01b0a9d7f9e2b0b7502))