@atlaskit/editor-plugin-table 2.1.5 → 2.1.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 +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/plugins/table/types.d.ts +1 -13
- package/dist/types-ts4.5/plugins/table/types.d.ts +1 -13
- package/package.json +1 -1
- package/src/plugins/table/types.ts +1 -6
- package/tmp/api-report-tmp.d.ts +104 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 2.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`32ca42e82c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/32ca42e82c3) - Extracted internal editor card plugin to new package `editor-plugin-card`.
|
|
8
|
+
|
|
3
9
|
## 2.1.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -44,19 +44,7 @@ export interface PluginConfig {
|
|
|
44
44
|
tableOverflowShadowsOptimization?: boolean;
|
|
45
45
|
allowDistributeColumns?: boolean;
|
|
46
46
|
}
|
|
47
|
-
export
|
|
48
|
-
resizeHandlePos: number | null;
|
|
49
|
-
dragging: {
|
|
50
|
-
startX: number;
|
|
51
|
-
startWidth: number;
|
|
52
|
-
} | null;
|
|
53
|
-
lastClick: {
|
|
54
|
-
x: number;
|
|
55
|
-
y: number;
|
|
56
|
-
time: number;
|
|
57
|
-
} | null;
|
|
58
|
-
lastColumnResizable?: boolean;
|
|
59
|
-
}
|
|
47
|
+
export type { ColumnResizingPluginState } from '@atlaskit/editor-common/types';
|
|
60
48
|
export type CellColumnPositioning = Pick<Rect, 'right' | 'left'>;
|
|
61
49
|
export interface TablePluginState {
|
|
62
50
|
editorHasFocus?: boolean;
|
|
@@ -44,19 +44,7 @@ export interface PluginConfig {
|
|
|
44
44
|
tableOverflowShadowsOptimization?: boolean;
|
|
45
45
|
allowDistributeColumns?: boolean;
|
|
46
46
|
}
|
|
47
|
-
export
|
|
48
|
-
resizeHandlePos: number | null;
|
|
49
|
-
dragging: {
|
|
50
|
-
startX: number;
|
|
51
|
-
startWidth: number;
|
|
52
|
-
} | null;
|
|
53
|
-
lastClick: {
|
|
54
|
-
x: number;
|
|
55
|
-
y: number;
|
|
56
|
-
time: number;
|
|
57
|
-
} | null;
|
|
58
|
-
lastColumnResizable?: boolean;
|
|
59
|
-
}
|
|
47
|
+
export type { ColumnResizingPluginState } from '@atlaskit/editor-common/types';
|
|
60
48
|
export type CellColumnPositioning = Pick<Rect, 'right' | 'left'>;
|
|
61
49
|
export interface TablePluginState {
|
|
62
50
|
editorHasFocus?: boolean;
|
package/package.json
CHANGED
|
@@ -59,12 +59,7 @@ export interface PluginConfig {
|
|
|
59
59
|
allowDistributeColumns?: boolean;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export
|
|
63
|
-
resizeHandlePos: number | null;
|
|
64
|
-
dragging: { startX: number; startWidth: number } | null;
|
|
65
|
-
lastClick: { x: number; y: number; time: number } | null;
|
|
66
|
-
lastColumnResizable?: boolean;
|
|
67
|
-
}
|
|
62
|
+
export type { ColumnResizingPluginState } from '@atlaskit/editor-common/types';
|
|
68
63
|
|
|
69
64
|
/*
|
|
70
65
|
* This type represents the start and end from a cell in a column,
|
|
@@ -0,0 +1,104 @@
|
|
|
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 { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
8
|
+
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
9
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
10
|
+
import type { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
11
|
+
import type { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
|
|
12
|
+
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
13
|
+
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
14
|
+
import { TableLayout } from '@atlaskit/adf-schema';
|
|
15
|
+
import type { widthPlugin } from '@atlaskit/editor-plugin-width';
|
|
16
|
+
|
|
17
|
+
// @public (undocumented)
|
|
18
|
+
type InsertTableAction = (analyticsPayload: AnalyticsEventPayload) => Command;
|
|
19
|
+
|
|
20
|
+
// @public (undocumented)
|
|
21
|
+
type PermittedLayoutsDescriptor = 'all' | TableLayout[];
|
|
22
|
+
|
|
23
|
+
// @public (undocumented)
|
|
24
|
+
interface PluginConfig {
|
|
25
|
+
// (undocumented)
|
|
26
|
+
advanced?: boolean;
|
|
27
|
+
// (undocumented)
|
|
28
|
+
allowAddColumnWithCustomStep?: boolean;
|
|
29
|
+
// (undocumented)
|
|
30
|
+
allowBackgroundColor?: boolean;
|
|
31
|
+
// (undocumented)
|
|
32
|
+
allowCellOptionsInFloatingToolbar?: boolean;
|
|
33
|
+
// (undocumented)
|
|
34
|
+
allowCollapse?: boolean;
|
|
35
|
+
// (undocumented)
|
|
36
|
+
allowColumnResizing?: boolean;
|
|
37
|
+
// (undocumented)
|
|
38
|
+
allowColumnSorting?: boolean;
|
|
39
|
+
// (undocumented)
|
|
40
|
+
allowControls?: boolean;
|
|
41
|
+
// (undocumented)
|
|
42
|
+
allowDistributeColumns?: boolean;
|
|
43
|
+
// (undocumented)
|
|
44
|
+
allowHeaderColumn?: boolean;
|
|
45
|
+
// (undocumented)
|
|
46
|
+
allowHeaderRow?: boolean;
|
|
47
|
+
// (undocumented)
|
|
48
|
+
allowMergeCells?: boolean;
|
|
49
|
+
// (undocumented)
|
|
50
|
+
allowNumberColumn?: boolean;
|
|
51
|
+
// (undocumented)
|
|
52
|
+
initialRenderOptimization?: boolean;
|
|
53
|
+
// (undocumented)
|
|
54
|
+
isHeaderRowRequired?: boolean;
|
|
55
|
+
// (undocumented)
|
|
56
|
+
mouseMoveOptimization?: boolean;
|
|
57
|
+
// (undocumented)
|
|
58
|
+
permittedLayouts?: PermittedLayoutsDescriptor;
|
|
59
|
+
// (undocumented)
|
|
60
|
+
stickyHeaders?: boolean;
|
|
61
|
+
// (undocumented)
|
|
62
|
+
stickyHeadersOptimization?: boolean;
|
|
63
|
+
// (undocumented)
|
|
64
|
+
tableCellOptimization?: boolean;
|
|
65
|
+
// (undocumented)
|
|
66
|
+
tableOverflowShadowsOptimization?: boolean;
|
|
67
|
+
// (undocumented)
|
|
68
|
+
tableRenderOptimization?: boolean;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// @public (undocumented)
|
|
72
|
+
interface TablePluginOptions {
|
|
73
|
+
// (undocumented)
|
|
74
|
+
allowContextualMenu?: boolean;
|
|
75
|
+
// (undocumented)
|
|
76
|
+
breakoutEnabled?: boolean;
|
|
77
|
+
// (undocumented)
|
|
78
|
+
editorSelectionAPI?: EditorSelectionAPI;
|
|
79
|
+
// (undocumented)
|
|
80
|
+
fullWidthEnabled?: boolean;
|
|
81
|
+
// (undocumented)
|
|
82
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
83
|
+
// (undocumented)
|
|
84
|
+
tableOptions: PluginConfig;
|
|
85
|
+
// (undocumented)
|
|
86
|
+
wasFullWidthEnabled?: boolean;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// @public (undocumented)
|
|
90
|
+
export const tablesPlugin: NextEditorPlugin<'table', {
|
|
91
|
+
pluginConfiguration: TablePluginOptions | undefined;
|
|
92
|
+
actions: {
|
|
93
|
+
insertTable: InsertTableAction;
|
|
94
|
+
};
|
|
95
|
+
dependencies: [
|
|
96
|
+
typeof analyticsPlugin,
|
|
97
|
+
typeof contentInsertionPlugin,
|
|
98
|
+
typeof widthPlugin
|
|
99
|
+
];
|
|
100
|
+
}>;
|
|
101
|
+
|
|
102
|
+
// (No @packageDocumentation comment for this package)
|
|
103
|
+
|
|
104
|
+
```
|