@tiptap/extension-table-row 2.0.0-beta.209 → 2.0.0-beta.211

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/dist/index.cjs ADDED
@@ -0,0 +1,27 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/table-row.ts
2
+ var _core = require('@tiptap/core');
3
+ var TableRow = _core.Node.create({
4
+ name: "tableRow",
5
+ addOptions() {
6
+ return {
7
+ HTMLAttributes: {}
8
+ };
9
+ },
10
+ content: "(tableCell | tableHeader)*",
11
+ tableRole: "row",
12
+ parseHTML() {
13
+ return [
14
+ { tag: "tr" }
15
+ ];
16
+ },
17
+ renderHTML({ HTMLAttributes }) {
18
+ return ["tr", _core.mergeAttributes.call(void 0, this.options.HTMLAttributes, HTMLAttributes), 0];
19
+ }
20
+ });
21
+
22
+ // src/index.ts
23
+ var src_default = TableRow;
24
+
25
+
26
+
27
+ exports.TableRow = TableRow; exports.default = src_default;
@@ -0,0 +1,8 @@
1
+ import { Node } from '@tiptap/core';
2
+
3
+ interface TableRowOptions {
4
+ HTMLAttributes: Record<string, any>;
5
+ }
6
+ declare const TableRow: Node<TableRowOptions, any>;
7
+
8
+ export { TableRow, TableRowOptions, TableRow as default };
package/dist/index.js ADDED
@@ -0,0 +1,27 @@
1
+ // src/table-row.ts
2
+ import { mergeAttributes, Node } from "@tiptap/core";
3
+ var TableRow = Node.create({
4
+ name: "tableRow",
5
+ addOptions() {
6
+ return {
7
+ HTMLAttributes: {}
8
+ };
9
+ },
10
+ content: "(tableCell | tableHeader)*",
11
+ tableRole: "row",
12
+ parseHTML() {
13
+ return [
14
+ { tag: "tr" }
15
+ ];
16
+ },
17
+ renderHTML({ HTMLAttributes }) {
18
+ return ["tr", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
19
+ }
20
+ });
21
+
22
+ // src/index.ts
23
+ var src_default = TableRow;
24
+ export {
25
+ TableRow,
26
+ src_default as default
27
+ };
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.209",
4
+ "version": "2.0.0-beta.211",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -15,28 +15,41 @@
15
15
  "type": "module",
16
16
  "exports": {
17
17
  ".": {
18
- "types": "./dist/packages/extension-table-row/src/index.d.ts",
19
- "import": "./dist/tiptap-extension-table-row.esm.js",
20
- "require": "./dist/tiptap-extension-table-row.cjs"
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js",
20
+ "require": "./dist/index.cjs"
21
21
  }
22
22
  },
23
- "main": "dist/tiptap-extension-table-row.cjs",
24
- "umd": "dist/tiptap-extension-table-row.umd.js",
25
- "module": "dist/tiptap-extension-table-row.esm.js",
26
- "types": "dist/packages/extension-table-row/src/index.d.ts",
23
+ "main": "dist/index.cjs",
24
+ "module": "dist/index.js",
25
+ "types": "dist/index.d.ts",
27
26
  "files": [
28
27
  "src",
29
28
  "dist"
30
29
  ],
31
30
  "peerDependencies": {
32
- "@tiptap/core": "^2.0.0-beta.193"
31
+ "@tiptap/core": "^2.0.0-beta.209"
33
32
  },
34
33
  "devDependencies": {
35
- "@tiptap/core": "^2.0.0-beta.209"
34
+ "@tiptap/core": "^2.0.0-beta.211"
36
35
  },
37
36
  "repository": {
38
37
  "type": "git",
39
38
  "url": "https://github.com/ueberdosis/tiptap",
40
39
  "directory": "packages/extension-table-row"
40
+ },
41
+ "scripts": {
42
+ "build": "tsup"
43
+ },
44
+ "tsup": {
45
+ "entry": [
46
+ "src/index.ts"
47
+ ],
48
+ "dts": true,
49
+ "splitting": true,
50
+ "format": [
51
+ "esm",
52
+ "cjs"
53
+ ]
41
54
  }
42
55
  }
@@ -1,3 +0,0 @@
1
- import { TableRow } from './table-row';
2
- export * from './table-row';
3
- export default TableRow;
@@ -1,5 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
- export interface TableRowOptions {
3
- HTMLAttributes: Record<string, any>;
4
- }
5
- export declare const TableRow: Node<TableRowOptions, any>;
@@ -1,28 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var core = require('@tiptap/core');
6
-
7
- const TableRow = core.Node.create({
8
- name: 'tableRow',
9
- addOptions() {
10
- return {
11
- HTMLAttributes: {},
12
- };
13
- },
14
- content: '(tableCell | tableHeader)*',
15
- tableRole: 'row',
16
- parseHTML() {
17
- return [
18
- { tag: 'tr' },
19
- ];
20
- },
21
- renderHTML({ HTMLAttributes }) {
22
- return ['tr', core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
23
- },
24
- });
25
-
26
- exports.TableRow = TableRow;
27
- exports["default"] = TableRow;
28
- //# sourceMappingURL=tiptap-extension-table-row.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tiptap-extension-table-row.cjs","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;;;;;"}
@@ -1,23 +0,0 @@
1
- import { Node, mergeAttributes } from '@tiptap/core';
2
-
3
- const TableRow = Node.create({
4
- name: 'tableRow',
5
- addOptions() {
6
- return {
7
- HTMLAttributes: {},
8
- };
9
- },
10
- content: '(tableCell | tableHeader)*',
11
- tableRole: 'row',
12
- parseHTML() {
13
- return [
14
- { tag: 'tr' },
15
- ];
16
- },
17
- renderHTML({ HTMLAttributes }) {
18
- return ['tr', mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
19
- },
20
- });
21
-
22
- export { TableRow, TableRow as default };
23
- //# sourceMappingURL=tiptap-extension-table-row.esm.js.map
@@ -1 +0,0 @@
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,32 +0,0 @@
1
- (function (global, factory) {
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-table-row"] = {}, global.core));
5
- })(this, (function (exports, core) { 'use strict';
6
-
7
- const TableRow = core.Node.create({
8
- name: 'tableRow',
9
- addOptions() {
10
- return {
11
- HTMLAttributes: {},
12
- };
13
- },
14
- content: '(tableCell | tableHeader)*',
15
- tableRole: 'row',
16
- parseHTML() {
17
- return [
18
- { tag: 'tr' },
19
- ];
20
- },
21
- renderHTML({ HTMLAttributes }) {
22
- return ['tr', core.mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
23
- },
24
- });
25
-
26
- exports.TableRow = TableRow;
27
- exports["default"] = TableRow;
28
-
29
- Object.defineProperty(exports, '__esModule', { value: true });
30
-
31
- }));
32
- //# sourceMappingURL=tiptap-extension-table-row.umd.js.map
@@ -1 +0,0 @@
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;;;;;;;;;;;"}