@tiptap/extension-list-item 2.0.0-beta.8 → 2.0.0-rc.1

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
@@ -5,10 +5,10 @@
5
5
  [![Sponsor](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub)](https://github.com/sponsors/ueberdosis)
6
6
 
7
7
  ## Introduction
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*.
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
11
- Documentation can be found on the [tiptap website](https://tiptap.dev).
10
+ ## Official Documentation
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/blob/main/LICENSE.md).
14
+ Tiptap is open sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap/blob/main/LICENSE.md).
@@ -6,8 +6,10 @@ var core = require('@tiptap/core');
6
6
 
7
7
  const ListItem = core.Node.create({
8
8
  name: 'listItem',
9
- defaultOptions: {
10
- HTMLAttributes: {},
9
+ addOptions() {
10
+ return {
11
+ HTMLAttributes: {},
12
+ };
11
13
  },
12
14
  content: 'paragraph block*',
13
15
  defining: true,
@@ -23,13 +25,13 @@ const ListItem = core.Node.create({
23
25
  },
24
26
  addKeyboardShortcuts() {
25
27
  return {
26
- Enter: () => this.editor.commands.splitListItem('listItem'),
27
- Tab: () => this.editor.commands.sinkListItem('listItem'),
28
- 'Shift-Tab': () => this.editor.commands.liftListItem('listItem'),
28
+ Enter: () => this.editor.commands.splitListItem(this.name),
29
+ Tab: () => this.editor.commands.sinkListItem(this.name),
30
+ 'Shift-Tab': () => this.editor.commands.liftListItem(this.name),
29
31
  };
30
32
  },
31
33
  });
32
34
 
33
35
  exports.ListItem = ListItem;
34
- exports.default = ListItem;
35
- //# sourceMappingURL=tiptap-extension-list-item.cjs.js.map
36
+ exports["default"] = ListItem;
37
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../src/list-item.ts"],"sourcesContent":["import { mergeAttributes, Node } from '@tiptap/core'\n\nexport interface ListItemOptions {\n HTMLAttributes: Record<string, any>,\n}\n\nexport const ListItem = Node.create<ListItemOptions>({\n name: 'listItem',\n\n addOptions() {\n return {\n HTMLAttributes: {},\n }\n },\n\n content: 'paragraph block*',\n\n defining: true,\n\n parseHTML() {\n return [\n {\n tag: 'li',\n },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['li', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n addKeyboardShortcuts() {\n return {\n Enter: () => this.editor.commands.splitListItem(this.name),\n Tab: () => this.editor.commands.sinkListItem(this.name),\n 'Shift-Tab': () => this.editor.commands.liftListItem(this.name),\n }\n },\n})\n"],"names":["Node","mergeAttributes"],"mappings":";;;;;;AAMa,MAAA,QAAQ,GAAGA,SAAI,CAAC,MAAM,CAAkB;AACnD,IAAA,IAAI,EAAE,UAAU;IAEhB,UAAU,GAAA;QACR,OAAO;AACL,YAAA,cAAc,EAAE,EAAE;SACnB,CAAA;KACF;AAED,IAAA,OAAO,EAAE,kBAAkB;AAE3B,IAAA,QAAQ,EAAE,IAAI;IAEd,SAAS,GAAA;QACP,OAAO;AACL,YAAA;AACE,gBAAA,GAAG,EAAE,IAAI;AACV,aAAA;SACF,CAAA;KACF;IAED,UAAU,CAAC,EAAE,cAAc,EAAE,EAAA;AAC3B,QAAA,OAAO,CAAC,IAAI,EAAEC,oBAAe,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC,CAAA;KAC/E;IAED,oBAAoB,GAAA;QAClB,OAAO;AACL,YAAA,KAAK,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;AAC1D,YAAA,GAAG,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;AACvD,YAAA,WAAW,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;SAChE,CAAA;KACF;AACF,CAAA;;;;;"}
@@ -2,8 +2,10 @@ import { Node, mergeAttributes } from '@tiptap/core';
2
2
 
3
3
  const ListItem = Node.create({
4
4
  name: 'listItem',
5
- defaultOptions: {
6
- HTMLAttributes: {},
5
+ addOptions() {
6
+ return {
7
+ HTMLAttributes: {},
8
+ };
7
9
  },
8
10
  content: 'paragraph block*',
9
11
  defining: true,
@@ -19,13 +21,12 @@ const ListItem = Node.create({
19
21
  },
20
22
  addKeyboardShortcuts() {
21
23
  return {
22
- Enter: () => this.editor.commands.splitListItem('listItem'),
23
- Tab: () => this.editor.commands.sinkListItem('listItem'),
24
- 'Shift-Tab': () => this.editor.commands.liftListItem('listItem'),
24
+ Enter: () => this.editor.commands.splitListItem(this.name),
25
+ Tab: () => this.editor.commands.sinkListItem(this.name),
26
+ 'Shift-Tab': () => this.editor.commands.liftListItem(this.name),
25
27
  };
26
28
  },
27
29
  });
28
30
 
29
- export default ListItem;
30
- export { ListItem };
31
- //# sourceMappingURL=tiptap-extension-list-item.esm.js.map
31
+ export { ListItem, ListItem as default };
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/list-item.ts"],"sourcesContent":["import { mergeAttributes, Node } from '@tiptap/core'\n\nexport interface ListItemOptions {\n HTMLAttributes: Record<string, any>,\n}\n\nexport const ListItem = Node.create<ListItemOptions>({\n name: 'listItem',\n\n addOptions() {\n return {\n HTMLAttributes: {},\n }\n },\n\n content: 'paragraph block*',\n\n defining: true,\n\n parseHTML() {\n return [\n {\n tag: 'li',\n },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['li', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n addKeyboardShortcuts() {\n return {\n Enter: () => this.editor.commands.splitListItem(this.name),\n Tab: () => this.editor.commands.sinkListItem(this.name),\n 'Shift-Tab': () => this.editor.commands.liftListItem(this.name),\n }\n },\n})\n"],"names":[],"mappings":";;AAMa,MAAA,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAkB;AACnD,IAAA,IAAI,EAAE,UAAU;IAEhB,UAAU,GAAA;QACR,OAAO;AACL,YAAA,cAAc,EAAE,EAAE;SACnB,CAAA;KACF;AAED,IAAA,OAAO,EAAE,kBAAkB;AAE3B,IAAA,QAAQ,EAAE,IAAI;IAEd,SAAS,GAAA;QACP,OAAO;AACL,YAAA;AACE,gBAAA,GAAG,EAAE,IAAI;AACV,aAAA;SACF,CAAA;KACF;IAED,UAAU,CAAC,EAAE,cAAc,EAAE,EAAA;AAC3B,QAAA,OAAO,CAAC,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC,CAAA;KAC/E;IAED,oBAAoB,GAAA;QAClB,OAAO;AACL,YAAA,KAAK,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;AAC1D,YAAA,GAAG,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;AACvD,YAAA,WAAW,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;SAChE,CAAA;KACF;AACF,CAAA;;;;"}
@@ -1,13 +1,15 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tiptap/core')) :
3
3
  typeof define === 'function' && define.amd ? define(['exports', '@tiptap/core'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['@tiptap/extension-list-item'] = {}, global.core));
5
- }(this, (function (exports, core) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@tiptap/extension-list-item"] = {}, global.core));
5
+ })(this, (function (exports, core) { 'use strict';
6
6
 
7
7
  const ListItem = core.Node.create({
8
8
  name: 'listItem',
9
- defaultOptions: {
10
- HTMLAttributes: {},
9
+ addOptions() {
10
+ return {
11
+ HTMLAttributes: {},
12
+ };
11
13
  },
12
14
  content: 'paragraph block*',
13
15
  defining: true,
@@ -23,17 +25,17 @@
23
25
  },
24
26
  addKeyboardShortcuts() {
25
27
  return {
26
- Enter: () => this.editor.commands.splitListItem('listItem'),
27
- Tab: () => this.editor.commands.sinkListItem('listItem'),
28
- 'Shift-Tab': () => this.editor.commands.liftListItem('listItem'),
28
+ Enter: () => this.editor.commands.splitListItem(this.name),
29
+ Tab: () => this.editor.commands.sinkListItem(this.name),
30
+ 'Shift-Tab': () => this.editor.commands.liftListItem(this.name),
29
31
  };
30
32
  },
31
33
  });
32
34
 
33
35
  exports.ListItem = ListItem;
34
- exports.default = ListItem;
36
+ exports["default"] = ListItem;
35
37
 
36
38
  Object.defineProperty(exports, '__esModule', { value: true });
37
39
 
38
- })));
39
- //# sourceMappingURL=tiptap-extension-list-item.umd.js.map
40
+ }));
41
+ //# sourceMappingURL=index.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.umd.js","sources":["../src/list-item.ts"],"sourcesContent":["import { mergeAttributes, Node } from '@tiptap/core'\n\nexport interface ListItemOptions {\n HTMLAttributes: Record<string, any>,\n}\n\nexport const ListItem = Node.create<ListItemOptions>({\n name: 'listItem',\n\n addOptions() {\n return {\n HTMLAttributes: {},\n }\n },\n\n content: 'paragraph block*',\n\n defining: true,\n\n parseHTML() {\n return [\n {\n tag: 'li',\n },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['li', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n addKeyboardShortcuts() {\n return {\n Enter: () => this.editor.commands.splitListItem(this.name),\n Tab: () => this.editor.commands.sinkListItem(this.name),\n 'Shift-Tab': () => this.editor.commands.liftListItem(this.name),\n }\n },\n})\n"],"names":["Node","mergeAttributes"],"mappings":";;;;;;AAMa,QAAA,QAAQ,GAAGA,SAAI,CAAC,MAAM,CAAkB;EACnD,IAAA,IAAI,EAAE,UAAU;MAEhB,UAAU,GAAA;UACR,OAAO;EACL,YAAA,cAAc,EAAE,EAAE;WACnB,CAAA;OACF;EAED,IAAA,OAAO,EAAE,kBAAkB;EAE3B,IAAA,QAAQ,EAAE,IAAI;MAEd,SAAS,GAAA;UACP,OAAO;EACL,YAAA;EACE,gBAAA,GAAG,EAAE,IAAI;EACV,aAAA;WACF,CAAA;OACF;MAED,UAAU,CAAC,EAAE,cAAc,EAAE,EAAA;EAC3B,QAAA,OAAO,CAAC,IAAI,EAAEC,oBAAe,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC,CAAA;OAC/E;MAED,oBAAoB,GAAA;UAClB,OAAO;EACL,YAAA,KAAK,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;EAC1D,YAAA,GAAG,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;EACvD,YAAA,WAAW,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;WAChE,CAAA;OACF;EACF,CAAA;;;;;;;;;;;"}
@@ -2,4 +2,4 @@ import { Node } from '@tiptap/core';
2
2
  export interface ListItemOptions {
3
3
  HTMLAttributes: Record<string, any>;
4
4
  }
5
- export declare const ListItem: Node<ListItemOptions>;
5
+ export declare const ListItem: Node<ListItemOptions, any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/extension-list-item",
3
3
  "description": "list item extension for tiptap",
4
- "version": "2.0.0-beta.8",
4
+ "version": "2.0.0-rc.1",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -12,16 +12,35 @@
12
12
  "type": "github",
13
13
  "url": "https://github.com/sponsors/ueberdosis"
14
14
  },
15
- "main": "dist/tiptap-extension-list-item.cjs.js",
16
- "umd": "dist/tiptap-extension-list-item.umd.js",
17
- "module": "dist/tiptap-extension-list-item.esm.js",
15
+ "type": "module",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/packages/extension-list-item/src/index.d.ts",
19
+ "import": "./dist/index.js",
20
+ "require": "./dist/index.cjs"
21
+ }
22
+ },
23
+ "main": "dist/index.cjs",
24
+ "module": "dist/index.js",
25
+ "umd": "dist/index.umd.js",
18
26
  "types": "dist/packages/extension-list-item/src/index.d.ts",
19
27
  "files": [
20
28
  "src",
21
29
  "dist"
22
30
  ],
23
31
  "peerDependencies": {
24
- "@tiptap/core": "^2.0.0-beta.1"
32
+ "@tiptap/core": "2.0.0-rc.1"
33
+ },
34
+ "devDependencies": {
35
+ "@tiptap/core": "2.0.0-rc.1"
36
+ },
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/ueberdosis/tiptap",
40
+ "directory": "packages/extension-list-item"
25
41
  },
26
- "gitHead": "9718002875433e78917976ad7daf0915ecb43c6f"
27
- }
42
+ "scripts": {
43
+ "clean": "rm -rf dist",
44
+ "build": "npm run clean && rollup -c"
45
+ }
46
+ }
package/src/list-item.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Node, mergeAttributes } from '@tiptap/core'
1
+ import { mergeAttributes, Node } from '@tiptap/core'
2
2
 
