@atlaskit/editor-plugin-table 0.0.2 → 0.0.3
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 +6 -0
- package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +2 -2
- package/dist/esm/version.json +1 -1
- package/dist/types-ts4.0/index.d.ts +1 -0
- package/dist/types-ts4.0/plugins/plugin-key.d.ts +4 -0
- package/dist/types-ts4.0/plugins/table/commands/clear.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/commands/collapse.d.ts +2 -0
- package/dist/types-ts4.0/plugins/table/commands/go-to-next-cell.d.ts +4 -0
- package/dist/types-ts4.0/plugins/table/commands/hover.d.ts +8 -0
- package/dist/types-ts4.0/plugins/table/commands/index.d.ts +7 -0
- package/dist/types-ts4.0/plugins/table/commands/insert.d.ts +10 -0
- package/dist/types-ts4.0/plugins/table/commands/misc.d.ts +27 -0
- package/dist/types-ts4.0/plugins/table/commands/selection.d.ts +8 -0
- package/dist/types-ts4.0/plugins/table/commands/sort.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/commands/split-cell.d.ts +6 -0
- package/dist/types-ts4.0/plugins/table/commands/toggle.d.ts +12 -0
- package/dist/types-ts4.0/plugins/table/commands-with-analytics.d.ts +26 -0
- package/dist/types-ts4.0/plugins/table/create-plugin-config.d.ts +2 -0
- package/dist/types-ts4.0/plugins/table/event-handlers.d.ts +16 -0
- package/dist/types-ts4.0/plugins/table/handlers.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/index.d.ts +17 -0
- package/dist/types-ts4.0/plugins/table/nodeviews/OverflowShadowsObserver.d.ts +26 -0
- package/dist/types-ts4.0/plugins/table/nodeviews/TableComponent.d.ts +72 -0
- package/dist/types-ts4.0/plugins/table/nodeviews/__mocks__/OverflowShadowsObserver.d.ts +9 -0
- package/dist/types-ts4.0/plugins/table/nodeviews/__mocks__/OverridableMock.d.ts +9 -0
- package/dist/types-ts4.0/plugins/table/nodeviews/table.d.ts +31 -0
- package/dist/types-ts4.0/plugins/table/nodeviews/tableCell.d.ts +19 -0
- package/dist/types-ts4.0/plugins/table/nodeviews/types.d.ts +23 -0
- package/dist/types-ts4.0/plugins/table/nodeviews/update-overflow-shadows.d.ts +8 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/plugin.d.ts +7 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/column-controls.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/column-resizing.d.ts +2 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/compose-decorations.d.ts +2 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/index.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/decorations/utils/types.d.ts +6 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/default-table-selection.d.ts +5 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/keymap.d.ts +5 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/main.d.ts +8 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/plugin-factory.d.ts +1 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/plugin-key.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.d.ts +4 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +15 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/commands.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/index.d.ts +6 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/nodeviews/dom.d.ts +6 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +65 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin-key.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin-state.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/plugin.d.ts +4 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/types.d.ts +16 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/sticky-headers/util.d.ts +2 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-local-id.d.ts +22 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/commands.d.ts +25 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +4 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/index.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin-factory.d.ts +4 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin-key.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/plugin.d.ts +6 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/reducer.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +8 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/column-state.d.ts +14 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/content-width.d.ts +4 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +13 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/index.d.ts +12 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +22 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-column.d.ts +2 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-logic.d.ts +4 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +29 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/scale-table.d.ts +17 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/types.d.ts +22 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-resizing/utils/unit-to-number.d.ts +1 -0
- package/dist/types-ts4.0/plugins/table/pm-plugins/table-selection-keymap.d.ts +4 -0
- package/dist/types-ts4.0/plugins/table/reducer.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/todo-stubs.d.ts +1 -0
- package/dist/types-ts4.0/plugins/table/toolbar.d.ts +36 -0
- package/dist/types-ts4.0/plugins/table/transforms/column-width.d.ts +18 -0
- package/dist/types-ts4.0/plugins/table/transforms/delete-columns.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/transforms/delete-rows.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/transforms/fix-tables.d.ts +10 -0
- package/dist/types-ts4.0/plugins/table/transforms/index.d.ts +7 -0
- package/dist/types-ts4.0/plugins/table/transforms/merge.d.ts +5 -0
- package/dist/types-ts4.0/plugins/table/transforms/metadata.d.ts +21 -0
- package/dist/types-ts4.0/plugins/table/transforms/replace-table.d.ts +5 -0
- package/dist/types-ts4.0/plugins/table/transforms/split.d.ts +9 -0
- package/dist/types-ts4.0/plugins/table/types.d.ts +328 -0
- package/dist/types-ts4.0/plugins/table/ui/FloatingContextualButton/index.d.ts +29 -0
- package/dist/types-ts4.0/plugins/table/ui/FloatingContextualButton/styles.d.ts +1 -0
- package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +87 -0
- package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/index.d.ts +22 -0
- package/dist/types-ts4.0/plugins/table/ui/FloatingContextualMenu/styles.d.ts +2 -0
- package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/DeleteButton.d.ts +14 -0
- package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/getPopUpOptions.d.ts +10 -0
- package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/index.d.ts +54 -0
- package/dist/types-ts4.0/plugins/table/ui/FloatingDeleteButton/types.d.ts +1 -0
- package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/InsertButton.d.ts +12 -0
- package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/getPopupOptions.d.ts +3 -0
- package/dist/types-ts4.0/plugins/table/ui/FloatingInsertButton/index.d.ts +35 -0
- package/dist/types-ts4.0/plugins/table/ui/LayoutButton/index.d.ts +21 -0
- package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/CornerControls/index.d.ts +19 -0
- package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/NumberColumn/index.d.ts +21 -0
- package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/RowControls/index.d.ts +17 -0
- package/dist/types-ts4.0/plugins/table/ui/TableFloatingControls/index.d.ts +40 -0
- package/dist/types-ts4.0/plugins/table/ui/common-styles.d.ts +4 -0
- package/dist/types-ts4.0/plugins/table/ui/consts.d.ts +39 -0
- package/dist/types-ts4.0/plugins/table/ui/messages.d.ts +38 -0
- package/dist/types-ts4.0/plugins/table/ui/ui-styles.d.ts +15 -0
- package/dist/types-ts4.0/plugins/table/utils/analytics.d.ts +18 -0
- package/dist/types-ts4.0/plugins/table/utils/collapse.d.ts +29 -0
- package/dist/types-ts4.0/plugins/table/utils/column-controls.d.ts +10 -0
- package/dist/types-ts4.0/plugins/table/utils/decoration.d.ts +16 -0
- package/dist/types-ts4.0/plugins/table/utils/dom.d.ts +20 -0
- package/dist/types-ts4.0/plugins/table/utils/get-allow-add-column-custom-step.d.ts +2 -0
- package/dist/types-ts4.0/plugins/table/utils/index.d.ts +11 -0
- package/dist/types-ts4.0/plugins/table/utils/nodes.d.ts +12 -0
- package/dist/types-ts4.0/plugins/table/utils/paste.d.ts +14 -0
- package/dist/types-ts4.0/plugins/table/utils/referentiality.d.ts +2 -0
- package/dist/types-ts4.0/plugins/table/utils/row-controls.d.ts +16 -0
- package/dist/types-ts4.0/plugins/table/utils/selection.d.ts +6 -0
- package/dist/types-ts4.0/plugins/table/utils/table.d.ts +4 -0
- package/dist/types-ts4.0/plugins/table/utils/update-plugin-state-decorations.d.ts +4 -0
- package/dist/types-ts4.0/plugins/table-plugin.d.ts +2 -0
- package/dist/types-ts4.0/types.d.ts +3 -0
- package/examples/99-testing.tsx +227 -0
- package/package.json +16 -3
- package/src/plugins/table/__tests__/integration/__fixtures__/auto-size-documents.ts +439 -0
- package/src/plugins/table/__tests__/integration/__fixtures__/basic-table.ts +120 -0
- package/src/plugins/table/__tests__/integration/__fixtures__/empty-paragraph-underneath-table.ts +396 -0
- package/src/plugins/table/__tests__/integration/__fixtures__/even-columns.ts +493 -0
- package/src/plugins/table/__tests__/integration/__fixtures__/layout-documents.ts +607 -0
- package/src/plugins/table/__tests__/integration/__fixtures__/merged-rows-and-cols-document.ts +343 -0
- package/src/plugins/table/__tests__/integration/__fixtures__/nested-in-extension.ts +163 -0
- package/src/plugins/table/__tests__/integration/__fixtures__/paragraph-and-table-adf.json +130 -0
- package/src/plugins/table/__tests__/integration/__fixtures__/resize-documents.ts +1610 -0
- package/src/plugins/table/__tests__/integration/__fixtures__/scale.ts +825 -0
- package/src/plugins/table/__tests__/integration/__fixtures__/table-inside-layout.ts +145 -0
- package/src/plugins/table/__tests__/integration/__fixtures__/table-with-min-width-columns-document.ts +175 -0
- package/src/plugins/table/__tests__/integration/__fixtures__/table-with-multiline-date.adf.json +168 -0
- package/src/plugins/table/__tests__/integration/__fixtures__/table-with-text-and-empty-row.ts +216 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/auto-size.ts.snap +609 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/change-date-inside-table.ts.snap +173 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/copy-button.ts.snap +421 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/delete-columns.ts.snap +818 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-column-in-full-width.ts.snap +119 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-column-with-empty-action.ts.snap +119 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/delete-last-row-with-empty-action.ts.snap +227 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/delete-rows.ts.snap +959 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/delete-table-when-selected.ts.snap +101 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/deleting-empty-paragraph-under-table.ts.snap +502 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/even-columns.ts.snap +645 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/insert-cell-header-with-strong-mark.ts.snap +172 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/insert-row-inside-layout.ts.snap +238 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/layout.ts.snap +1645 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/resize.ts.snap +2674 -0
- package/src/plugins/table/__tests__/integration/__snapshots__/scale.ts.snap +1083 -0
- package/src/plugins/table/__tests__/integration/arrow-down-into-table.ts +38 -0
- package/src/plugins/table/__tests__/integration/auto-size.ts +87 -0
- package/src/plugins/table/__tests__/integration/block-node-selection.ts +162 -163
- package/src/plugins/table/__tests__/integration/cell-selection.ts +101 -0
- package/src/plugins/table/__tests__/integration/change-date-inside-table.ts +47 -0
- package/src/plugins/table/__tests__/integration/copy-button.ts +179 -0
- package/src/plugins/table/__tests__/integration/delete-columns.ts +95 -0
- package/src/plugins/table/__tests__/integration/delete-last-column-in-full-width.ts +70 -0
- package/src/plugins/table/__tests__/integration/delete-last-column-with-empty-action.ts +58 -0
- package/src/plugins/table/__tests__/integration/delete-last-row-with-empty-action.ts +97 -0
- package/src/plugins/table/__tests__/integration/delete-rows.ts +122 -0
- package/src/plugins/table/__tests__/integration/delete-table-when-selected.ts +110 -0
- package/src/plugins/table/__tests__/integration/deleting-empty-paragraph-under-table.ts +86 -0
- package/src/plugins/table/__tests__/integration/even-columns.ts +72 -0
- package/src/plugins/table/__tests__/integration/insert-cell-header-with-strong-mark.ts +40 -0
- package/src/plugins/table/__tests__/integration/insert-long-smart-link.ts +52 -0
- package/src/plugins/table/__tests__/integration/insert-row-inside-layout.ts +47 -0
- package/src/plugins/table/__tests__/integration/layout.ts +224 -0
- package/src/plugins/table/__tests__/integration/resize-handler.ts +101 -0
- package/src/plugins/table/__tests__/integration/resize.ts +342 -0
- package/src/plugins/table/__tests__/integration/scale.ts +67 -0
- package/src/plugins/table/__tests__/integration/table-controls-selection.ts +70 -0
- package/src/plugins/table/ui/FloatingContextualButton/index.tsx +2 -2
- package/types/package.json +8 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`inside-table.ts: Insert panel into table, add text, change panel type 1`] = `
|
|
4
|
+
Object {
|
|
5
|
+
"content": Array [
|
|
6
|
+
Object {
|
|
7
|
+
"attrs": Object {
|
|
8
|
+
"__autoSize": false,
|
|
9
|
+
"isNumberColumnEnabled": false,
|
|
10
|
+
"layout": "default",
|
|
11
|
+
"localId": "abc-123",
|
|
12
|
+
},
|
|
13
|
+
"content": Array [
|
|
14
|
+
Object {
|
|
15
|
+
"content": Array [
|
|
16
|
+
Object {
|
|
17
|
+
"attrs": Object {
|
|
18
|
+
"background": null,
|
|
19
|
+
"colspan": 1,
|
|
20
|
+
"colwidth": null,
|
|
21
|
+
"rowspan": 1,
|
|
22
|
+
},
|
|
23
|
+
"content": Array [
|
|
24
|
+
Object {
|
|
25
|
+
"content": Array [
|
|
26
|
+
Object {
|
|
27
|
+
"marks": Array [
|
|
28
|
+
Object {
|
|
29
|
+
"type": "strong",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
"text": "this has a strong mark",
|
|
33
|
+
"type": "text",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
"type": "paragraph",
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
"type": "tableHeader",
|
|
40
|
+
},
|
|
41
|
+
Object {
|
|
42
|
+
"attrs": Object {
|
|
43
|
+
"background": null,
|
|
44
|
+
"colspan": 1,
|
|
45
|
+
"colwidth": null,
|
|
46
|
+
"rowspan": 1,
|
|
47
|
+
},
|
|
48
|
+
"content": Array [
|
|
49
|
+
Object {
|
|
50
|
+
"type": "paragraph",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
"type": "tableHeader",
|
|
54
|
+
},
|
|
55
|
+
Object {
|
|
56
|
+
"attrs": Object {
|
|
57
|
+
"background": null,
|
|
58
|
+
"colspan": 1,
|
|
59
|
+
"colwidth": null,
|
|
60
|
+
"rowspan": 1,
|
|
61
|
+
},
|
|
62
|
+
"content": Array [
|
|
63
|
+
Object {
|
|
64
|
+
"type": "paragraph",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
"type": "tableHeader",
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
"type": "tableRow",
|
|
71
|
+
},
|
|
72
|
+
Object {
|
|
73
|
+
"content": Array [
|
|
74
|
+
Object {
|
|
75
|
+
"attrs": Object {
|
|
76
|
+
"background": null,
|
|
77
|
+
"colspan": 1,
|
|
78
|
+
"colwidth": null,
|
|
79
|
+
"rowspan": 1,
|
|
80
|
+
},
|
|
81
|
+
"content": Array [
|
|
82
|
+
Object {
|
|
83
|
+
"type": "paragraph",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
"type": "tableCell",
|
|
87
|
+
},
|
|
88
|
+
Object {
|
|
89
|
+
"attrs": Object {
|
|
90
|
+
"background": null,
|
|
91
|
+
"colspan": 1,
|
|
92
|
+
"colwidth": null,
|
|
93
|
+
"rowspan": 1,
|
|
94
|
+
},
|
|
95
|
+
"content": Array [
|
|
96
|
+
Object {
|
|
97
|
+
"type": "paragraph",
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
"type": "tableCell",
|
|
101
|
+
},
|
|
102
|
+
Object {
|
|
103
|
+
"attrs": Object {
|
|
104
|
+
"background": null,
|
|
105
|
+
"colspan": 1,
|
|
106
|
+
"colwidth": null,
|
|
107
|
+
"rowspan": 1,
|
|
108
|
+
},
|
|
109
|
+
"content": Array [
|
|
110
|
+
Object {
|
|
111
|
+
"type": "paragraph",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
"type": "tableCell",
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
"type": "tableRow",
|
|
118
|
+
},
|
|
119
|
+
Object {
|
|
120
|
+
"content": Array [
|
|
121
|
+
Object {
|
|
122
|
+
"attrs": Object {
|
|
123
|
+
"background": null,
|
|
124
|
+
"colspan": 1,
|
|
125
|
+
"colwidth": null,
|
|
126
|
+
"rowspan": 1,
|
|
127
|
+
},
|
|
128
|
+
"content": Array [
|
|
129
|
+
Object {
|
|
130
|
+
"type": "paragraph",
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
"type": "tableCell",
|
|
134
|
+
},
|
|
135
|
+
Object {
|
|
136
|
+
"attrs": Object {
|
|
137
|
+
"background": null,
|
|
138
|
+
"colspan": 1,
|
|
139
|
+
"colwidth": null,
|
|
140
|
+
"rowspan": 1,
|
|
141
|
+
},
|
|
142
|
+
"content": Array [
|
|
143
|
+
Object {
|
|
144
|
+
"type": "paragraph",
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
"type": "tableCell",
|
|
148
|
+
},
|
|
149
|
+
Object {
|
|
150
|
+
"attrs": Object {
|
|
151
|
+
"background": null,
|
|
152
|
+
"colspan": 1,
|
|
153
|
+
"colwidth": null,
|
|
154
|
+
"rowspan": 1,
|
|
155
|
+
},
|
|
156
|
+
"content": Array [
|
|
157
|
+
Object {
|
|
158
|
+
"type": "paragraph",
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
"type": "tableCell",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
"type": "tableRow",
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
"type": "table",
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
"type": "doc",
|
|
171
|
+
}
|
|
172
|
+
`;
|
package/src/plugins/table/__tests__/integration/__snapshots__/insert-row-inside-layout.ts.snap
ADDED
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Should scale remaining columns when adding a new column preventing from going to overflow 1`] = `
|
|
4
|
+
Object {
|
|
5
|
+
"content": Array [
|
|
6
|
+
Object {
|
|
7
|
+
"content": Array [
|
|
8
|
+
Object {
|
|
9
|
+
"attrs": Object {
|
|
10
|
+
"width": 50,
|
|
11
|
+
},
|
|
12
|
+
"content": Array [
|
|
13
|
+
Object {
|
|
14
|
+
"type": "paragraph",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
"type": "layoutColumn",
|
|
18
|
+
},
|
|
19
|
+
Object {
|
|
20
|
+
"attrs": Object {
|
|
21
|
+
"width": 50,
|
|
22
|
+
},
|
|
23
|
+
"content": Array [
|
|
24
|
+
Object {
|
|
25
|
+
"attrs": Object {
|
|
26
|
+
"__autoSize": false,
|
|
27
|
+
"isNumberColumnEnabled": false,
|
|
28
|
+
"layout": "default",
|
|
29
|
+
"localId": "abc-123",
|
|
30
|
+
},
|
|
31
|
+
"content": Array [
|
|
32
|
+
Object {
|
|
33
|
+
"content": Array [
|
|
34
|
+
Object {
|
|
35
|
+
"attrs": Object {
|
|
36
|
+
"background": null,
|
|
37
|
+
"colspan": 1,
|
|
38
|
+
"colwidth": null,
|
|
39
|
+
"rowspan": 1,
|
|
40
|
+
},
|
|
41
|
+
"content": Array [
|
|
42
|
+
Object {
|
|
43
|
+
"type": "paragraph",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
"type": "tableHeader",
|
|
47
|
+
},
|
|
48
|
+
Object {
|
|
49
|
+
"attrs": Object {
|
|
50
|
+
"background": null,
|
|
51
|
+
"colspan": 1,
|
|
52
|
+
"colwidth": null,
|
|
53
|
+
"rowspan": 1,
|
|
54
|
+
},
|
|
55
|
+
"content": Array [
|
|
56
|
+
Object {
|
|
57
|
+
"type": "paragraph",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
"type": "tableHeader",
|
|
61
|
+
},
|
|
62
|
+
Object {
|
|
63
|
+
"attrs": Object {
|
|
64
|
+
"background": null,
|
|
65
|
+
"colspan": 1,
|
|
66
|
+
"colwidth": null,
|
|
67
|
+
"rowspan": 1,
|
|
68
|
+
},
|
|
69
|
+
"content": Array [
|
|
70
|
+
Object {
|
|
71
|
+
"type": "paragraph",
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
"type": "tableHeader",
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
"type": "tableRow",
|
|
78
|
+
},
|
|
79
|
+
Object {
|
|
80
|
+
"content": Array [
|
|
81
|
+
Object {
|
|
82
|
+
"attrs": Object {
|
|
83
|
+
"background": null,
|
|
84
|
+
"colspan": 1,
|
|
85
|
+
"colwidth": null,
|
|
86
|
+
"rowspan": 1,
|
|
87
|
+
},
|
|
88
|
+
"content": Array [
|
|
89
|
+
Object {
|
|
90
|
+
"content": Array [
|
|
91
|
+
Object {
|
|
92
|
+
"text": "should be inside of the table",
|
|
93
|
+
"type": "text",
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
"type": "paragraph",
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
"type": "tableCell",
|
|
100
|
+
},
|
|
101
|
+
Object {
|
|
102
|
+
"attrs": Object {
|
|
103
|
+
"background": null,
|
|
104
|
+
"colspan": 1,
|
|
105
|
+
"colwidth": null,
|
|
106
|
+
"rowspan": 1,
|
|
107
|
+
},
|
|
108
|
+
"content": Array [
|
|
109
|
+
Object {
|
|
110
|
+
"type": "paragraph",
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
"type": "tableCell",
|
|
114
|
+
},
|
|
115
|
+
Object {
|
|
116
|
+
"attrs": Object {
|
|
117
|
+
"background": null,
|
|
118
|
+
"colspan": 1,
|
|
119
|
+
"colwidth": null,
|
|
120
|
+
"rowspan": 1,
|
|
121
|
+
},
|
|
122
|
+
"content": Array [
|
|
123
|
+
Object {
|
|
124
|
+
"type": "paragraph",
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
"type": "tableCell",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
"type": "tableRow",
|
|
131
|
+
},
|
|
132
|
+
Object {
|
|
133
|
+
"content": Array [
|
|
134
|
+
Object {
|
|
135
|
+
"attrs": Object {
|
|
136
|
+
"background": null,
|
|
137
|
+
"colspan": 1,
|
|
138
|
+
"colwidth": null,
|
|
139
|
+
"rowspan": 1,
|
|
140
|
+
},
|
|
141
|
+
"content": Array [
|
|
142
|
+
Object {
|
|
143
|
+
"type": "paragraph",
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
"type": "tableCell",
|
|
147
|
+
},
|
|
148
|
+
Object {
|
|
149
|
+
"attrs": Object {
|
|
150
|
+
"background": null,
|
|
151
|
+
"colspan": 1,
|
|
152
|
+
"colwidth": null,
|
|
153
|
+
"rowspan": 1,
|
|
154
|
+
},
|
|
155
|
+
"content": Array [
|
|
156
|
+
Object {
|
|
157
|
+
"type": "paragraph",
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
"type": "tableCell",
|
|
161
|
+
},
|
|
162
|
+
Object {
|
|
163
|
+
"attrs": Object {
|
|
164
|
+
"background": null,
|
|
165
|
+
"colspan": 1,
|
|
166
|
+
"colwidth": null,
|
|
167
|
+
"rowspan": 1,
|
|
168
|
+
},
|
|
169
|
+
"content": Array [
|
|
170
|
+
Object {
|
|
171
|
+
"type": "paragraph",
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
"type": "tableCell",
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
"type": "tableRow",
|
|
178
|
+
},
|
|
179
|
+
Object {
|
|
180
|
+
"content": Array [
|
|
181
|
+
Object {
|
|
182
|
+
"attrs": Object {
|
|
183
|
+
"background": null,
|
|
184
|
+
"colspan": 1,
|
|
185
|
+
"colwidth": null,
|
|
186
|
+
"rowspan": 1,
|
|
187
|
+
},
|
|
188
|
+
"content": Array [
|
|
189
|
+
Object {
|
|
190
|
+
"type": "paragraph",
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
"type": "tableCell",
|
|
194
|
+
},
|
|
195
|
+
Object {
|
|
196
|
+
"attrs": Object {
|
|
197
|
+
"background": null,
|
|
198
|
+
"colspan": 1,
|
|
199
|
+
"colwidth": null,
|
|
200
|
+
"rowspan": 1,
|
|
201
|
+
},
|
|
202
|
+
"content": Array [
|
|
203
|
+
Object {
|
|
204
|
+
"type": "paragraph",
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
"type": "tableCell",
|
|
208
|
+
},
|
|
209
|
+
Object {
|
|
210
|
+
"attrs": Object {
|
|
211
|
+
"background": null,
|
|
212
|
+
"colspan": 1,
|
|
213
|
+
"colwidth": null,
|
|
214
|
+
"rowspan": 1,
|
|
215
|
+
},
|
|
216
|
+
"content": Array [
|
|
217
|
+
Object {
|
|
218
|
+
"type": "paragraph",
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
"type": "tableCell",
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
"type": "tableRow",
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
"type": "table",
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
"type": "layoutColumn",
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
"type": "layoutSection",
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
"type": "doc",
|
|
237
|
+
}
|
|
238
|
+
`;
|