@atlaskit/editor-plugin-table 5.4.4 → 5.4.6
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 +13 -0
- package/dist/cjs/plugins/table/types.js +1 -1
- package/dist/cjs/plugins/table/ui/DragHandle/HandleIconComponent.js +29 -0
- package/dist/cjs/plugins/table/ui/DragHandle/index.js +21 -20
- package/dist/cjs/plugins/table/ui/common-styles.js +1 -1
- package/dist/cjs/plugins/table/ui/consts.js +1 -2
- package/dist/cjs/plugins/table/ui/ui-styles.js +10 -13
- package/dist/cjs/plugins/table/utils/decoration.js +7 -6
- package/dist/es2019/plugins/table/types.js +1 -1
- package/dist/es2019/plugins/table/ui/DragHandle/HandleIconComponent.js +24 -0
- package/dist/es2019/plugins/table/ui/DragHandle/index.js +21 -20
- package/dist/es2019/plugins/table/ui/common-styles.js +6 -2
- package/dist/es2019/plugins/table/ui/consts.js +0 -1
- package/dist/es2019/plugins/table/ui/ui-styles.js +18 -12
- package/dist/es2019/plugins/table/utils/decoration.js +7 -6
- package/dist/esm/plugins/table/types.js +1 -1
- package/dist/esm/plugins/table/ui/DragHandle/HandleIconComponent.js +22 -0
- package/dist/esm/plugins/table/ui/DragHandle/index.js +21 -20
- package/dist/esm/plugins/table/ui/common-styles.js +2 -2
- package/dist/esm/plugins/table/ui/consts.js +0 -1
- package/dist/esm/plugins/table/ui/ui-styles.js +10 -13
- package/dist/esm/plugins/table/utils/decoration.js +7 -6
- package/dist/types/plugins/table/types.d.ts +1 -1
- package/dist/types/plugins/table/ui/DragHandle/HandleIconComponent.d.ts +13 -0
- package/dist/types/plugins/table/ui/consts.d.ts +0 -1
- package/dist/types/plugins/table/ui/ui-styles.d.ts +0 -1
- package/dist/types-ts4.5/plugins/table/types.d.ts +1 -1
- package/dist/types-ts4.5/plugins/table/ui/DragHandle/HandleIconComponent.d.ts +13 -0
- package/dist/types-ts4.5/plugins/table/ui/consts.d.ts +0 -1
- package/dist/types-ts4.5/plugins/table/ui/ui-styles.d.ts +0 -1
- package/package.json +4 -4
- package/src/plugins/table/types.ts +1 -1
- package/src/plugins/table/ui/DragHandle/HandleIconComponent.tsx +51 -0
- package/src/plugins/table/ui/DragHandle/index.tsx +30 -33
- package/src/plugins/table/ui/common-styles.ts +5 -2
- package/src/plugins/table/ui/consts.ts +0 -5
- package/src/plugins/table/ui/ui-styles.ts +17 -12
- package/src/plugins/table/utils/decoration.ts +14 -19
- package/tsconfig.dev.json +0 -3
- package/src/__tests__/integration/__fixtures__/auto-size-documents.ts +0 -434
- package/src/__tests__/integration/__fixtures__/basic-table-with-merged-cell.ts +0 -112
- package/src/__tests__/integration/__fixtures__/basic-table.ts +0 -120
- package/src/__tests__/integration/__fixtures__/empty-layout.ts +0 -35
- package/src/__tests__/integration/__fixtures__/empty-paragraph-underneath-table.ts +0 -396
- package/src/__tests__/integration/__fixtures__/even-columns.ts +0 -493
- package/src/__tests__/integration/__fixtures__/large-table-with-sticky-header.ts +0 -2311
- package/src/__tests__/integration/__fixtures__/layout-documents.ts +0 -606
- package/src/__tests__/integration/__fixtures__/merged-rows-and-cols-document.ts +0 -343
- package/src/__tests__/integration/__fixtures__/nested-in-expand.ts +0 -129
- package/src/__tests__/integration/__fixtures__/nested-in-extension.ts +0 -163
- package/src/__tests__/integration/__fixtures__/paragraph-and-table-adf.ts +0 -132
- package/src/__tests__/integration/__fixtures__/resize-documents.ts +0 -1605
- package/src/__tests__/integration/__fixtures__/scale.ts +0 -825
- package/src/__tests__/integration/__fixtures__/table-and-paragraph-adf.ts +0 -130
- package/src/__tests__/integration/__fixtures__/table-inside-layout.ts +0 -145
- package/src/__tests__/integration/__fixtures__/table-with-min-width-columns-document.ts +0 -175
- package/src/__tests__/integration/__fixtures__/table-with-multiline-date.adf.json +0 -168
- package/src/__tests__/integration/__fixtures__/table-with-text-and-empty-row.ts +0 -216
- package/src/__tests__/integration/__snapshots__/copy-button.ts.snap +0 -423
- package/src/__tests__/integration/copy-button.ts +0 -179
- package/src/__tests__/integration/horizontal-scroll-shadows.ts +0 -197
- package/src/__tests__/integration/meta-arrowup-cursor-in-first-row.ts +0 -42
- package/src/__tests__/integration/sticky-header.ts +0 -133
- package/src/__tests__/integration/table-controls-selection.ts +0 -71
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
export const documentWithParagraphAndTable = (
|
|
2
|
-
isNumberColumnEnabled: boolean,
|
|
3
|
-
) => ({
|
|
4
|
-
version: 1,
|
|
5
|
-
type: 'doc',
|
|
6
|
-
content: [
|
|
7
|
-
{
|
|
8
|
-
type: 'paragraph',
|
|
9
|
-
content: [
|
|
10
|
-
{
|
|
11
|
-
type: 'text',
|
|
12
|
-
text: 'text',
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
type: 'table',
|
|
18
|
-
attrs: {
|
|
19
|
-
isNumberColumnEnabled,
|
|
20
|
-
layout: 'default',
|
|
21
|
-
localId: 'e1365400-6226-4bb9-b3f1-b80fd3ae640a',
|
|
22
|
-
},
|
|
23
|
-
content: [
|
|
24
|
-
{
|
|
25
|
-
type: 'tableRow',
|
|
26
|
-
content: [
|
|
27
|
-
{
|
|
28
|
-
type: 'tableHeader',
|
|
29
|
-
attrs: {},
|
|
30
|
-
content: [
|
|
31
|
-
{
|
|
32
|
-
type: 'paragraph',
|
|
33
|
-
content: [],
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
type: 'tableHeader',
|
|
39
|
-
attrs: {},
|
|
40
|
-
content: [
|
|
41
|
-
{
|
|
42
|
-
type: 'paragraph',
|
|
43
|
-
content: [],
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
type: 'tableHeader',
|
|
49
|
-
attrs: {},
|
|
50
|
-
content: [
|
|
51
|
-
{
|
|
52
|
-
type: 'paragraph',
|
|
53
|
-
content: [],
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
type: 'tableRow',
|
|
61
|
-
content: [
|
|
62
|
-
{
|
|
63
|
-
type: 'tableCell',
|
|
64
|
-
attrs: {},
|
|
65
|
-
content: [
|
|
66
|
-
{
|
|
67
|
-
type: 'paragraph',
|
|
68
|
-
content: [],
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
type: 'tableCell',
|
|
74
|
-
attrs: {},
|
|
75
|
-
content: [
|
|
76
|
-
{
|
|
77
|
-
type: 'paragraph',
|
|
78
|
-
content: [],
|
|
79
|
-
},
|
|
80
|
-
],
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
type: 'tableCell',
|
|
84
|
-
attrs: {},
|
|
85
|
-
content: [
|
|
86
|
-
{
|
|
87
|
-
type: 'paragraph',
|
|
88
|
-
content: [],
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
],
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
type: 'tableRow',
|
|
96
|
-
content: [
|
|
97
|
-
{
|
|
98
|
-
type: 'tableCell',
|
|
99
|
-
attrs: {},
|
|
100
|
-
content: [
|
|
101
|
-
{
|
|
102
|
-
type: 'paragraph',
|
|
103
|
-
content: [],
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
type: 'tableCell',
|
|
109
|
-
attrs: {},
|
|
110
|
-
content: [
|
|
111
|
-
{
|
|
112
|
-
type: 'paragraph',
|
|
113
|
-
content: [],
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
type: 'tableCell',
|
|
119
|
-
attrs: {},
|
|
120
|
-
content: [
|
|
121
|
-
{
|
|
122
|
-
type: 'paragraph',
|
|
123
|
-
content: [],
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
},
|
|
127
|
-
],
|
|
128
|
-
},
|
|
129
|
-
],
|
|
130
|
-
},
|
|
131
|
-
],
|
|
132
|
-
});
|