@atlaskit/editor-plugin-table 5.3.20 → 5.3.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.
@@ -1,101 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`replaces table with content when user pastes plain text with a full-table cell selection 1`] = `
4
- Object {
5
- "content": Array [
6
- Object {
7
- "content": Array [
8
- Object {
9
- "text": "Some text to copy",
10
- "type": "text",
11
- },
12
- ],
13
- "type": "paragraph",
14
- },
15
- ],
16
- "type": "doc",
17
- }
18
- `;
19
-
20
- exports[`replaces table with content when user pastes rich text with a full-table cell selection 1`] = `
21
- Object {
22
- "content": Array [
23
- Object {
24
- "content": Array [
25
- Object {
26
- "text": "this is a link ",
27
- "type": "text",
28
- },
29
- Object {
30
- "marks": Array [
31
- Object {
32
- "attrs": Object {
33
- "__confluenceMetadata": null,
34
- "href": "http://www.google.com",
35
- },
36
- "type": "link",
37
- },
38
- ],
39
- "text": "www.google.com",
40
- "type": "text",
41
- },
42
- ],
43
- "type": "paragraph",
44
- },
45
- Object {
46
- "content": Array [
47
- Object {
48
- "text": "more elements with some ",
49
- "type": "text",
50
- },
51
- Object {
52
- "marks": Array [
53
- Object {
54
- "type": "strong",
55
- },
56
- ],
57
- "text": "format",
58
- "type": "text",
59
- },
60
- ],
61
- "type": "paragraph",
62
- },
63
- Object {
64
- "content": Array [
65
- Object {
66
- "text": "some addition",
67
- "type": "text",
68
- },
69
- Object {
70
- "marks": Array [
71
- Object {
72
- "type": "em",
73
- },
74
- ],
75
- "text": " formatting",
76
- "type": "text",
77
- },
78
- ],
79
- "type": "paragraph",
80
- },
81
- ],
82
- "type": "doc",
83
- }
84
- `;
85
-
86
- exports[`replaces table with text when user types with a full-table cell selection 1`] = `
87
- Object {
88
- "content": Array [
89
- Object {
90
- "content": Array [
91
- Object {
92
- "text": "A",
93
- "type": "text",
94
- },
95
- ],
96
- "type": "paragraph",
97
- },
98
- ],
99
- "type": "doc",
100
- }
101
- `;
@@ -1,505 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`backspace for an empty paragraph at the end of the document should only
4
- place cursor inside last cell of table 1`] = `
5
- Object {
6
- "content": Array [
7
- Object {
8
- "attrs": Object {
9
- "__autoSize": false,
10
- "isNumberColumnEnabled": false,
11
- "layout": "default",
12
- "localId": "abc-123",
13
- "width": null,
14
- },
15
- "content": Array [
16
- Object {
17
- "content": Array [
18
- Object {
19
- "attrs": Object {
20
- "background": null,
21
- "colspan": 1,
22
- "colwidth": null,
23
- "rowspan": 1,
24
- },
25
- "content": Array [
26
- Object {
27
- "type": "paragraph",
28
- },
29
- ],
30
- "type": "tableHeader",
31
- },
32
- Object {
33
- "attrs": Object {
34
- "background": null,
35
- "colspan": 1,
36
- "colwidth": null,
37
- "rowspan": 1,
38
- },
39
- "content": Array [
40
- Object {
41
- "type": "paragraph",
42
- },
43
- ],
44
- "type": "tableHeader",
45
- },
46
- Object {
47
- "attrs": Object {
48
- "background": null,
49
- "colspan": 1,
50
- "colwidth": null,
51
- "rowspan": 1,
52
- },
53
- "content": Array [
54
- Object {
55
- "type": "paragraph",
56
- },
57
- ],
58
- "type": "tableHeader",
59
- },
60
- ],
61
- "type": "tableRow",
62
- },
63
- Object {
64
- "content": Array [
65
- Object {
66
- "attrs": Object {
67
- "background": null,
68
- "colspan": 1,
69
- "colwidth": null,
70
- "rowspan": 1,
71
- },
72
- "content": Array [
73
- Object {
74
- "type": "paragraph",
75
- },
76
- ],
77
- "type": "tableCell",
78
- },
79
- Object {
80
- "attrs": Object {
81
- "background": null,
82
- "colspan": 1,
83
- "colwidth": null,
84
- "rowspan": 1,
85
- },
86
- "content": Array [
87
- Object {
88
- "type": "paragraph",
89
- },
90
- ],
91
- "type": "tableCell",
92
- },
93
- Object {
94
- "attrs": Object {
95
- "background": null,
96
- "colspan": 1,
97
- "colwidth": null,
98
- "rowspan": 1,
99
- },
100
- "content": Array [
101
- Object {
102
- "type": "paragraph",
103
- },
104
- ],
105
- "type": "tableCell",
106
- },
107
- ],
108
- "type": "tableRow",
109
- },
110
- Object {
111
- "content": Array [
112
- Object {
113
- "attrs": Object {
114
- "background": null,
115
- "colspan": 1,
116
- "colwidth": null,
117
- "rowspan": 1,
118
- },
119
- "content": Array [
120
- Object {
121
- "type": "paragraph",
122
- },
123
- ],
124
- "type": "tableCell",
125
- },
126
- Object {
127
- "attrs": Object {
128
- "background": null,
129
- "colspan": 1,
130
- "colwidth": null,
131
- "rowspan": 1,
132
- },
133
- "content": Array [
134
- Object {
135
- "type": "paragraph",
136
- },
137
- ],
138
- "type": "tableCell",
139
- },
140
- Object {
141
- "attrs": Object {
142
- "background": null,
143
- "colspan": 1,
144
- "colwidth": null,
145
- "rowspan": 1,
146
- },
147
- "content": Array [
148
- Object {
149
- "type": "paragraph",
150
- },
151
- ],
152
- "type": "tableCell",
153
- },
154
- ],
155
- "type": "tableRow",
156
- },
157
- ],
158
- "type": "table",
159
- },
160
- Object {
161
- "type": "paragraph",
162
- },
163
- ],
164
- "type": "doc",
165
- }
166
- `;
167
-
168
- exports[`backspace for an empty paragraph not at the end of the document should delete that paragraph and
169
- place cursor inside last cell of table 1`] = `
170
- Object {
171
- "content": Array [
172
- Object {
173
- "attrs": Object {
174
- "__autoSize": false,
175
- "isNumberColumnEnabled": false,
176
- "layout": "default",
177
- "localId": "abc-123",
178
- "width": null,
179
- },
180
- "content": Array [
181
- Object {
182
- "content": Array [
183
- Object {
184
- "attrs": Object {
185
- "background": null,
186
- "colspan": 1,
187
- "colwidth": null,
188
- "rowspan": 1,
189
- },
190
- "content": Array [
191
- Object {
192
- "type": "paragraph",
193
- },
194
- ],
195
- "type": "tableHeader",
196
- },
197
- Object {
198
- "attrs": Object {
199
- "background": null,
200
- "colspan": 1,
201
- "colwidth": null,
202
- "rowspan": 1,
203
- },
204
- "content": Array [
205
- Object {
206
- "type": "paragraph",
207
- },
208
- ],
209
- "type": "tableHeader",
210
- },
211
- Object {
212
- "attrs": Object {
213
- "background": null,
214
- "colspan": 1,
215
- "colwidth": null,
216
- "rowspan": 1,
217
- },
218
- "content": Array [
219
- Object {
220
- "type": "paragraph",
221
- },
222
- ],
223
- "type": "tableHeader",
224
- },
225
- ],
226
- "type": "tableRow",
227
- },
228
- Object {
229
- "content": Array [
230
- Object {
231
- "attrs": Object {
232
- "background": null,
233
- "colspan": 1,
234
- "colwidth": null,
235
- "rowspan": 1,
236
- },
237
- "content": Array [
238
- Object {
239
- "type": "paragraph",
240
- },
241
- ],
242
- "type": "tableCell",
243
- },
244
- Object {
245
- "attrs": Object {
246
- "background": null,
247
- "colspan": 1,
248
- "colwidth": null,
249
- "rowspan": 1,
250
- },
251
- "content": Array [
252
- Object {
253
- "type": "paragraph",
254
- },
255
- ],
256
- "type": "tableCell",
257
- },
258
- Object {
259
- "attrs": Object {
260
- "background": null,
261
- "colspan": 1,
262
- "colwidth": null,
263
- "rowspan": 1,
264
- },
265
- "content": Array [
266
- Object {
267
- "type": "paragraph",
268
- },
269
- ],
270
- "type": "tableCell",
271
- },
272
- ],
273
- "type": "tableRow",
274
- },
275
- Object {
276
- "content": Array [
277
- Object {
278
- "attrs": Object {
279
- "background": null,
280
- "colspan": 1,
281
- "colwidth": null,
282
- "rowspan": 1,
283
- },
284
- "content": Array [
285
- Object {
286
- "type": "paragraph",
287
- },
288
- ],
289
- "type": "tableCell",
290
- },
291
- Object {
292
- "attrs": Object {
293
- "background": null,
294
- "colspan": 1,
295
- "colwidth": null,
296
- "rowspan": 1,
297
- },
298
- "content": Array [
299
- Object {
300
- "type": "paragraph",
301
- },
302
- ],
303
- "type": "tableCell",
304
- },
305
- Object {
306
- "attrs": Object {
307
- "background": null,
308
- "colspan": 1,
309
- "colwidth": null,
310
- "rowspan": 1,
311
- },
312
- "content": Array [
313
- Object {
314
- "type": "paragraph",
315
- },
316
- ],
317
- "type": "tableCell",
318
- },
319
- ],
320
- "type": "tableRow",
321
- },
322
- ],
323
- "type": "table",
324
- },
325
- Object {
326
- "type": "paragraph",
327
- },
328
- ],
329
- "type": "doc",
330
- }
331
- `;
332
-
333
- exports[`backspace for an filled paragraph not at the end of the document should
334
- place cursor inside last cell of table 1`] = `
335
- Object {
336
- "content": Array [
337
- Object {
338
- "attrs": Object {
339
- "__autoSize": false,
340
- "isNumberColumnEnabled": false,
341
- "layout": "default",
342
- "localId": "abc-123",
343
- "width": null,
344
- },
345
- "content": Array [
346
- Object {
347
- "content": Array [
348
- Object {
349
- "attrs": Object {
350
- "background": null,
351
- "colspan": 1,
352
- "colwidth": null,
353
- "rowspan": 1,
354
- },
355
- "content": Array [
356
- Object {
357
- "type": "paragraph",
358
- },
359
- ],
360
- "type": "tableHeader",
361
- },
362
- Object {
363
- "attrs": Object {
364
- "background": null,
365
- "colspan": 1,
366
- "colwidth": null,
367
- "rowspan": 1,
368
- },
369
- "content": Array [
370
- Object {
371
- "type": "paragraph",
372
- },
373
- ],
374
- "type": "tableHeader",
375
- },
376
- Object {
377
- "attrs": Object {
378
- "background": null,
379
- "colspan": 1,
380
- "colwidth": null,
381
- "rowspan": 1,
382
- },
383
- "content": Array [
384
- Object {
385
- "type": "paragraph",
386
- },
387
- ],
388
- "type": "tableHeader",
389
- },
390
- ],
391
- "type": "tableRow",
392
- },
393
- Object {
394
- "content": Array [
395
- Object {
396
- "attrs": Object {
397
- "background": null,
398
- "colspan": 1,
399
- "colwidth": null,
400
- "rowspan": 1,
401
- },
402
- "content": Array [
403
- Object {
404
- "type": "paragraph",
405
- },
406
- ],
407
- "type": "tableCell",
408
- },
409
- Object {
410
- "attrs": Object {
411
- "background": null,
412
- "colspan": 1,
413
- "colwidth": null,
414
- "rowspan": 1,
415
- },
416
- "content": Array [
417
- Object {
418
- "type": "paragraph",
419
- },
420
- ],
421
- "type": "tableCell",
422
- },
423
- Object {
424
- "attrs": Object {
425
- "background": null,
426
- "colspan": 1,
427
- "colwidth": null,
428
- "rowspan": 1,
429
- },
430
- "content": Array [
431
- Object {
432
- "type": "paragraph",
433
- },
434
- ],
435
- "type": "tableCell",
436
- },
437
- ],
438
- "type": "tableRow",
439
- },
440
- Object {
441
- "content": Array [
442
- Object {
443
- "attrs": Object {
444
- "background": null,
445
- "colspan": 1,
446
- "colwidth": null,
447
- "rowspan": 1,
448
- },
449
- "content": Array [
450
- Object {
451
- "type": "paragraph",
452
- },
453
- ],
454
- "type": "tableCell",
455
- },
456
- Object {
457
- "attrs": Object {
458
- "background": null,
459
- "colspan": 1,
460
- "colwidth": null,
461
- "rowspan": 1,
462
- },
463
- "content": Array [
464
- Object {
465
- "type": "paragraph",
466
- },
467
- ],
468
- "type": "tableCell",
469
- },
470
- Object {
471
- "attrs": Object {
472
- "background": null,
473
- "colspan": 1,
474
- "colwidth": null,
475
- "rowspan": 1,
476
- },
477
- "content": Array [
478
- Object {
479
- "type": "paragraph",
480
- },
481
- ],
482
- "type": "tableCell",
483
- },
484
- ],
485
- "type": "tableRow",
486
- },
487
- ],
488
- "type": "table",
489
- },
490
- Object {
491
- "content": Array [
492
- Object {
493
- "text": "hello there",
494
- "type": "text",
495
- },
496
- ],
497
- "type": "paragraph",
498
- },
499
- Object {
500
- "type": "paragraph",
501
- },
502
- ],
503
- "type": "doc",
504
- }
505
- `;