@atlaskit/editor-plugin-table 0.0.5 → 0.0.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 0.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 0.0.5
4
10
 
5
11
  ### Patch Changes
@@ -99,6 +99,8 @@ var mergeCellsWithAnalytics = function mergeCellsWithAnalytics(editorAnalyticsAP
99
99
  actionSubject: _analytics.ACTION_SUBJECT.TABLE,
100
100
  actionSubjectId: null,
101
101
  attributes: {
102
+ inputMethod: _analytics.INPUT_METHOD.CONTEXT_MENU,
103
+ // TODO: merge with floating toolbar once command is updated
102
104
  horizontalCells: horizontalCells,
103
105
  verticalCells: verticalCells,
104
106
  totalCells: totalCells,
@@ -137,6 +139,8 @@ var splitCellWithAnalytics = function splitCellWithAnalytics(editorAnalyticsAPI)
137
139
  actionSubject: _analytics.ACTION_SUBJECT.TABLE,
138
140
  actionSubjectId: null,
139
141
  attributes: {
142
+ inputMethod: _analytics.INPUT_METHOD.CONTEXT_MENU,
143
+ // TODO: merge with floating toolbar once command is updated
140
144
  horizontalCells: horizontalCells,
141
145
  verticalCells: verticalCells,
142
146
  totalCells: horizontalCells * verticalCells,
@@ -170,6 +174,8 @@ var setColorWithAnalytics = function setColorWithAnalytics(editorAnalyticsAPI) {
170
174
  actionSubject: _analytics.ACTION_SUBJECT.TABLE,
171
175
  actionSubjectId: null,
172
176
  attributes: {
177
+ inputMethod: _analytics.INPUT_METHOD.CONTEXT_MENU,
178
+ // TODO: merge with floating toolbar once command is updated
173
179
  cellColor: (_adfSchema.tableBackgroundColorPalette.get(cellColor.toLowerCase()) || cellColor).toLowerCase(),
174
180
  horizontalCells: horizontalCells,
175
181
  verticalCells: verticalCells,
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "0.0.5"
3
+ "version": "0.0.6"
4
4
  }
@@ -59,6 +59,8 @@ export const mergeCellsWithAnalytics = editorAnalyticsAPI => withEditorAnalytics
59
59
  actionSubject: ACTION_SUBJECT.TABLE,
60
60
  actionSubjectId: null,
61
61
  attributes: {
62
+ inputMethod: INPUT_METHOD.CONTEXT_MENU,
63
+ // TODO: merge with floating toolbar once command is updated
62
64
  horizontalCells,
63
65
  verticalCells,
64
66
  totalCells,
@@ -93,6 +95,8 @@ export const splitCellWithAnalytics = editorAnalyticsAPI => withEditorAnalyticsA
93
95
  actionSubject: ACTION_SUBJECT.TABLE,
94
96
  actionSubjectId: null,
95
97
  attributes: {
98
+ inputMethod: INPUT_METHOD.CONTEXT_MENU,
99
+ // TODO: merge with floating toolbar once command is updated
96
100
  horizontalCells,
97
101
  verticalCells,
98
102
  totalCells: horizontalCells * verticalCells,
@@ -120,6 +124,8 @@ export const setColorWithAnalytics = editorAnalyticsAPI => (cellColor, targetCel
120
124
  actionSubject: ACTION_SUBJECT.TABLE,
121
125
  actionSubjectId: null,
122
126
  attributes: {
127
+ inputMethod: INPUT_METHOD.CONTEXT_MENU,
128
+ // TODO: merge with floating toolbar once command is updated
123
129
  cellColor: (tableBackgroundColorPalette.get(cellColor.toLowerCase()) || cellColor).toLowerCase(),
124
130
  horizontalCells,
125
131
  verticalCells,
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "0.0.5"
3
+ "version": "0.0.6"
4
4
  }
@@ -70,6 +70,8 @@ export var mergeCellsWithAnalytics = function mergeCellsWithAnalytics(editorAnal
70
70
  actionSubject: ACTION_SUBJECT.TABLE,
71
71
  actionSubjectId: null,
72
72
  attributes: {
73
+ inputMethod: INPUT_METHOD.CONTEXT_MENU,
74
+ // TODO: merge with floating toolbar once command is updated
73
75
  horizontalCells: horizontalCells,
74
76
  verticalCells: verticalCells,
75
77
  totalCells: totalCells,
@@ -105,6 +107,8 @@ export var splitCellWithAnalytics = function splitCellWithAnalytics(editorAnalyt
105
107
  actionSubject: ACTION_SUBJECT.TABLE,
106
108
  actionSubjectId: null,
107
109
  attributes: {
110
+ inputMethod: INPUT_METHOD.CONTEXT_MENU,
111
+ // TODO: merge with floating toolbar once command is updated
108
112
  horizontalCells: horizontalCells,
109
113
  verticalCells: verticalCells,
110
114
  totalCells: horizontalCells * verticalCells,
@@ -135,6 +139,8 @@ export var setColorWithAnalytics = function setColorWithAnalytics(editorAnalytic
135
139
  actionSubject: ACTION_SUBJECT.TABLE,
136
140
  actionSubjectId: null,
137
141
  attributes: {
142
+ inputMethod: INPUT_METHOD.CONTEXT_MENU,
143
+ // TODO: merge with floating toolbar once command is updated
138
144
  cellColor: (tableBackgroundColorPalette.get(cellColor.toLowerCase()) || cellColor).toLowerCase(),
139
145
  horizontalCells: horizontalCells,
140
146
  verticalCells: verticalCells,
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "0.0.5"
3
+ "version": "0.0.6"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,13 +25,13 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@atlaskit/adf-schema": "^24.0.0",
28
- "@atlaskit/editor-common": "^69.4.0",
28
+ "@atlaskit/editor-common": "^70.0.0",
29
29
  "@atlaskit/editor-shared-styles": "^2.2.0",
30
- "@atlaskit/editor-tables": "^2.1.0",
31
- "@atlaskit/icon": "^21.10.0",
30
+ "@atlaskit/editor-tables": "^2.2.0",
31
+ "@atlaskit/icon": "^21.11.0",
32
32
  "@atlaskit/theme": "^12.1.0",
33
33
  "@atlaskit/tokens": "^0.10.0",
34
- "@atlaskit/tooltip": "^17.5.0",
34
+ "@atlaskit/tooltip": "^17.6.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "@emotion/react": "^11.7.1",
37
37
  "@types/prosemirror-state": "^1.2.0",
@@ -57,10 +57,10 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@atlaskit/button": "^16.3.0",
60
- "@atlaskit/editor-core": "^172.3.0",
60
+ "@atlaskit/editor-core": "^173.0.0",
61
61
  "@atlaskit/editor-test-helpers": "^17.2.0",
62
62
  "@atlaskit/link-provider": "^1.2.6",
63
- "@atlaskit/logo": "^13.9.0",
63
+ "@atlaskit/logo": "^13.10.0",
64
64
  "@atlaskit/media-integration-test-helpers": "^2.6.0",
65
65
  "@atlaskit/synchrony-test-helpers": "^2.3.0",
66
66
  "@atlaskit/visual-regression": "*",
package/report.api.md CHANGED
@@ -1,12 +1,17 @@
1
+ <!-- API Report Version: 2.2 -->
2
+
1
3
  ## API Report File for "@atlaskit/editor-plugin-table"
2
4
 
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
5
+ > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
6
+ > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
+
8
+ ### Table of contents
4
9
 
5
- <!--
6
- Generated API Report version: 2.0
7
- -->
10
+ - [Main Entry Types](#main-entry-types)
8
11
 
9
- [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
12
+ ### Main Entry Types
13
+
14
+ <!--SECTION START: Main Entry Types-->
10
15
 
11
16
  ```ts
12
17
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
@@ -16,7 +21,7 @@ import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
16
21
  import { TableLayout } from '@atlaskit/adf-schema';
17
22
 
18
23
  // @public (undocumented)
19
- type PermittedLayoutsDescriptor = TableLayout[] | 'all';
24
+ type PermittedLayoutsDescriptor = 'all' | TableLayout[];
20
25
 
21
26
  // @public (undocumented)
22
27
  interface PluginConfig {
@@ -95,3 +100,5 @@ export const tablesPlugin: (
95
100
 
96
101
  // (No @packageDocumentation comment for this package)
97
102
  ```
103
+
104
+ <!--SECTION END: Main Entry Types-->
@@ -111,6 +111,7 @@ export const mergeCellsWithAnalytics = (
111
111
  actionSubject: ACTION_SUBJECT.TABLE,
112
112
  actionSubjectId: null,
113
113
  attributes: {
114
+ inputMethod: INPUT_METHOD.CONTEXT_MENU, // TODO: merge with floating toolbar once command is updated
114
115
  horizontalCells,
115
116
  verticalCells,
116
117
  totalCells,
@@ -143,6 +144,7 @@ export const splitCellWithAnalytics = (
143
144
  actionSubject: ACTION_SUBJECT.TABLE,
144
145
  actionSubjectId: null,
145
146
  attributes: {
147
+ inputMethod: INPUT_METHOD.CONTEXT_MENU, // TODO: merge with floating toolbar once command is updated
146
148
  horizontalCells,
147
149
  verticalCells,
148
150
  totalCells: horizontalCells * verticalCells,
@@ -172,6 +174,7 @@ export const setColorWithAnalytics = (
172
174
  actionSubject: ACTION_SUBJECT.TABLE,
173
175
  actionSubjectId: null,
174
176
  attributes: {
177
+ inputMethod: INPUT_METHOD.CONTEXT_MENU, // TODO: merge with floating toolbar once command is updated
175
178
  cellColor: (
176
179
  tableBackgroundColorPalette.get(cellColor.toLowerCase()) || cellColor
177
180
  ).toLowerCase(),
@@ -0,0 +1,91 @@
1
+ ## API Report File for "@atlaskit/editor-plugin-table"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
8
+ import type { EditorPlugin } from '@atlaskit/editor-common/types';
9
+ import type { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
10
+ import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
11
+ import { TableLayout } from '@atlaskit/adf-schema';
12
+
13
+ // @public (undocumented)
14
+ type PermittedLayoutsDescriptor = 'all' | TableLayout[];
15
+
16
+ // @public (undocumented)
17
+ interface PluginConfig {
18
+ // (undocumented)
19
+ advanced?: boolean;
20
+ // (undocumented)
21
+ allowAddColumnWithCustomStep?: boolean;
22
+ // (undocumented)
23
+ allowBackgroundColor?: boolean;
24
+ // (undocumented)
25
+ allowCellOptionsInFloatingToolbar?: boolean;
26
+ // (undocumented)
27
+ allowCollapse?: boolean;
28
+ // (undocumented)
29
+ allowColumnResizing?: boolean;
30
+ // (undocumented)
31
+ allowColumnSorting?: boolean;
32
+ // (undocumented)
33
+ allowControls?: boolean;
34
+ // (undocumented)
35
+ allowDistributeColumns?: boolean;
36
+ // (undocumented)
37
+ allowHeaderColumn?: boolean;
38
+ // (undocumented)
39
+ allowHeaderRow?: boolean;
40
+ // (undocumented)
41
+ allowMergeCells?: boolean;
42
+ // (undocumented)
43
+ allowNumberColumn?: boolean;
44
+ // (undocumented)
45
+ initialRenderOptimization?: boolean;
46
+ // (undocumented)
47
+ isHeaderRowRequired?: boolean;
48
+ // (undocumented)
49
+ mouseMoveOptimization?: boolean;
50
+ // (undocumented)
51
+ permittedLayouts?: PermittedLayoutsDescriptor;
52
+ // (undocumented)
53
+ stickToolbarToBottom?: boolean;
54
+ // (undocumented)
55
+ stickyHeaders?: boolean;
56
+ // (undocumented)
57
+ stickyHeadersOptimization?: boolean;
58
+ // (undocumented)
59
+ tableCellOptimization?: boolean;
60
+ // (undocumented)
61
+ tableOverflowShadowsOptimization?: boolean;
62
+ // (undocumented)
63
+ tableRenderOptimization?: boolean;
64
+ }
65
+
66
+ // @public (undocumented)
67
+ interface TablePluginOptions {
68
+ // (undocumented)
69
+ allowContextualMenu?: boolean;
70
+ // (undocumented)
71
+ breakoutEnabled?: boolean;
72
+ // (undocumented)
73
+ editorAnalyticsAPI?: EditorAnalyticsAPI;
74
+ // (undocumented)
75
+ editorSelectionAPI?: EditorSelectionAPI;
76
+ // (undocumented)
77
+ fullWidthEnabled?: boolean;
78
+ // (undocumented)
79
+ getEditorFeatureFlags?: GetEditorFeatureFlags;
80
+ // (undocumented)
81
+ tableOptions: PluginConfig;
82
+ // (undocumented)
83
+ wasFullWidthEnabled?: boolean;
84
+ }
85
+
86
+ // @public (undocumented)
87
+ export const tablesPlugin: (options?: TablePluginOptions | undefined) => EditorPlugin;
88
+
89
+ // (No @packageDocumentation comment for this package)
90
+
91
+ ```