@atlaskit/editor-plugin-table 20.0.0 → 22.0.0

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.
Files changed (117) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/dist/cjs/nodeviews/TableComponent.js +2 -2
  3. package/dist/cjs/nodeviews/TableResizer.js +2 -2
  4. package/dist/cjs/pm-plugins/keymap.js +12 -12
  5. package/dist/cjs/pm-plugins/main.js +3 -3
  6. package/dist/cjs/pm-plugins/utils/decoration.js +2 -2
  7. package/dist/cjs/pm-plugins/view-mode-sort/index.js +2 -2
  8. package/dist/cjs/tablePlugin.js +40 -45
  9. package/dist/cjs/ui/ColumnResizeWidget/index.js +2 -2
  10. package/dist/cjs/ui/ContentComponent.js +0 -1
  11. package/dist/cjs/ui/DragHandle/index.js +2 -2
  12. package/dist/cjs/ui/FloatingContextualButton/index.js +2 -2
  13. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +2 -2
  14. package/dist/cjs/ui/FloatingDeleteButton/DeleteButton.js +2 -2
  15. package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +2 -2
  16. package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +3 -3
  17. package/dist/cjs/ui/FloatingInsertButton/index.js +2 -2
  18. package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -2
  19. package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +3 -3
  20. package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -2
  21. package/dist/cjs/ui/TableFullWidthLabel/index.js +2 -2
  22. package/dist/cjs/ui/global-styles.js +1 -2
  23. package/dist/cjs/ui/toolbar.js +5 -11
  24. package/dist/es2019/nodeviews/TableComponent.js +1 -1
  25. package/dist/es2019/nodeviews/TableResizer.js +1 -1
  26. package/dist/es2019/pm-plugins/keymap.js +2 -2
  27. package/dist/es2019/pm-plugins/main.js +3 -3
  28. package/dist/es2019/pm-plugins/utils/decoration.js +1 -1
  29. package/dist/es2019/pm-plugins/view-mode-sort/index.js +1 -1
  30. package/dist/es2019/tablePlugin.js +4 -10
  31. package/dist/es2019/ui/ColumnResizeWidget/index.js +1 -1
  32. package/dist/es2019/ui/ContentComponent.js +0 -1
  33. package/dist/es2019/ui/DragHandle/index.js +1 -1
  34. package/dist/es2019/ui/FloatingContextualButton/index.js +1 -1
  35. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
  36. package/dist/es2019/ui/FloatingDeleteButton/DeleteButton.js +1 -1
  37. package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +1 -1
  38. package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +1 -1
  39. package/dist/es2019/ui/FloatingInsertButton/index.js +1 -1
  40. package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
  41. package/dist/es2019/ui/TableFloatingControls/CornerControls/DragCornerControls.js +1 -1
  42. package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
  43. package/dist/es2019/ui/TableFullWidthLabel/index.js +1 -1
  44. package/dist/es2019/ui/global-styles.js +1 -2
  45. package/dist/es2019/ui/toolbar.js +4 -10
  46. package/dist/esm/nodeviews/TableComponent.js +1 -1
  47. package/dist/esm/nodeviews/TableResizer.js +1 -1
  48. package/dist/esm/pm-plugins/keymap.js +12 -12
  49. package/dist/esm/pm-plugins/main.js +3 -3
  50. package/dist/esm/pm-plugins/utils/decoration.js +1 -1
  51. package/dist/esm/pm-plugins/view-mode-sort/index.js +1 -1
  52. package/dist/esm/tablePlugin.js +40 -45
  53. package/dist/esm/ui/ColumnResizeWidget/index.js +1 -1
  54. package/dist/esm/ui/ContentComponent.js +0 -1
  55. package/dist/esm/ui/DragHandle/index.js +1 -1
  56. package/dist/esm/ui/FloatingContextualButton/index.js +1 -1
  57. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
  58. package/dist/esm/ui/FloatingDeleteButton/DeleteButton.js +1 -1
  59. package/dist/esm/ui/FloatingDragMenu/DragMenu.js +1 -1
  60. package/dist/esm/ui/FloatingInsertButton/InsertButton.js +1 -1
  61. package/dist/esm/ui/FloatingInsertButton/index.js +1 -1
  62. package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
  63. package/dist/esm/ui/TableFloatingControls/CornerControls/DragCornerControls.js +1 -1
  64. package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
  65. package/dist/esm/ui/TableFullWidthLabel/index.js +1 -1
  66. package/dist/esm/ui/global-styles.js +1 -2
  67. package/dist/esm/ui/toolbar.js +5 -11
  68. package/dist/types/nodeviews/TableComponent.d.ts +2 -2
  69. package/dist/types/pm-plugins/commands/column-resize.d.ts +1 -1
  70. package/dist/types/pm-plugins/commands/commands-with-analytics.d.ts +1 -1
  71. package/dist/types/pm-plugins/commands/go-to-next-cell.d.ts +1 -1
  72. package/dist/types/pm-plugins/commands/selection.d.ts +1 -1
  73. package/dist/types/pm-plugins/decorations/utils/column-resizing.d.ts +1 -1
  74. package/dist/types/pm-plugins/drag-and-drop/commands-with-analytics.d.ts +1 -1
  75. package/dist/types/pm-plugins/keymap.d.ts +2 -2
  76. package/dist/types/pm-plugins/main.d.ts +2 -2
  77. package/dist/types/pm-plugins/table-selection-keymap.d.ts +1 -1
  78. package/dist/types/pm-plugins/utils/decoration.d.ts +1 -1
  79. package/dist/types/pm-plugins/utils/table.d.ts +1 -1
  80. package/dist/types/tablePluginType.d.ts +0 -6
  81. package/dist/types/types/index.d.ts +1 -1
  82. package/dist/types/ui/DragHandle/index.d.ts +2 -2
  83. package/dist/types/ui/FloatingContextualMenu/ContextualMenu.d.ts +2 -2
  84. package/dist/types/ui/FloatingDeleteButton/DeleteButton.d.ts +2 -2
  85. package/dist/types/ui/FloatingDragMenu/DragMenu.d.ts +2 -2
  86. package/dist/types/ui/FloatingInsertButton/InsertButton.d.ts +3 -3
  87. package/dist/types/ui/FloatingInsertButton/index.d.ts +2 -2
  88. package/dist/types/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +2 -2
  89. package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +3 -3
  90. package/dist/types/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +2 -2
  91. package/dist/types/ui/global-styles.d.ts +1 -2
  92. package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +2 -2
  93. package/dist/types-ts4.5/pm-plugins/commands/column-resize.d.ts +1 -1
  94. package/dist/types-ts4.5/pm-plugins/commands/commands-with-analytics.d.ts +1 -1
  95. package/dist/types-ts4.5/pm-plugins/commands/go-to-next-cell.d.ts +1 -1
  96. package/dist/types-ts4.5/pm-plugins/commands/selection.d.ts +1 -1
  97. package/dist/types-ts4.5/pm-plugins/decorations/utils/column-resizing.d.ts +1 -1
  98. package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands-with-analytics.d.ts +1 -1
  99. package/dist/types-ts4.5/pm-plugins/keymap.d.ts +2 -2
  100. package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -2
  101. package/dist/types-ts4.5/pm-plugins/table-selection-keymap.d.ts +1 -1
  102. package/dist/types-ts4.5/pm-plugins/utils/decoration.d.ts +1 -1
  103. package/dist/types-ts4.5/pm-plugins/utils/table.d.ts +1 -1
  104. package/dist/types-ts4.5/tablePluginType.d.ts +0 -6
  105. package/dist/types-ts4.5/types/index.d.ts +1 -1
  106. package/dist/types-ts4.5/ui/DragHandle/index.d.ts +2 -2
  107. package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +2 -2
  108. package/dist/types-ts4.5/ui/FloatingDeleteButton/DeleteButton.d.ts +2 -2
  109. package/dist/types-ts4.5/ui/FloatingDragMenu/DragMenu.d.ts +2 -2
  110. package/dist/types-ts4.5/ui/FloatingInsertButton/InsertButton.d.ts +3 -3
  111. package/dist/types-ts4.5/ui/FloatingInsertButton/index.d.ts +2 -2
  112. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +2 -2
  113. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +3 -3
  114. package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +2 -2
  115. package/dist/types-ts4.5/ui/global-styles.d.ts +1 -2
  116. package/package.json +20 -17
  117. package/report.api.md +1 -1
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl';
3
3
  import type { DispatchAnalyticsEvent, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
5
5
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
@@ -35,7 +35,7 @@ export declare class FloatingInsertButton extends React.Component<Props & Wrappe
35
35
  private insertRow;
36
36
  private insertColumn;
37
37
  }
