@tiptap/extension-table-row 2.0.0-beta.212 → 2.0.0-beta.214

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 CHANGED
@@ -1,27 +1,28 @@
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
- });
1
+ 'use strict';
21
2
 
22
- // src/index.ts
23
- var src_default = TableRow;
3
+ Object.defineProperty(exports, '__esModule', { value: true });
24
4
 
5
+ var core = require('@tiptap/core');
25
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
+ });
26
25
 
27
- exports.TableRow = TableRow; exports.default = src_default;
26
+ exports.TableRow = TableRow;
27
+ exports["default"] = TableRow;
28
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.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;;;;;"}
package/dist/index.js CHANGED
@@ -1,27 +1,23 @@
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
- }
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
20
  });
21
21
 
22
- // src/index.ts
23
- var src_default = TableRow;
24
- export {
25
- TableRow,
26
- src_default as default
27
- };
22
+ export { TableRow, TableRow as default };
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.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=index.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.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;;;;;;;;;;;"}
@@ -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>;
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.212",
4
+ "version": "2.0.0-beta.214",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -15,14 +15,15 @@
15
15
  "type": "module",
16
16
  "exports": {
17
17
  ".": {
18
- "types": "./dist/index.d.ts",
18
+ "types": "./dist/packages/extension-table-row/src/index.d.ts",
19
19
  "import": "./dist/index.js",
20
20
  "require": "./dist/index.cjs"
21
21
  }
22
22
  },
23
23
  "main": "dist/index.cjs",
24
24
  "module": "dist/index.js",
25
- "types": "dist/index.d.ts",
25
+ "umd": "dist/index.umd.js",
26
+ "types": "dist/packages/extension-table-row/src/index.d.ts",
26
27
  "files": [
27
28
  "src",
28
29
  "dist"
@@ -31,7 +32,7 @@
31
32
  "@tiptap/core": "^2.0.0-beta.209"
32
33
  },
33
34
  "devDependencies": {
34
- "@tiptap/core": "^2.0.0-beta.212"
35
+ "@tiptap/core": "^2.0.0-beta.214"
35
36
  },
36
37
  "repository": {
37
38
  "type": "git",
@@ -39,17 +40,7 @@
39
40
  "directory": "packages/extension-table-row"
40
41
  },
41
42
  "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
- ]
43
+ "clean": "rm -rf dist",
44
+ "build": "npm run clean && rollup -c"
54
45
  }
55
46
  }
package/dist/index.d.ts DELETED
@@ -1,8 +0,0 @@
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 };