@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 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
- import { createEditorUseOnlyNotice } from '@atlaskit/editor-core/docs/editor-use-only';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "7.5.0",
3
+ "version": "7.5.1",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -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
- (trigger: TriggerType, event) => {
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
- (trigger: TriggerType, event) => {
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
@@ -40,7 +40,7 @@
40
40
  "path": "../../../build/website/docs/tsconfig.app.json"
41
41
  },
42
42
  {
43
- "path": "../editor-core/tsconfig.app.json"
43
+ "path": "../editor-common/tsconfig.app.json"
44
44
  },
45
45
  {
46
46
  "path": "../../design-system/tokens/tsconfig.app.json"