38
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
38
+ declare const _default: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
39
39
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
40
40
  };
41
41
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl';
3
3
  import type { CornerControlProps } from './types';
4
- export declare const CornerControls: React.FC<import("react-intl-next").WithIntlProps<CornerControlProps & WrappedComponentProps>> & {
4
+ export declare const CornerControls: React.FC<import("react-intl").WithIntlProps<CornerControlProps & WrappedComponentProps>> & {
5
5
  WrappedComponent: React.ComponentType<CornerControlProps & WrappedComponentProps>;
6
6
  };
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { TablePlugin } from '../../../tablePluginType';
5
5
  import type { CornerControlProps } from './types';
6
- export declare const DragCornerControlsWithSelection: React.FC<import("react-intl-next").WithIntlProps<CornerControlProps & WrappedComponentProps & {
6
+ export declare const DragCornerControlsWithSelection: React.FC<import("react-intl").WithIntlProps<CornerControlProps & WrappedComponentProps & {
7
7
  api?: ExtractInjectionAPI<TablePlugin>;
8
8
  }>> & {
9
9
  WrappedComponent: React.ComponentType<CornerControlProps & WrappedComponentProps & {
10
10
  api?: ExtractInjectionAPI<TablePlugin>;
11
11
  }>;
12
12
  };
13
- export declare const DragCornerControls: React.FC<import("react-intl-next").WithIntlProps<CornerControlProps & WrappedComponentProps>> & {
13
+ export declare const DragCornerControls: React.FC<import("react-intl").WithIntlProps<CornerControlProps & WrappedComponentProps>> & {
14
14
  WrappedComponent: React.ComponentType<CornerControlProps & WrappedComponentProps>;
15
15
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl';
3
3
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  export interface Props {
@@ -14,6 +14,6 @@ export interface Props {
14
14
  stickyTop?: number;
15
15
  tableRef: HTMLTableElement;
16
16
  }
17
- export declare const RowControls: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
17
+ export declare const RowControls: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
18
18
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
19
19
  };
@@ -5,8 +5,7 @@
5
5
  import { jsx } from '@emotion/react';
6
6
  import type { FeatureFlags } from '@atlaskit/editor-common/types';
7
7
  import type { PluginInjectionAPI } from '../types';
8
- export declare const GlobalStylesWrapper: ({ featureFlags, isDragAndDropEnabledOption, api, }: {
8
+ export declare const GlobalStylesWrapper: ({ featureFlags, api, }: {
9
9
  api?: PluginInjectionAPI;
10
10
  featureFlags: FeatureFlags | undefined;
11
- isDragAndDropEnabledOption?: boolean;
12
11
  }) => jsx.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { IntlShape } from 'react-intl-next';
2
+ import type { IntlShape } from 'react-intl';
3
3
  import type { TableColumnOrdering } from '@atlaskit/custom-steps';
4
4
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
5
5
  import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
@@ -42,7 +42,7 @@ interface ComponentProps {
42
42
  tableActive: boolean;
43
43
  view: EditorView;
44
44
  }
45
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<ComponentProps>> & {
45
+ declare const _default: React.FC<import("react-intl").WithIntlProps<ComponentProps>> & {
46
46
  WrappedComponent: React.ComponentType<ComponentProps>;
47
47
  };
48
48
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next/src/types';
1
+ import type { IntlShape } from 'react-intl/src/types';
2
2
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
3
  import type { Command, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
4
4
  import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next/src/types';
1
+ import type { IntlShape } from 'react-intl/src/types';
2
2
  import type { TableLayout } from '@atlaskit/adf-schema';
3
3
  import type { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
4
4
  import type { CHANGE_ALIGNMENT_REASON, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next/src/types';
1
+ import type { IntlShape } from 'react-intl/src/types';
2
2
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import type { Command } from '@atlaskit/editor-common/types';
4
4
  import type { Direction } from '@atlaskit/editor-tables/types';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next/src/types';
1
+ import type { IntlShape } from 'react-intl/src/types';
2
2
  import type { Command, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
4
4
  import type tablePlugin from '../../tablePlugin';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
3
  import type { DecorationTransformer } from './types';
4
4
  export declare const buildColumnResizingDecorations: (rowEndIndex: number, columnEndIndex: number, includeTooltip: boolean, getIntl: () => IntlShape, nodeViewPortalProviderAPI: PortalProviderAPI) => DecorationTransformer;
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next/src/types';
1
+ import type { IntlShape } from 'react-intl/src/types';
2
2
  import { INPUT_METHOD, TABLE_STATUS } from '@atlaskit/editor-common/analytics';
3
3
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import type { Command } from '@atlaskit/editor-common/types';
@@ -1,8 +1,8 @@
1
- import type { IntlShape } from 'react-intl-next/src/types';
1
+ import type { IntlShape } from 'react-intl/src/types';
2
2
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
4
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
5
  import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
6
6
  import type { PluginInjectionAPI, PluginInjectionAPIWithA11y } from '../types';
7
- export declare function keymapPlugin(getEditorContainerWidth: GetEditorContainerWidth, api: PluginInjectionAPI | undefined | null, nodeViewPortalProviderAPI: PortalProviderAPI, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, dragAndDropEnabled?: boolean, isTableScalingEnabled?: boolean, isTableAlignmentEnabled?: boolean, isFullWidthEnabled?: boolean, pluginInjectionApi?: PluginInjectionAPIWithA11y, getIntl?: () => IntlShape, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, isTableResizingEnabled?: boolean): SafePlugin;
7
+ export declare function keymapPlugin(getEditorContainerWidth: GetEditorContainerWidth, api: PluginInjectionAPI | undefined | null, nodeViewPortalProviderAPI: PortalProviderAPI, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null, isTableScalingEnabled?: boolean, isTableAlignmentEnabled?: boolean, isFullWidthEnabled?: boolean, pluginInjectionApi?: PluginInjectionAPIWithA11y, getIntl?: () => IntlShape, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, isTableResizingEnabled?: boolean): SafePlugin;
8
8
  export default keymapPlugin;
@@ -1,8 +1,8 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { DispatchAnalyticsEvent, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
4
4
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
5
5
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
6
6
  import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
7
7
  import type { PluginConfig, PluginInjectionAPI } from '../types';
8
- export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, nodeViewPortalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, getIntl: () => IntlShape, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, dragAndDropEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, allowFixedColumnWidthOption?: boolean) => SafePlugin<import("../types").TablePluginState>;
8
+ export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, nodeViewPortalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, getIntl: () => IntlShape, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, allowFixedColumnWidthOption?: boolean) => SafePlugin<import("../types").TablePluginState>;
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next/src/types';
1
+ import type { IntlShape } from 'react-intl/src/types';
2
2
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import type { PluginInjectionAPI } from '../types';
4
4
  export declare function tableSelectionKeymapPlugin(pluginInjectionApi?: PluginInjectionAPI, getIntl?: () => IntlShape): SafePlugin;
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
3
3
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { ReadonlyTransaction, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
4
4
  export declare const getMergedCellsPositions: (tr: Transaction) => number[];
@@ -23,12 +23,6 @@ export interface TablePluginOptions {
23
23
  * Note: This feature requires ADF schema changes to be supported.
24
24
  */
25
25
  allowFixedColumnWidthOption?: boolean;
26
- /**
27
- * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-49683 Internal documentation for deprecation (no external access)}
28
- * Deprecating this prop to enable drag and drop in tables by default.
29
- * See {@link https://hello.atlassian.net/wiki/spaces/EDITOR/pages/6312469305/Deprecating+legacy+table+controls} for rollout plan
30
- **/
31
- dragAndDropEnabled?: boolean;
32
26
  fullWidthEnabled?: boolean;
33
27
  getEditorFeatureFlags?: GetEditorFeatureFlags;
34
28
  isChromelessEditor?: boolean;
@@ -1,4 +1,4 @@
1
- import type { IntlShape } from 'react-intl-next';
1
+ import type { IntlShape } from 'react-intl';
2
2
  import type { TableLayout } from '@atlaskit/adf-schema';
3
3
  import type { TableColumnOrdering } from '@atlaskit/custom-steps';
4
4
  import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
@@ -1,6 +1,6 @@
1
1
  import type { MouseEventHandler, FocusEventHandler } from 'react';
2
2
  import React from 'react';
3
- import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { WrappedComponentProps } from 'react-intl';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { TriggerType } from '../../pm-plugins/drag-and-drop/types';
6
6
  import type { CellHoverMeta, TableDirection } from '../../types';
@@ -23,7 +23,7 @@ type DragHandleProps = {
23
23
  tableLocalId: string;
24
24
  toggleDragMenu?: (trigger: TriggerType, event?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
25
25
  };
26
- export declare const DragHandle: React.FC<import("react-intl-next").WithIntlProps<DragHandleProps & WrappedComponentProps>> & {
26
+ export declare const DragHandle: React.FC<import("react-intl").WithIntlProps<DragHandleProps & WrappedComponentProps>> & {
27
27
  WrappedComponent: React.ComponentType<DragHandleProps & WrappedComponentProps>;
28
28
  };
29
29
  export {};
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import React, { Component } from 'react';
6
6
  import { jsx } from '@emotion/react';
7
- import type { WrappedComponentProps } from 'react-intl-next';
7
+ import type { WrappedComponentProps } from 'react-intl';
8
8
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
9
9
  import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
10
10
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -64,7 +64,7 @@ export declare class ContextualMenu extends Component<Props & WrappedComponentPr
64
64
  private closeSubmenu;
65
65
  private setColor;
66
66
  }
67
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
67
+ declare const _default: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
68
68
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
69
69
  };
70
70
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import type { SyntheticEvent } from 'react';
2
2
  import React from 'react';
3
- import type { MessageDescriptor, WrappedComponentProps } from 'react-intl-next';
3
+ import type { MessageDescriptor, WrappedComponentProps } from 'react-intl';
4
4
  interface ButtonProps {
5
5
  onClick?: (event: SyntheticEvent) => void;
6
6
  onMouseEnter?: (event: SyntheticEvent) => void;
@@ -8,7 +8,7 @@ interface ButtonProps {
8
8
  removeLabel: MessageDescriptor;
9
9
  style?: object;
10
10
  }
11
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<ButtonProps & WrappedComponentProps>> & {
11
+ declare const _default: React.FC<import("react-intl").WithIntlProps<ButtonProps & WrappedComponentProps>> & {
12
12
  WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
13
13
  };
14
14
  export default _default;
@@ -4,7 +4,7 @@
4
4
  */
5
5
  /** @jsxFrag */
6
6
  import React from 'react';
7
- import type { WrappedComponentProps } from 'react-intl-next';
7
+ import type { WrappedComponentProps } from 'react-intl';
8
8
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
9
9
  import type { ExtractInjectionAPI, GetEditorContainerWidth } from '@atlaskit/editor-common/types';
10
10
  import type { AriaLiveElementAttributes } from '@atlaskit/editor-plugin-accessibility-utils';
@@ -35,7 +35,7 @@ type DragMenuProps = {
35
35
  target?: Element;
36
36
  targetCellPosition?: number;
37
37
  };
38
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<DragMenuProps & WrappedComponentProps>> & {
38
+ declare const _default: React.FC<import("react-intl").WithIntlProps<DragMenuProps & WrappedComponentProps>> & {
39
39
  WrappedComponent: React.ComponentType<DragMenuProps & WrappedComponentProps>;
40
40
  };
41
41
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import type { SyntheticEvent } from 'react';
2
2
  import React from 'react';
3
- import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { WrappedComponentProps } from 'react-intl';
4
4
  import type { TableDirection } from '../../types';
5
5
  interface ButtonProps {
6
6
  hasStickyHeaders: boolean;
@@ -9,10 +9,10 @@ interface ButtonProps {
9
9
  tableRef: HTMLElement;
10
10
  type: TableDirection;
11
11
  }
12
- export declare const DragAndDropInsertButton: React.FC<import("react-intl-next").WithIntlProps<ButtonProps & WrappedComponentProps>> & {
12
+ export declare const DragAndDropInsertButton: React.FC<import("react-intl").WithIntlProps<ButtonProps & WrappedComponentProps>> & {
13
13
  WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
14
14
  };
15
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<ButtonProps & WrappedComponentProps>> & {
15
+ declare const _default: React.FC<import("react-intl").WithIntlProps<ButtonProps & WrappedComponentProps>> & {
16
16
  WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
17
17
  };
18
18
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl';
3
3
  import type { DispatchAnalyticsEvent, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
5
5
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
@@ -35,7 +35,7 @@ export declare class FloatingInsertButton extends React.Component<Props & Wrappe
35
35
  private insertRow;
36
36
  private insertColumn;
37
37
  }
38
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
38
+ declare const _default: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
39
39
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
40
40
  };
41
41
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl';
3
3
  import type { CornerControlProps } from './types';
4
- export declare const CornerControls: React.FC<import("react-intl-next").WithIntlProps<CornerControlProps & WrappedComponentProps>> & {
4
+ export declare const CornerControls: React.FC<import("react-intl").WithIntlProps<CornerControlProps & WrappedComponentProps>> & {
5
5
  WrappedComponent: React.ComponentType<CornerControlProps & WrappedComponentProps>;
6
6
  };
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl';
3
3
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import type { TablePlugin } from '../../../tablePluginType';
5
5
  import type { CornerControlProps } from './types';
6
- export declare const DragCornerControlsWithSelection: React.FC<import("react-intl-next").WithIntlProps<CornerControlProps & WrappedComponentProps & {
6
+ export declare const DragCornerControlsWithSelection: React.FC<import("react-intl").WithIntlProps<CornerControlProps & WrappedComponentProps & {
7
7
  api?: ExtractInjectionAPI<TablePlugin>;
8
8
  }>> & {
9
9
  WrappedComponent: React.ComponentType<CornerControlProps & WrappedComponentProps & {
10
10
  api?: ExtractInjectionAPI<TablePlugin>;
11
11
  }>;
12
12
  };
13
- export declare const DragCornerControls: React.FC<import("react-intl-next").WithIntlProps<CornerControlProps & WrappedComponentProps>> & {
13
+ export declare const DragCornerControls: React.FC<import("react-intl").WithIntlProps<CornerControlProps & WrappedComponentProps>> & {
14
14
  WrappedComponent: React.ComponentType<CornerControlProps & WrappedComponentProps>;
15
15
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl';
3
3
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  export interface Props {
@@ -14,6 +14,6 @@ export interface Props {
14
14
  stickyTop?: number;
15
15
  tableRef: HTMLTableElement;
16
16
  }
17
- export declare const RowControls: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
17
+ export declare const RowControls: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
18
18
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
19
19
  };
@@ -5,8 +5,7 @@
5
5
  import { jsx } from '@emotion/react';
6
6
  import type { FeatureFlags } from '@atlaskit/editor-common/types';
7
7
  import type { PluginInjectionAPI } from '../types';
8
- export declare const GlobalStylesWrapper: ({ featureFlags, isDragAndDropEnabledOption, api, }: {
8
+ export declare const GlobalStylesWrapper: ({ featureFlags, api, }: {
9
9
  api?: PluginInjectionAPI;
10
10
  featureFlags: FeatureFlags | undefined;
11
- isDragAndDropEnabledOption?: boolean;
12
11
  }) => jsx.JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "20.0.0",
3
+ "version": "22.0.0",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,19 +32,19 @@
32
32
  "@atlaskit/button": "^23.11.0",
33
33
  "@atlaskit/custom-steps": "^0.16.0",
34
34
  "@atlaskit/editor-palette": "^2.1.0",
35
- "@atlaskit/editor-plugin-accessibility-utils": "^9.0.0",
36
- "@atlaskit/editor-plugin-analytics": "^9.0.0",
37
- "@atlaskit/editor-plugin-batch-attribute-updates": "^9.0.0",
38
- "@atlaskit/editor-plugin-content-insertion": "^9.0.0",
39
- "@atlaskit/editor-plugin-editor-viewmode": "^11.0.0",
40
- "@atlaskit/editor-plugin-extension": "12.0.0",
41
- "@atlaskit/editor-plugin-guideline": "^9.0.0",
42
- "@atlaskit/editor-plugin-interaction": "^18.0.0",
43
- "@atlaskit/editor-plugin-limited-mode": "^6.0.0",
44
- "@atlaskit/editor-plugin-selection": "^9.0.0",
45
- "@atlaskit/editor-plugin-toolbar": "^6.0.0",
46
- "@atlaskit/editor-plugin-user-intent": "^7.0.0",
47
- "@atlaskit/editor-plugin-width": "^10.0.0",
35
+ "@atlaskit/editor-plugin-accessibility-utils": "^10.0.0",
36
+ "@atlaskit/editor-plugin-analytics": "^10.0.0",
37
+ "@atlaskit/editor-plugin-batch-attribute-updates": "^10.0.0",
38
+ "@atlaskit/editor-plugin-content-insertion": "^10.0.0",
39
+ "@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
40
+ "@atlaskit/editor-plugin-extension": "13.0.0",
41
+ "@atlaskit/editor-plugin-guideline": "^10.0.0",
42
+ "@atlaskit/editor-plugin-interaction": "^19.0.0",
43
+ "@atlaskit/editor-plugin-limited-mode": "^7.0.0",
44
+ "@atlaskit/editor-plugin-selection": "^10.0.0",
45
+ "@atlaskit/editor-plugin-toolbar": "^7.0.0",
46
+ "@atlaskit/editor-plugin-user-intent": "^8.0.0",
47
+ "@atlaskit/editor-plugin-width": "^11.0.0",
48
48
  "@atlaskit/editor-prosemirror": "^7.3.0",
49
49
  "@atlaskit/editor-shared-styles": "^3.10.0",
50
50
  "@atlaskit/editor-tables": "^2.9.0",
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/insm": "^0.4.0",
53
53
  "@atlaskit/menu": "^8.5.0",
54
54
  "@atlaskit/platform-feature-flags": "^1.1.0",
55
- "@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
55
+ "@atlaskit/pragmatic-drag-and-drop": "^1.8.0",
56
56
  "@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^2.1.0",
57
57
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
58
58
  "@atlaskit/primitives": "^19.0.0",
@@ -70,10 +70,10 @@
70
70
  "uuid": "^3.1.0"
71
71
  },
72
72
  "peerDependencies": {
73
- "@atlaskit/editor-common": "^113.0.0",
73
+ "@atlaskit/editor-common": "^114.1.0",
74
74
  "react": "^18.2.0",
75
75
  "react-dom": "^18.2.0",
76
- "react-intl-next": "npm:react-intl@^5.18.1"
76
+ "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
77
77
  },
78
78
  "techstack": {
79
79
  "@atlassian/frontend": {
@@ -169,5 +169,8 @@
169
169
  "platform_editor_max_width_default_width": {
170
170
  "type": "boolean"
171
171
  }
172
+ },
173
+ "devDependencies": {
174
+ "react-intl": "^6.6.2"
172
175
  }
173
176
  }
package/report.api.md CHANGED
@@ -123,7 +123,7 @@ export const tablesPlugin: TablePlugin;
123
123
  {
124
124
  "react": "^16.8.0",
125
125
  "react-dom": "^16.8.0",
126
- "react-intl-next": "npm:react-intl@^5.18.1"
126
+ "react-intl": "npm:react-intl@^5.18.1"
127
127
  }
128
128
  ```
129
129