@tiptap/extension-table-row 2.0.0-beta.18 → 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.
@@ -0,0 +1,3 @@
1
+ import { TableRow } from './table-row';
2
+ export * from './table-row';
3
+ export default TableRow;
@@ -0,0 +1,5 @@
1
+ import { Node } from '@tiptap/core';
2
+ export interface TableRowOptions {
3
+ HTMLAttributes: Record<string, any>;
4
+ }
5
+ export declare const TableRow: Node<TableRowOptions, any>;
@@ -0,0 +1,28 @@
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.js.map
@@ -0,0 +1 @@
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;;;;;"}
@@ -0,0 +1,23 @@
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
@@ -0,0 +1 @@
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;;;;"}
@@ -0,0 +1,32 @@
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
@@ -0,0 +1 @@
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.18",
4
+ "version": "2.0.0-beta.22",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -28,5 +28,5 @@
28
28
  "url": "https://github.com/ueberdosis/tiptap",
29
29
  "directory": "packages/extension-table-row"
30
30
  },
31
- "gitHead": "fce16e805824972834d5a8ce8d60e3ff41d63c7e"
31
+ "gitHead": "591c0807a2ab5c34b4b7fe12c12511fe4f493ebd"
32
32
  }
package/src/table-row.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 TableRowOptions {
4
4
  HTMLAttributes: Record<string, any>,