@tiptap/extension-table 2.0.0-beta.21 → 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/CHANGELOG.md DELETED
@@ -1,242 +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.21](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.20...@tiptap/extension-table@2.0.0-beta.21) (2021-05-18)
7
-
8
- **Note:** Version bump only for package @tiptap/extension-table
9
-
10
-
11
-
12
-
13
-
14
- # [2.0.0-beta.20](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.19...@tiptap/extension-table@2.0.0-beta.20) (2021-05-17)
15
-
16
- **Note:** Version bump only for package @tiptap/extension-table
17
-
18
-
19
-
20
-
21
-
22
- # [2.0.0-beta.19](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.18...@tiptap/extension-table@2.0.0-beta.19) (2021-05-13)
23
-
24
- **Note:** Version bump only for package @tiptap/extension-table
25
-
26
-
27
-
28
-
29
-
30
- # [2.0.0-beta.18](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.17...@tiptap/extension-table@2.0.0-beta.18) (2021-05-07)
31
-
32
-
33
- ### Bug Fixes
34
-
35
- * revert adding exports ([bc320d0](https://github.com/ueberdosis/tiptap/commit/bc320d0b4b80b0e37a7e47a56e0f6daec6e65d98))
36
-
37
-
38
-
39
-
40
-
41
- # [2.0.0-beta.17](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.16...@tiptap/extension-table@2.0.0-beta.17) (2021-05-06)
42
-
43
-
44
- ### Bug Fixes
45
-
46
- * revert adding type: module ([f8d6475](https://github.com/ueberdosis/tiptap/commit/f8d6475e2151faea6f96baecdd6bd75880d50d2c))
47
-
48
-
49
-
50
-
51
-
52
- # [2.0.0-beta.16](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.15...@tiptap/extension-table@2.0.0-beta.16) (2021-05-06)
53
-
54
-
55
- ### Bug Fixes
56
-
57
- * add exports to package.json ([1277fa4](https://github.com/ueberdosis/tiptap/commit/1277fa47151e9c039508cdb219bdd0ffe647f4ee))
58
-
59
-
60
-
61
-
62
-
63
- # [2.0.0-beta.15](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.14...@tiptap/extension-table@2.0.0-beta.15) (2021-05-06)
64
-
65
- **Note:** Version bump only for package @tiptap/extension-table
66
-
67
-
68
-
69
-
70
-
71
- # [2.0.0-beta.14](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.13...@tiptap/extension-table@2.0.0-beta.14) (2021-05-05)
72
-
73
- **Note:** Version bump only for package @tiptap/extension-table
74
-
75
-
76
-
77
-
78
-
79
- # [2.0.0-beta.13](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.12...@tiptap/extension-table@2.0.0-beta.13) (2021-05-04)
80
-
81
- **Note:** Version bump only for package @tiptap/extension-table
82
-
83
-
84
-
85
-
86
-
87
- # [2.0.0-beta.12](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.11...@tiptap/extension-table@2.0.0-beta.12) (2021-04-27)
88
-
89
-
90
- ### Features
91
-
92
- * add setCellSelection command ([eb7e92f](https://github.com/ueberdosis/tiptap/commit/eb7e92f10aff60e68cae613750903eb0adce5933))
93
-
94
-
95
-
96
-
97
-
98
- # [2.0.0-beta.11](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.10...@tiptap/extension-table@2.0.0-beta.11) (2021-04-23)
99
-
100
- **Note:** Version bump only for package @tiptap/extension-table
101
-
102
-
103
-
104
-
105
-
106
- # [2.0.0-beta.10](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.9...@tiptap/extension-table@2.0.0-beta.10) (2021-04-22)
107
-
108
- **Note:** Version bump only for package @tiptap/extension-table
109
-
110
-
111
-
112
-
113
-
114
- # [2.0.0-beta.9](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.8...@tiptap/extension-table@2.0.0-beta.9) (2021-04-21)
115
-
116
-
117
- ### Bug Fixes
118
-
119
- * add name to context ([a43d4c7](https://github.com/ueberdosis/tiptap/commit/a43d4c7bcb5ba5e386f268a2a71a7449bc2f658e))
120
-
121
-
122
-
123
-
124
-
125
- # [2.0.0-beta.8](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.7...@tiptap/extension-table@2.0.0-beta.8) (2021-04-16)
126
-
127
- **Note:** Version bump only for package @tiptap/extension-table
128
-
129
-
130
-
131
-
132
-
133
- # [2.0.0-beta.7](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.6...@tiptap/extension-table@2.0.0-beta.7) (2021-04-15)
134
-
135
- **Note:** Version bump only for package @tiptap/extension-table
136
-
137
-
138
-
139
-
140
-
141
- # [2.0.0-beta.6](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.5...@tiptap/extension-table@2.0.0-beta.6) (2021-04-12)
142
-
143
-
144
- ### Features
145
-
146
- * add parentConfig to extension context for more extendable extensions, fix [#259](https://github.com/ueberdosis/tiptap/issues/259) ([5e1ec5d](https://github.com/ueberdosis/tiptap/commit/5e1ec5d2a66be164f505d631f97861ab9344ba96))
147
-
148
-
149
-
150
-
151
-
152
- # [2.0.0-beta.5](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.4...@tiptap/extension-table@2.0.0-beta.5) (2021-03-31)
153
-
154
- **Note:** Version bump only for package @tiptap/extension-table
155
-
156
-
157
-
158
-
159
-
160
- # [2.0.0-beta.4](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.3...@tiptap/extension-table@2.0.0-beta.4) (2021-03-28)
161
-
162
- **Note:** Version bump only for package @tiptap/extension-table
163
-
164
-
165
-
166
-
167
-
168
- # [2.0.0-beta.3](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.2...@tiptap/extension-table@2.0.0-beta.3) (2021-03-24)
169
-
170
- **Note:** Version bump only for package @tiptap/extension-table
171
-
172
-
173
-
174
-
175
-
176
- # [2.0.0-beta.2](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-beta.1...@tiptap/extension-table@2.0.0-beta.2) (2021-03-18)
177
-
178
- **Note:** Version bump only for package @tiptap/extension-table
179
-
180
-
181
-
182
-
183
-
184
- # [2.0.0-beta.1](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-alpha.12...@tiptap/extension-table@2.0.0-beta.1) (2021-03-05)
185
-
186
- **Note:** Version bump only for package @tiptap/extension-table
187
-
188
-
189
-
190
-
191
-
192
- # [2.0.0-alpha.12](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-alpha.11...@tiptap/extension-table@2.0.0-alpha.12) (2021-02-26)
193
-
194
- **Note:** Version bump only for package @tiptap/extension-table
195
-
196
-
197
-
198
-
199
-
200
- # [2.0.0-alpha.11](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-alpha.10...@tiptap/extension-table@2.0.0-alpha.11) (2021-02-16)
201
-
202
- **Note:** Version bump only for package @tiptap/extension-table
203
-
204
-
205
-
206
-
207
-
208
- # [2.0.0-alpha.10](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-alpha.9...@tiptap/extension-table@2.0.0-alpha.10) (2021-02-07)
209
-
210
- **Note:** Version bump only for package @tiptap/extension-table
211
-
212
-
213
-
214
-
215
-
216
- # [2.0.0-alpha.9](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-alpha.8...@tiptap/extension-table@2.0.0-alpha.9) (2021-02-05)
217
-
218
- **Note:** Version bump only for package @tiptap/extension-table
219
-
220
-
221
-
222
-
223
-
224
- # [2.0.0-alpha.8](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-alpha.7...@tiptap/extension-table@2.0.0-alpha.8) (2021-01-29)
225
-
226
- **Note:** Version bump only for package @tiptap/extension-table
227
-
228
-
229
-
230
-
231
-
232
- # [2.0.0-alpha.7](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-table@2.0.0-alpha.6...@tiptap/extension-table@2.0.0-alpha.7) (2021-01-29)
233
-
234
- **Note:** Version bump only for package @tiptap/extension-table
235
-
236
-
237
-
238
-
239
-
240
- # 2.0.0-alpha.6 (2021-01-28)
241
-
242
- **Note:** Version bump only for package @tiptap/extension-table
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,17 +0,0 @@
1
- import { NodeView } from 'prosemirror-view';
2
- import { Node as ProseMirrorNode } from 'prosemirror-model';
3
- export declare function updateColumns(node: ProseMirrorNode, colgroup: Element, table: Element, cellMinWidth: number, overrideCol?: number, overrideValue?: any): void;
4
- export declare class TableView implements NodeView {
5
- node: ProseMirrorNode;
6
- cellMinWidth: number;
7
- dom: Element;
8
- table: Element;
9
- colgroup: Element;
10
- contentDOM: Element;
11
- constructor(node: ProseMirrorNode, cellMinWidth: number);
12
- update(node: ProseMirrorNode): boolean;
13
- ignoreMutation(mutation: MutationRecord | {
14
- type: 'selection';
15
- target: Element;
16
- }): boolean;
17
- }
@@ -1,3 +0,0 @@
1
- import { Table } from './table';
2
- export * from './table';
3
- export default Table;
@@ -1,54 +0,0 @@
1
- import { Node, Command, ParentConfig } from '@tiptap/core';
2
- import { NodeView } from 'prosemirror-view';
3
- export interface TableOptions {
4
- HTMLAttributes: Record<string, any>;
5
- resizable: boolean;
6
- handleWidth: number;
7
- cellMinWidth: number;
8
- View: NodeView;
9
- lastColumnResizable: boolean;
10
- allowTableNodeSelection: boolean;
11
- }
12
- declare module '@tiptap/core' {
13
- interface Commands {
14
- table: {
15
- insertTable: (options?: {
16
- rows?: number;
17
- cols?: number;
18
- withHeaderRow?: boolean;
19
- }) => Command;
20
- addColumnBefore: () => Command;
21
- addColumnAfter: () => Command;
22
- deleteColumn: () => Command;
23
- addRowBefore: () => Command;
24
- addRowAfter: () => Command;
25
- deleteRow: () => Command;
26
- deleteTable: () => Command;
27
- mergeCells: () => Command;
28
- splitCell: () => Command;
29
- toggleHeaderColumn: () => Command;
30
- toggleHeaderRow: () => Command;
31
- toggleHeaderCell: () => Command;
32
- mergeOrSplit: () => Command;
33
- setCellAttribute: (name: string, value: any) => Command;
34
- goToNextCell: () => Command;
35
- goToPreviousCell: () => Command;
36
- fixTables: () => Command;
37
- setCellSelection: (position: {
38
- anchorCell: number;
39
- headCell?: number;
40
- }) => Command;
41
- };
42
- }
43
- interface NodeConfig<Options> {
44
- /**
45
- * Table Role
46
- */
47
- tableRole?: string | ((this: {
48
- name: string;
49
- options: Options;
50
- parent: ParentConfig<NodeConfig<Options>>['tableRole'];
51
- }) => string);
52
- }
53
- }
54
- export declare const Table: Node<TableOptions>;
@@ -1,2 +0,0 @@
1
- import { NodeType, Fragment, Node as ProsemirrorNode, Schema } from 'prosemirror-model';
2
- export declare function createCell(cellType: NodeType, cellContent?: Fragment<Schema> | ProsemirrorNode<Schema> | Array<ProsemirrorNode<Schema>>): ProsemirrorNode | null | undefined;
@@ -1,2 +0,0 @@
1
- import { Schema, Fragment, Node as ProsemirrorNode } from 'prosemirror-model';
2
- export declare function createTable(schema: Schema, rowsCount: number, colsCount: number, withHeaderRow: boolean, cellContent?: Fragment<Schema> | ProsemirrorNode<Schema> | Array<ProsemirrorNode<Schema>>): ProsemirrorNode;
@@ -1,2 +0,0 @@
1
- import { KeyboardShortcutCommand } from '@tiptap/core';
2
- export declare const deleteTableWhenAllCellsSelected: KeyboardShortcutCommand;
@@ -1,4 +0,0 @@
1
- import { Schema, NodeType } from 'prosemirror-model';
2
- export declare function getTableNodeTypes(schema: Schema): {
3
- [key: string]: NodeType;
4
- };
@@ -1,2 +0,0 @@
1
- import { CellSelection } from 'prosemirror-tables';
2
- export declare function isCellSelection(value: unknown): value is CellSelection;