3
3
  export interface ListItemOptions {
4
4
  HTMLAttributes: Record<string, any>,
@@ -7,8 +7,10 @@ export interface ListItemOptions {
7
7
  export const ListItem = Node.create<ListItemOptions>({
8
8
  name: 'listItem',
9
9
 
10
- defaultOptions: {
11
- HTMLAttributes: {},
10
+ addOptions() {
11
+ return {
12
+ HTMLAttributes: {},
13
+ }
12
14
  },
13
15
 
14
16
  content: 'paragraph block*',
@@ -29,9 +31,9 @@ export const ListItem = Node.create<ListItemOptions>({
29
31
 
30
32
  addKeyboardShortcuts() {
31
33
  return {
32
- Enter: () => this.editor.commands.splitListItem('listItem'),
33
- Tab: () => this.editor.commands.sinkListItem('listItem'),
34
- 'Shift-Tab': () => this.editor.commands.liftListItem('listItem'),
34
+ Enter: () => this.editor.commands.splitListItem(this.name),
35
+ Tab: () => this.editor.commands.sinkListItem(this.name),
36
+ 'Shift-Tab': () => this.editor.commands.liftListItem(this.name),
35
37
  }
36
38
  },
37
39
  })
package/CHANGELOG.md DELETED
@@ -1,171 +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.8](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-beta.7...@tiptap/extension-list-item@2.0.0-beta.8) (2021-05-06)
7
-
8
- **Note:** Version bump only for package @tiptap/extension-list-item
9
-
10
-
11
-
12
-
13
-
14
- # [2.0.0-beta.7](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-beta.6...@tiptap/extension-list-item@2.0.0-beta.7) (2021-05-05)
15
-
16
- **Note:** Version bump only for package @tiptap/extension-list-item
17
-
18
-
19
-
20
-
21
-
22
- # [2.0.0-beta.6](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-beta.5...@tiptap/extension-list-item@2.0.0-beta.6) (2021-04-23)
23
-
24
- **Note:** Version bump only for package @tiptap/extension-list-item
25
-
26
-
27
-
28
-
29
-
30
- # [2.0.0-beta.5](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-beta.4...@tiptap/extension-list-item@2.0.0-beta.5) (2021-04-22)
31
-
32
- **Note:** Version bump only for package @tiptap/extension-list-item
33
-
34
-
35
-
36
-
37
-
38
- # [2.0.0-beta.4](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-beta.3...@tiptap/extension-list-item@2.0.0-beta.4) (2021-04-21)
39
-
40
- **Note:** Version bump only for package @tiptap/extension-list-item
41
-
42
-
43
-
44
-
45
-
46
- # [2.0.0-beta.3](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-beta.2...@tiptap/extension-list-item@2.0.0-beta.3) (2021-04-16)
47
-
48
- **Note:** Version bump only for package @tiptap/extension-list-item
49
-
50
-
51
-
52
-
53
-
54
- # [2.0.0-beta.2](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-beta.1...@tiptap/extension-list-item@2.0.0-beta.2) (2021-04-15)
55
-
56
- **Note:** Version bump only for package @tiptap/extension-list-item
57
-
58
-
59
-
60
-
61
-
62
- # [2.0.0-beta.1](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-alpha.11...@tiptap/extension-list-item@2.0.0-beta.1) (2021-03-05)
63
-
64
- **Note:** Version bump only for package @tiptap/extension-list-item
65
-
66
-
67
-
68
-
69
-
70
- # [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-alpha.10...@tiptap/extension-list-item@2.0.0-alpha.11) (2021-02-16)
71
-
72
- **Note:** Version bump only for package @tiptap/extension-list-item
73
-
74
-
75
-
76
-
77
-
78
- # [2.0.0-alpha.10](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-alpha.9...@tiptap/extension-list-item@2.0.0-alpha.10) (2021-02-07)
79
-
80
- **Note:** Version bump only for package @tiptap/extension-list-item
81
-
82
-
83
-
84
-
85
-
86
- # [2.0.0-alpha.9](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-alpha.8...@tiptap/extension-list-item@2.0.0-alpha.9) (2021-02-05)
87
-
88
- **Note:** Version bump only for package @tiptap/extension-list-item
89
-
90
-
91
-
92
-
93
-
94
- # [2.0.0-alpha.8](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-alpha.7...@tiptap/extension-list-item@2.0.0-alpha.8) (2021-01-29)
95
-
96
- **Note:** Version bump only for package @tiptap/extension-list-item
97
-
98
-
99
-
100
-
101
-
102
- # [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-alpha.6...@tiptap/extension-list-item@2.0.0-alpha.7) (2021-01-29)
103
-
104
- **Note:** Version bump only for package @tiptap/extension-list-item
105
-
106
-
107
-
108
-
109
-
110
- # [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-alpha.5...@tiptap/extension-list-item@2.0.0-alpha.6) (2021-01-28)
111
-
112
- **Note:** Version bump only for package @tiptap/extension-list-item
113
-
114
-
115
-
116
-
117
-
118
- # [2.0.0-alpha.5](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-alpha.4...@tiptap/extension-list-item@2.0.0-alpha.5) (2020-12-18)
119
-
120
- **Note:** Version bump only for package @tiptap/extension-list-item
121
-
122
-
123
-
124
-
125
-
126
- # [2.0.0-alpha.4](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-alpha.3...@tiptap/extension-list-item@2.0.0-alpha.4) (2020-12-02)
127
-
128
- **Note:** Version bump only for package @tiptap/extension-list-item
129
-
130
-
131
-
132
-
133
-
134
- # [2.0.0-alpha.3](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-alpha.2...@tiptap/extension-list-item@2.0.0-alpha.3) (2020-11-19)
135
-
136
- **Note:** Version bump only for package @tiptap/extension-list-item
137
-
138
-
139
-
140
-
141
-
142
- # [2.0.0-alpha.2](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@2.0.0-alpha.1...@tiptap/extension-list-item@2.0.0-alpha.2) (2020-11-19)
143
-
144
- **Note:** Version bump only for package @tiptap/extension-list-item
145
-
146
-
147
-
148
-
149
-
150
- # [2.0.0-alpha.1](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@1.0.0-alpha.2...@tiptap/extension-list-item@2.0.0-alpha.1) (2020-11-18)
151
-
152
- **Note:** Version bump only for package @tiptap/extension-list-item
153
-
154
-
155
-
156
-
157
-
158
- # [1.0.0-alpha.2](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-list-item@1.0.0-alpha.1...@tiptap/extension-list-item@1.0.0-alpha.2) (2020-11-16)
159
-
160
- **Note:** Version bump only for package @tiptap/extension-list-item
161
-
162
-
163
-
164
-
165
-
166
- # 1.0.0-alpha.1 (2020-11-16)
167
-
168
-
169
- ### Reverts
170
-
171
- * Revert "use global namespace" ([0c9ce26](https://github.com/ueberdosis/tiptap/commit/0c9ce26c02c07d88a757c01b0a9d7f9e2b0b7502))
package/LICENSE.md DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2021, überdosis GbR
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1 +0,0 @@
1
- {"version":3,"file":"tiptap-extension-list-item.cjs.js","sources":["../src/list-item.ts"],"sourcesContent":["import { Node, mergeAttributes } from '@tiptap/core'\n\nexport interface ListItemOptions {\n HTMLAttributes: Record<string, any>,\n}\n\nexport const ListItem = Node.create<ListItemOptions>({\n name: 'listItem',\n\n defaultOptions: {\n HTMLAttributes: {},\n },\n\n content: 'paragraph block*',\n\n defining: true,\n\n parseHTML() {\n return [\n {\n tag: 'li',\n },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['li', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n addKeyboardShortcuts() {\n return {\n Enter: () => this.editor.commands.splitListItem('listItem'),\n Tab: () => this.editor.commands.sinkListItem('listItem'),\n 'Shift-Tab': () => this.editor.commands.liftListItem('listItem'),\n }\n },\n})\n"],"names":["Node","mergeAttributes"],"mappings":";;;;;;MAMa,QAAQ,GAAGA,SAAI,CAAC,MAAM,CAAkB;IACnD,IAAI,EAAE,UAAU;IAEhB,cAAc,EAAE;QACd,cAAc,EAAE,EAAE;KACnB;IAED,OAAO,EAAE,kBAAkB;IAE3B,QAAQ,EAAE,IAAI;IAEd,SAAS;QACP,OAAO;YACL;gBACE,GAAG,EAAE,IAAI;aACV;SACF,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,oBAAoB;QAClB,OAAO;YACL,KAAK,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC;YAC3D,GAAG,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,UAAU,CAAC;YACxD,WAAW,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,UAAU,CAAC;SACjE,CAAA;KACF;CACF;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tiptap-extension-list-item.esm.js","sources":["../src/list-item.ts"],"sourcesContent":["import { Node, mergeAttributes } from '@tiptap/core'\n\nexport interface ListItemOptions {\n HTMLAttributes: Record<string, any>,\n}\n\nexport const ListItem = Node.create<ListItemOptions>({\n name: 'listItem',\n\n defaultOptions: {\n HTMLAttributes: {},\n },\n\n content: 'paragraph block*',\n\n defining: true,\n\n parseHTML() {\n return [\n {\n tag: 'li',\n },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['li', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n addKeyboardShortcuts() {\n return {\n Enter: () => this.editor.commands.splitListItem('listItem'),\n Tab: () => this.editor.commands.sinkListItem('listItem'),\n 'Shift-Tab': () => this.editor.commands.liftListItem('listItem'),\n }\n },\n})\n"],"names":[],"mappings":";;MAMa,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAkB;IACnD,IAAI,EAAE,UAAU;IAEhB,cAAc,EAAE;QACd,cAAc,EAAE,EAAE;KACnB;IAED,OAAO,EAAE,kBAAkB;IAE3B,QAAQ,EAAE,IAAI;IAEd,SAAS;QACP,OAAO;YACL;gBACE,GAAG,EAAE,IAAI;aACV;SACF,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,oBAAoB;QAClB,OAAO;YACL,KAAK,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC;YAC3D,GAAG,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,UAAU,CAAC;YACxD,WAAW,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,UAAU,CAAC;SACjE,CAAA;KACF;CACF;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tiptap-extension-list-item.umd.js","sources":["../src/list-item.ts"],"sourcesContent":["import { Node, mergeAttributes } from '@tiptap/core'\n\nexport interface ListItemOptions {\n HTMLAttributes: Record<string, any>,\n}\n\nexport const ListItem = Node.create<ListItemOptions>({\n name: 'listItem',\n\n defaultOptions: {\n HTMLAttributes: {},\n },\n\n content: 'paragraph block*',\n\n defining: true,\n\n parseHTML() {\n return [\n {\n tag: 'li',\n },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['li', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n\n addKeyboardShortcuts() {\n return {\n Enter: () => this.editor.commands.splitListItem('listItem'),\n Tab: () => this.editor.commands.sinkListItem('listItem'),\n 'Shift-Tab': () => this.editor.commands.liftListItem('listItem'),\n }\n },\n})\n"],"names":["Node","mergeAttributes"],"mappings":";;;;;;QAMa,QAAQ,GAAGA,SAAI,CAAC,MAAM,CAAkB;MACnD,IAAI,EAAE,UAAU;MAEhB,cAAc,EAAE;UACd,cAAc,EAAE,EAAE;OACnB;MAED,OAAO,EAAE,kBAAkB;MAE3B,QAAQ,EAAE,IAAI;MAEd,SAAS;UACP,OAAO;cACL;kBACE,GAAG,EAAE,IAAI;eACV;WACF,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,oBAAoB;UAClB,OAAO;cACL,KAAK,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC;cAC3D,GAAG,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,UAAU,CAAC;cACxD,WAAW,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,UAAU,CAAC;WACjE,CAAA;OACF;GACF;;;;;;;;;;;"}