@atlaskit/editor-plugin-table 20.0.0 → 21.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 (95) hide show
  1. package/CHANGELOG.md +19 -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/utils/decoration.js +2 -2
  5. package/dist/cjs/pm-plugins/view-mode-sort/index.js +2 -2
  6. package/dist/cjs/ui/ColumnResizeWidget/index.js +2 -2
  7. package/dist/cjs/ui/DragHandle/index.js +2 -2
  8. package/dist/cjs/ui/FloatingContextualButton/index.js +2 -2
  9. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +2 -2
  10. package/dist/cjs/ui/FloatingDeleteButton/DeleteButton.js +2 -2
  11. package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +2 -2
  12. package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +3 -3
  13. package/dist/cjs/ui/FloatingInsertButton/index.js +2 -2
  14. package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -2
  15. package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +3 -3
  16. package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -2
  17. package/dist/cjs/ui/TableFullWidthLabel/index.js +2 -2
  18. package/dist/es2019/nodeviews/TableComponent.js +1 -1
  19. package/dist/es2019/nodeviews/TableResizer.js +1 -1
  20. package/dist/es2019/pm-plugins/utils/decoration.js +1 -1
  21. package/dist/es2019/pm-plugins/view-mode-sort/index.js +1 -1
  22. package/dist/es2019/ui/ColumnResizeWidget/index.js +1 -1
  23. package/dist/es2019/ui/DragHandle/index.js +1 -1
  24. package/dist/es2019/ui/FloatingContextualButton/index.js +1 -1
  25. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
  26. package/dist/es2019/ui/FloatingDeleteButton/DeleteButton.js +1 -1
  27. package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +1 -1
  28. package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +1 -1
  29. package/dist/es2019/ui/FloatingInsertButton/index.js +1 -1
  30. package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
  31. package/dist/es2019/ui/TableFloatingControls/CornerControls/DragCornerControls.js +1 -1
  32. package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
  33. package/dist/es2019/ui/TableFullWidthLabel/index.js +1 -1
  34. package/dist/esm/nodeviews/TableComponent.js +1 -1
  35. package/dist/esm/nodeviews/TableResizer.js +1 -1
  36. package/dist/esm/pm-plugins/utils/decoration.js +1 -1
  37. package/dist/esm/pm-plugins/view-mode-sort/index.js +1 -1
  38. package/dist/esm/ui/ColumnResizeWidget/index.js +1 -1
  39. package/dist/esm/ui/DragHandle/index.js +1 -1
  40. package/dist/esm/ui/FloatingContextualButton/index.js +1 -1
  41. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
  42. package/dist/esm/ui/FloatingDeleteButton/DeleteButton.js +1 -1
  43. package/dist/esm/ui/FloatingDragMenu/DragMenu.js +1 -1
  44. package/dist/esm/ui/FloatingInsertButton/InsertButton.js +1 -1
  45. package/dist/esm/ui/FloatingInsertButton/index.js +1 -1
  46. package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
  47. package/dist/esm/ui/TableFloatingControls/CornerControls/DragCornerControls.js +1 -1
  48. package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
  49. package/dist/esm/ui/TableFullWidthLabel/index.js +1 -1
  50. package/dist/types/nodeviews/TableComponent.d.ts +2 -2
  51. package/dist/types/pm-plugins/commands/column-resize.d.ts +1 -1
  52. package/dist/types/pm-plugins/commands/commands-with-analytics.d.ts +1 -1
  53. package/dist/types/pm-plugins/commands/go-to-next-cell.d.ts +1 -1
  54. package/dist/types/pm-plugins/commands/selection.d.ts +1 -1
  55. package/dist/types/pm-plugins/decorations/utils/column-resizing.d.ts +1 -1
  56. package/dist/types/pm-plugins/drag-and-drop/commands-with-analytics.d.ts +1 -1
  57. package/dist/types/pm-plugins/keymap.d.ts +1 -1
  58. package/dist/types/pm-plugins/main.d.ts +1 -1
  59. package/dist/types/pm-plugins/table-selection-keymap.d.ts +1 -1
  60. package/dist/types/pm-plugins/utils/decoration.d.ts +1 -1
  61. package/dist/types/pm-plugins/utils/table.d.ts +1 -1
  62. package/dist/types/types/index.d.ts +1 -1
  63. package/dist/types/ui/DragHandle/index.d.ts +2 -2
  64. package/dist/types/ui/FloatingContextualMenu/ContextualMenu.d.ts +2 -2
  65. package/dist/types/ui/FloatingDeleteButton/DeleteButton.d.ts +2 -2
  66. package/dist/types/ui/FloatingDragMenu/DragMenu.d.ts +2 -2
  67. package/dist/types/ui/FloatingInsertButton/InsertButton.d.ts +3 -3
  68. package/dist/types/ui/FloatingInsertButton/index.d.ts +2 -2
  69. package/dist/types/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +2 -2
  70. package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +3 -3
  71. package/dist/types/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +2 -2
  72. package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +2 -2
  73. package/dist/types-ts4.5/pm-plugins/commands/column-resize.d.ts +1 -1
  74. package/dist/types-ts4.5/pm-plugins/commands/commands-with-analytics.d.ts +1 -1
  75. package/dist/types-ts4.5/pm-plugins/commands/go-to-next-cell.d.ts +1 -1
  76. package/dist/types-ts4.5/pm-plugins/commands/selection.d.ts +1 -1
  77. package/dist/types-ts4.5/pm-plugins/decorations/utils/column-resizing.d.ts +1 -1
  78. package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands-with-analytics.d.ts +1 -1
  79. package/dist/types-ts4.5/pm-plugins/keymap.d.ts +1 -1
  80. package/dist/types-ts4.5/pm-plugins/main.d.ts +1 -1
  81. package/dist/types-ts4.5/pm-plugins/table-selection-keymap.d.ts +1 -1
  82. package/dist/types-ts4.5/pm-plugins/utils/decoration.d.ts +1 -1
  83. package/dist/types-ts4.5/pm-plugins/utils/table.d.ts +1 -1
  84. package/dist/types-ts4.5/types/index.d.ts +1 -1
  85. package/dist/types-ts4.5/ui/DragHandle/index.d.ts +2 -2
  86. package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +2 -2
  87. package/dist/types-ts4.5/ui/FloatingDeleteButton/DeleteButton.d.ts +2 -2
  88. package/dist/types-ts4.5/ui/FloatingDragMenu/DragMenu.d.ts +2 -2
  89. package/dist/types-ts4.5/ui/FloatingInsertButton/InsertButton.d.ts +3 -3
  90. package/dist/types-ts4.5/ui/FloatingInsertButton/index.d.ts +2 -2
  91. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +2 -2
  92. package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +3 -3
  93. package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +2 -2
  94. package/package.json +19 -16
  95. package/report.api.md +1 -1
@@ -7,7 +7,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
7
7
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
9
  import React, { Component } from 'react';
10
- import { injectIntl } from 'react-intl-next';
10
+ import { injectIntl } from 'react-intl';
11
11
  import { tableMessages as messages } from '@atlaskit/editor-common/messages';
12
12
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
13
  import { clearHoverSelection } from '../../../pm-plugins/commands';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { useIntl } from 'react-intl-next';
2
+ import { useIntl } from 'react-intl';
3
3
  import { tableMessages as messages } from '@atlaskit/editor-common/messages';
4
4
  // eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
5
5
  import { Box, Inline, xcss } from '@atlaskit/primitives';
@@ -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,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 { PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
4
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
@@ -1,4 +1,4 @@
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';
@@ -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[];
@@ -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
  };
@@ -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,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 { PortalProviderAPI } from '@atlaskit/editor-common/portal';
4
4
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
@@ -1,4 +1,4 @@
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';
@@ -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[];
@@ -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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "20.0.0",
3
+ "version": "21.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",
@@ -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.0.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
  }