@atlaskit/editor-plugin-table 7.5.0 → 7.5.1
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/docs/0-intro.tsx +3 -2
- package/package.json +1 -1
- package/src/nodeviews/TableContainer.tsx +1 -1
- package/src/nodeviews/TableResizer.tsx +1 -1
- package/src/ui/TableFloatingColumnControls/ColumnControls/index.tsx +4 -1
- package/src/ui/TableFloatingControls/RowControls/DragControls.tsx +4 -1
- package/tsconfig.dev.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 7.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#75947](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75947) [`43549c3789b1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/43549c3789b1) - Migrate @atlaskit/editor-core to use declarative entry points
|
|
8
|
+
|
|
3
9
|
## 7.5.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/docs/0-intro.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
import { AtlassianInternalWarning, code, md } from '@atlaskit/docs';
|
|
4
|
-
|
|
4
|
+
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
5
|
+
import { createEditorUseOnlyNotice } from '@atlaskit/editor-common/doc-utils';
|
|
5
6
|
import { token } from '@atlaskit/tokens';
|
|
6
7
|
|
|
7
8
|
export default md`
|
|
@@ -23,7 +24,7 @@ ${createEditorUseOnlyNotice('Editor Plugin Table', [
|
|
|
23
24
|
---
|
|
24
25
|
|
|
25
26
|
The \`dependencies\`, \`configuration\`, \`state\`, \`actions\`, and \`commands\` of the plugin are defined
|
|
26
|
-
below:
|
|
27
|
+
below:
|
|
27
28
|
|
|
28
29
|
${code`
|
|
29
30
|
type TablePlugin = NextEditorPlugin<
|
package/package.json
CHANGED
|
@@ -177,7 +177,7 @@ export const ResizableTableContainer = React.memo(
|
|
|
177
177
|
);
|
|
178
178
|
|
|
179
179
|
const displayGapCursor = useCallback(
|
|
180
|
-
(toggle) => {
|
|
180
|
+
(toggle: boolean) => {
|
|
181
181
|
return (
|
|
182
182
|
pluginInjectionApi?.core?.actions.execute(
|
|
183
183
|
pluginInjectionApi?.selection?.commands.displayGapCursor(toggle),
|
|
@@ -290,7 +290,7 @@ export const TableResizer = ({
|
|
|
290
290
|
]);
|
|
291
291
|
|
|
292
292
|
const handleResize = useCallback(
|
|
293
|
-
(originalState, delta) => {
|
|
293
|
+
(originalState: any, delta: any) => {
|
|
294
294
|
countFrames();
|
|
295
295
|
const newWidth = originalState.width + delta.width;
|
|
296
296
|
let pos: number | undefined;
|
|
@@ -159,7 +159,10 @@ export const ColumnControls = ({
|
|
|
159
159
|
}, [editorView, tableActive]);
|
|
160
160
|
|
|
161
161
|
const toggleDragMenuHandler = useCallback(
|
|
162
|
-
(
|
|
162
|
+
(
|
|
163
|
+
trigger: TriggerType,
|
|
164
|
+
event: MouseEvent<HTMLButtonElement, globalThis.MouseEvent> | undefined,
|
|
165
|
+
) => {
|
|
163
166
|
const { state, dispatch } = editorView;
|
|
164
167
|
if (event?.shiftKey) {
|
|
165
168
|
return;
|
|
@@ -114,7 +114,10 @@ const DragControlsComponent = ({
|
|
|
114
114
|
}, [editorView]);
|
|
115
115
|
|
|
116
116
|
const toggleDragMenuHandler = useCallback(
|
|
117
|
-
(
|
|
117
|
+
(
|
|
118
|
+
trigger: TriggerType,
|
|
119
|
+
event: MouseEvent<HTMLButtonElement, globalThis.MouseEvent> | undefined,
|
|
120
|
+
) => {
|
|
118
121
|
if (event?.shiftKey) {
|
|
119
122
|
return;
|
|
120
123
|
}
|
package/tsconfig.dev.json
CHANGED