@tiptap/extension-table-row 2.0.0-beta.2 → 2.0.0-beta.22
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 +1 -1
- package/README.md +2 -2
- package/dist/packages/extension-table-row/src/table-row.d.ts +2 -4
- package/dist/tiptap-extension-table-row.cjs.js +5 -3
- package/dist/tiptap-extension-table-row.cjs.js.map +1 -1
- package/dist/tiptap-extension-table-row.esm.js +5 -4
- package/dist/tiptap-extension-table-row.esm.js.map +1 -1
- package/dist/tiptap-extension-table-row.umd.js +8 -6
- package/dist/tiptap-extension-table-row.umd.js.map +1 -1
- package/package.json +7 -3
- package/src/table-row.ts +6 -6
- package/CHANGELOG.md +0 -64
- package/dist/tiptap-extension-table-row.bundle.umd.min.js +0 -2
- package/dist/tiptap-extension-table-row.bundle.umd.min.js.map +0 -1
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
## Introduction
|
|
8
8
|
tiptap is a headless wrapper around [ProseMirror](https://ProseMirror.net) – a toolkit for building rich text WYSIWYG editors, which is already in use at many well-known companies such as *New York Times*, *The Guardian* or *Atlassian*.
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Official Documentation
|
|
11
11
|
Documentation can be found on the [tiptap website](https://tiptap.dev).
|
|
12
12
|
|
|
13
13
|
## License
|
|
14
|
-
tiptap is open sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap
|
|
14
|
+
tiptap is open sourced software licensed under the [MIT license](https://github.com/ueberdosis/tiptap/blob/main/LICENSE.md).
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Node } from '@tiptap/core';
|
|
2
2
|
export interface TableRowOptions {
|
|
3
|
-
HTMLAttributes:
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
};
|
|
3
|
+
HTMLAttributes: Record<string, any>;
|
|
6
4
|
}
|
|
7
|
-
export declare const TableRow: Node<TableRowOptions>;
|
|
5
|
+
export declare const TableRow: Node<TableRowOptions, any>;
|
|
@@ -6,8 +6,10 @@ var core = require('@tiptap/core');
|
|
|
6
6
|
|
|
7
7
|
const TableRow = core.Node.create({
|
|
8
8
|
name: 'tableRow',
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
addOptions() {
|
|
10
|
+
return {
|
|
11
|
+
HTMLAttributes: {},
|
|
12
|
+
};
|
|
11
13
|
},
|
|
12
14
|
content: '(tableCell | tableHeader)*',
|
|
13
15
|
tableRole: 'row',
|
|
@@ -22,5 +24,5 @@ const TableRow = core.Node.create({
|
|
|
22
24
|
});
|
|
23
25
|
|
|
24
26
|
exports.TableRow = TableRow;
|
|
25
|
-
exports
|
|
27
|
+
exports["default"] = TableRow;
|
|
26
28
|
//# sourceMappingURL=tiptap-extension-table-row.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tiptap-extension-table-row.cjs.js","sources":["../src/table-row.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"tiptap-extension-table-row.cjs.js","sources":["../src/table-row.ts"],"sourcesContent":["import { mergeAttributes, Node } from '@tiptap/core'\n\nexport interface TableRowOptions {\n HTMLAttributes: Record<string, any>,\n}\n\nexport const TableRow = Node.create<TableRowOptions>({\n name: 'tableRow',\n\n addOptions() {\n return {\n HTMLAttributes: {},\n }\n },\n\n content: '(tableCell | tableHeader)*',\n\n tableRole: 'row',\n\n parseHTML() {\n return [\n { tag: 'tr' },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['tr', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\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,4BAA4B;AAErC,IAAA,SAAS,EAAE,KAAK;IAEhB,SAAS,GAAA;QACP,OAAO;YACL,EAAE,GAAG,EAAE,IAAI,EAAE;SACd,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;AACF,CAAA;;;;;"}
|
|
@@ -2,8 +2,10 @@ import { Node, mergeAttributes } from '@tiptap/core';
|
|
|
2
2
|
|
|
3
3
|
const TableRow = Node.create({
|
|
4
4
|
name: 'tableRow',
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
addOptions() {
|
|
6
|
+
return {
|
|
7
|
+
HTMLAttributes: {},
|
|
8
|
+
};
|
|
7
9
|
},
|
|
8
10
|
content: '(tableCell | tableHeader)*',
|
|
9
11
|
tableRole: 'row',
|
|
@@ -17,6 +19,5 @@ const TableRow = Node.create({
|
|
|
17
19
|
},
|
|
18
20
|
});
|
|
19
21
|
|
|
20
|
-
export default
|
|
21
|
-
export { TableRow };
|
|
22
|
+
export { TableRow, TableRow as default };
|
|
22
23
|
//# sourceMappingURL=tiptap-extension-table-row.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tiptap-extension-table-row.esm.js","sources":["../src/table-row.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"tiptap-extension-table-row.esm.js","sources":["../src/table-row.ts"],"sourcesContent":["import { mergeAttributes, Node } from '@tiptap/core'\n\nexport interface TableRowOptions {\n HTMLAttributes: Record<string, any>,\n}\n\nexport const TableRow = Node.create<TableRowOptions>({\n name: 'tableRow',\n\n addOptions() {\n return {\n HTMLAttributes: {},\n }\n },\n\n content: '(tableCell | tableHeader)*',\n\n tableRole: 'row',\n\n parseHTML() {\n return [\n { tag: 'tr' },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['tr', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\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,4BAA4B;AAErC,IAAA,SAAS,EAAE,KAAK;IAEhB,SAAS,GAAA;QACP,OAAO;YACL,EAAE,GAAG,EAAE,IAAI,EAAE;SACd,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;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[
|
|
5
|
-
}(this, (function (exports, core) { 'use strict';
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@tiptap/extension-table-row"] = {}, global.core));
|
|
5
|
+
})(this, (function (exports, core) { 'use strict';
|
|
6
6
|
|
|
7
7
|
const TableRow = core.Node.create({
|
|
8
8
|
name: 'tableRow',
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
addOptions() {
|
|
10
|
+
return {
|
|
11
|
+
HTMLAttributes: {},
|
|
12
|
+
};
|
|
11
13
|
},
|
|
12
14
|
content: '(tableCell | tableHeader)*',
|
|
13
15
|
tableRole: 'row',
|
|
@@ -22,9 +24,9 @@
|
|
|
22
24
|
});
|
|
23
25
|
|
|
24
26
|
exports.TableRow = TableRow;
|
|
25
|
-
exports
|
|
27
|
+
exports["default"] = TableRow;
|
|
26
28
|
|
|
27
29
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
28
30
|
|
|
29
|
-
}))
|
|
31
|
+
}));
|
|
30
32
|
//# sourceMappingURL=tiptap-extension-table-row.umd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tiptap-extension-table-row.umd.js","sources":["../src/table-row.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"tiptap-extension-table-row.umd.js","sources":["../src/table-row.ts"],"sourcesContent":["import { mergeAttributes, Node } from '@tiptap/core'\n\nexport interface TableRowOptions {\n HTMLAttributes: Record<string, any>,\n}\n\nexport const TableRow = Node.create<TableRowOptions>({\n name: 'tableRow',\n\n addOptions() {\n return {\n HTMLAttributes: {},\n }\n },\n\n content: '(tableCell | tableHeader)*',\n\n tableRole: 'row',\n\n parseHTML() {\n return [\n { tag: 'tr' },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['tr', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\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,4BAA4B;EAErC,IAAA,SAAS,EAAE,KAAK;MAEhB,SAAS,GAAA;UACP,OAAO;cACL,EAAE,GAAG,EAAE,IAAI,EAAE;WACd,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;EACF,CAAA;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiptap/extension-table-row",
|
|
3
3
|
"description": "table row extension for tiptap",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.22",
|
|
5
5
|
"homepage": "https://tiptap.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tiptap",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"main": "dist/tiptap-extension-table-row.cjs.js",
|
|
16
16
|
"umd": "dist/tiptap-extension-table-row.umd.js",
|
|
17
17
|
"module": "dist/tiptap-extension-table-row.esm.js",
|
|
18
|
-
"unpkg": "dist/tiptap-extension-table-row.bundle.umd.min.js",
|
|
19
18
|
"types": "dist/packages/extension-table-row/src/index.d.ts",
|
|
20
19
|
"files": [
|
|
21
20
|
"src",
|
|
@@ -24,5 +23,10 @@
|
|
|
24
23
|
"peerDependencies": {
|
|
25
24
|
"@tiptap/core": "^2.0.0-beta.1"
|
|
26
25
|
},
|
|
27
|
-
"
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "https://github.com/ueberdosis/tiptap",
|
|
29
|
+
"directory": "packages/extension-table-row"
|
|
30
|
+
},
|
|
31
|
+
"gitHead": "591c0807a2ab5c34b4b7fe12c12511fe4f493ebd"
|
|
28
32
|
}
|
package/src/table-row.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mergeAttributes, Node } from '@tiptap/core'
|
|
2
2
|
|
|
3
3
|
export interface TableRowOptions {
|
|
4
|
-
HTMLAttributes:
|
|
5
|
-
[key: string]: any
|
|
6
|
-
},
|
|
4
|
+
HTMLAttributes: Record<string, any>,
|
|
7
5
|
}
|
|
8
6
|
|
|
9
7
|
export const TableRow = Node.create<TableRowOptions>({
|
|
10
8
|
name: 'tableRow',
|
|
11
9
|
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
addOptions() {
|
|
11
|
+
return {
|
|
12
|
+
HTMLAttributes: {},
|
|
13
|
+
}
|
|
14
14
|
},
|
|
15
15
|
|
|
16
16
|
content: '(tableCell | tableHeader)*',
|
package/CHANGELOG.md
DELETED
|
@@ -1,64 +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.2](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table-row@2.0.0-beta.1...@tiptap/extension-table-row@2.0.0-beta.2) (2021-04-15)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @tiptap/extension-table-row
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# [2.0.0-beta.1](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table-row@2.0.0-alpha.11...@tiptap/extension-table-row@2.0.0-beta.1) (2021-03-05)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @tiptap/extension-table-row
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
# [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table-row@2.0.0-alpha.10...@tiptap/extension-table-row@2.0.0-alpha.11) (2021-02-16)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @tiptap/extension-table-row
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
# [2.0.0-alpha.10](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table-row@2.0.0-alpha.9...@tiptap/extension-table-row@2.0.0-alpha.10) (2021-02-07)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @tiptap/extension-table-row
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
# [2.0.0-alpha.9](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table-row@2.0.0-alpha.8...@tiptap/extension-table-row@2.0.0-alpha.9) (2021-02-05)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @tiptap/extension-table-row
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
# [2.0.0-alpha.8](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table-row@2.0.0-alpha.7...@tiptap/extension-table-row@2.0.0-alpha.8) (2021-01-29)
|
|
47
|
-
|
|
48
|
-
**Note:** Version bump only for package @tiptap/extension-table-row
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
# [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/extension-table-row@2.0.0-alpha.6...@tiptap/extension-table-row@2.0.0-alpha.7) (2021-01-29)
|
|
55
|
-
|
|
56
|
-
**Note:** Version bump only for package @tiptap/extension-table-row
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
# 2.0.0-alpha.6 (2021-01-28)
|
|
63
|
-
|
|
64
|
-
**Note:** Version bump only for package @tiptap/extension-table-row
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@tiptap/core")):"function"==typeof define&&define.amd?define(["exports","@tiptap/core"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["@tiptap/extension-table-row"]={},e["@tiptap/core"])}(this,(function(e,t){"use strict";const o=t.Node.create({name:"tableRow",defaultOptions:{HTMLAttributes:{}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:e}){return["tr",t.mergeAttributes(this.options.HTMLAttributes,e),0]}});e.TableRow=o,e.default=o,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
|
-
//# sourceMappingURL=tiptap-extension-table-row.bundle.umd.min.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tiptap-extension-table-row.bundle.umd.min.js","sources":["../src/table-row.ts"],"sourcesContent":["import { Node, mergeAttributes } from '@tiptap/core'\n\nexport interface TableRowOptions {\n HTMLAttributes: {\n [key: string]: any\n },\n}\n\nexport const TableRow = Node.create<TableRowOptions>({\n name: 'tableRow',\n\n defaultOptions: {\n HTMLAttributes: {},\n },\n\n content: '(tableCell | tableHeader)*',\n\n tableRole: 'row',\n\n parseHTML() {\n return [\n { tag: 'tr' },\n ]\n },\n\n renderHTML({ HTMLAttributes }) {\n return ['tr', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0]\n },\n})\n"],"names":["TableRow","Node","create","name","defaultOptions","HTMLAttributes","content","tableRole","parseHTML","tag","[object Object]","mergeAttributes","this","options"],"mappings":"uUAQaA,EAAWC,OAAKC,OAAwB,CACnDC,KAAM,WAENC,eAAgB,CACdC,eAAgB,IAGlBC,QAAS,6BAETC,UAAW,MAEXC,UAAS,IACA,CACL,CAAEC,IAAK,OAIXC,YAAWL,eAAEA,IACX,MAAO,CAAC,KAAMM,kBAAgBC,KAAKC,QAAQR,eAAgBA,GAAiB"}
|