@atlaskit/editor-plugin-table 22.2.3 → 22.2.5
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 +12 -0
- package/dist/cjs/nodeviews/TableComponent.js +3 -2
- package/dist/cjs/pm-plugins/analytics/commands.js +4 -0
- package/dist/cjs/pm-plugins/commands/hover.js +4 -0
- package/dist/cjs/pm-plugins/commands/referentiality.js +4 -0
- package/dist/cjs/pm-plugins/drag-and-drop/commands.js +4 -0
- package/dist/cjs/pm-plugins/drag-and-drop/plugin.js +2 -0
- package/dist/cjs/pm-plugins/drag-and-drop/utils/autoscrollers.js +4 -0
- package/dist/cjs/pm-plugins/sticky-headers/commands.js +2 -0
- package/dist/cjs/pm-plugins/table-resizing/plugin-factory.js +5 -0
- package/dist/cjs/pm-plugins/utils/drag-menu.js +2 -2
- package/dist/cjs/ui/ColumnResizeWidget/index.js +1 -1
- package/dist/cjs/ui/DragHandle/index.js +2 -0
- package/dist/cjs/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +1 -1
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +4 -4
- package/dist/cjs/ui/FloatingDeleteButton/DeleteButton.js +4 -1
- package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +4 -1
- package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +6 -1
- package/dist/cjs/ui/FloatingInsertButton/index.js +3 -2
- package/dist/cjs/ui/SizeSelector/index.js +1 -1
- package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
- package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +4 -0
- package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
- package/dist/cjs/ui/TableFloatingControls/index.js +1 -1
- package/dist/cjs/ui/global-styles.js +1 -1
- package/dist/es2019/nodeviews/TableComponent.js +4 -1
- package/dist/es2019/pm-plugins/analytics/commands.js +3 -0
- package/dist/es2019/pm-plugins/commands/hover.js +3 -0
- package/dist/es2019/pm-plugins/commands/referentiality.js +3 -0
- package/dist/es2019/pm-plugins/drag-and-drop/commands.js +4 -0
- package/dist/es2019/pm-plugins/drag-and-drop/plugin.js +2 -0
- package/dist/es2019/pm-plugins/drag-and-drop/utils/autoscrollers.js +3 -0
- package/dist/es2019/pm-plugins/sticky-headers/commands.js +2 -0
- package/dist/es2019/pm-plugins/table-resizing/plugin-factory.js +5 -0
- package/dist/es2019/pm-plugins/utils/drag-menu.js +2 -2
- package/dist/es2019/ui/ColumnResizeWidget/index.js +1 -1
- package/dist/es2019/ui/DragHandle/index.js +2 -0
- package/dist/es2019/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +1 -1
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +5 -2
- package/dist/es2019/ui/FloatingDeleteButton/DeleteButton.js +4 -1
- package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +4 -1
- package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +6 -1
- package/dist/es2019/ui/FloatingInsertButton/index.js +4 -1
- package/dist/es2019/ui/SizeSelector/index.js +1 -1
- package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +2 -0
- package/dist/es2019/ui/TableFloatingControls/CornerControls/DragCornerControls.js +4 -0
- package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +2 -0
- package/dist/es2019/ui/TableFloatingControls/index.js +2 -2
- package/dist/es2019/ui/global-styles.js +2 -2
- package/dist/esm/nodeviews/TableComponent.js +3 -2
- package/dist/esm/pm-plugins/analytics/commands.js +3 -0
- package/dist/esm/pm-plugins/commands/hover.js +3 -0
- package/dist/esm/pm-plugins/commands/referentiality.js +3 -0
- package/dist/esm/pm-plugins/drag-and-drop/commands.js +4 -0
- package/dist/esm/pm-plugins/drag-and-drop/plugin.js +2 -0
- package/dist/esm/pm-plugins/drag-and-drop/utils/autoscrollers.js +3 -0
- package/dist/esm/pm-plugins/sticky-headers/commands.js +2 -0
- package/dist/esm/pm-plugins/table-resizing/plugin-factory.js +5 -0
- package/dist/esm/pm-plugins/utils/drag-menu.js +2 -2
- package/dist/esm/ui/ColumnResizeWidget/index.js +1 -1
- package/dist/esm/ui/DragHandle/index.js +2 -0
- package/dist/esm/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +1 -1
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +5 -2
- package/dist/esm/ui/FloatingDeleteButton/DeleteButton.js +4 -1
- package/dist/esm/ui/FloatingDragMenu/DragMenu.js +4 -1
- package/dist/esm/ui/FloatingInsertButton/InsertButton.js +6 -1
- package/dist/esm/ui/FloatingInsertButton/index.js +4 -1
- package/dist/esm/ui/SizeSelector/index.js +1 -1
- package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -1
- package/dist/esm/ui/TableFloatingControls/CornerControls/DragCornerControls.js +4 -0
- package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
- package/dist/esm/ui/TableFloatingControls/index.js +2 -2
- package/dist/esm/ui/global-styles.js +2 -2
- package/dist/types/nodeviews/TableComponent.d.ts +3 -3
- package/dist/types/nodeviews/table-node-views.d.ts +3 -3
- package/dist/types/nodeviews/table.d.ts +2 -2
- package/dist/types/pm-plugins/analytics/commands.d.ts +2 -1
- package/dist/types/pm-plugins/analytics/plugin.d.ts +2 -1
- package/dist/types/pm-plugins/commands/hover.d.ts +10 -9
- package/dist/types/pm-plugins/commands/misc.d.ts +1 -1
- package/dist/types/pm-plugins/commands/referentiality.d.ts +2 -1
- package/dist/types/pm-plugins/commands/toggle.d.ts +1 -1
- package/dist/types/pm-plugins/decorations/plugin.d.ts +1 -1
- package/dist/types/pm-plugins/drag-and-drop/commands.d.ts +6 -5
- package/dist/types/pm-plugins/drag-and-drop/plugin.d.ts +2 -1
- package/dist/types/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +2 -1
- package/dist/types/pm-plugins/main.d.ts +2 -2
- package/dist/types/pm-plugins/sticky-headers/commands.d.ts +3 -2
- package/dist/types/pm-plugins/sticky-headers/plugin.d.ts +2 -1
- package/dist/types/pm-plugins/sticky-headers/util.d.ts +2 -2
- package/dist/types/pm-plugins/table-anchor-names/plugin.d.ts +1 -1
- package/dist/types/pm-plugins/table-resizing/plugin-factory.d.ts +7 -4
- package/dist/types/pm-plugins/utils/create.d.ts +2 -2
- package/dist/types/pm-plugins/utils/sticky-header.d.ts +2 -1
- package/dist/types/ui/DragHandle/index.d.ts +2 -2
- package/dist/types/ui/FloatingContextualButton/styles.d.ts +3 -2
- package/dist/types/ui/FloatingContextualMenu/ContextualMenu.d.ts +3 -3
- package/dist/types/ui/FloatingContextualMenu/styles.d.ts +3 -2
- package/dist/types/ui/FloatingDeleteButton/DeleteButton.d.ts +3 -3
- package/dist/types/ui/FloatingDragMenu/DragMenu.d.ts +3 -3
- package/dist/types/ui/FloatingInsertButton/InsertButton.d.ts +4 -4
- package/dist/types/ui/FloatingInsertButton/index.d.ts +3 -3
- package/dist/types/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +2 -2
- package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +3 -3
- package/dist/types/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +2 -2
- package/dist/types/ui/common-styles.d.ts +5 -4
- package/dist/types/ui/consts.d.ts +1 -1
- package/dist/types/ui/ui-styles.d.ts +21 -20
- package/dist/types-ts4.5/nodeviews/TableComponent.d.ts +3 -3
- package/dist/types-ts4.5/nodeviews/table-node-views.d.ts +3 -3
- package/dist/types-ts4.5/nodeviews/table.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/analytics/commands.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/analytics/plugin.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/commands/hover.d.ts +10 -9
- package/dist/types-ts4.5/pm-plugins/commands/misc.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/commands/referentiality.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/commands/toggle.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/decorations/plugin.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/commands.d.ts +6 -5
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/plugin.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/drag-and-drop/utils/autoscrollers.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/sticky-headers/commands.d.ts +3 -2
- package/dist/types-ts4.5/pm-plugins/sticky-headers/plugin.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/sticky-headers/util.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/table-anchor-names/plugin.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/table-resizing/plugin-factory.d.ts +7 -4
- package/dist/types-ts4.5/pm-plugins/utils/create.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/utils/sticky-header.d.ts +2 -1
- package/dist/types-ts4.5/ui/DragHandle/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/FloatingContextualButton/styles.d.ts +3 -2
- package/dist/types-ts4.5/ui/FloatingContextualMenu/ContextualMenu.d.ts +3 -3
- package/dist/types-ts4.5/ui/FloatingContextualMenu/styles.d.ts +3 -2
- package/dist/types-ts4.5/ui/FloatingDeleteButton/DeleteButton.d.ts +3 -3
- package/dist/types-ts4.5/ui/FloatingDragMenu/DragMenu.d.ts +3 -3
- package/dist/types-ts4.5/ui/FloatingInsertButton/InsertButton.d.ts +4 -4
- package/dist/types-ts4.5/ui/FloatingInsertButton/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/ClassicCornerControls.d.ts +2 -2
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +3 -3
- package/dist/types-ts4.5/ui/TableFloatingControls/RowControls/ClassicControls.d.ts +2 -2
- package/dist/types-ts4.5/ui/common-styles.d.ts +5 -4
- package/dist/types-ts4.5/ui/consts.d.ts +1 -1
- package/dist/types-ts4.5/ui/ui-styles.d.ts +21 -20
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SyntheticEvent } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
3
|
+
import type { WithIntlProps, 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<
|
|
12
|
+
export declare const DragAndDropInsertButton: React.FC<WithIntlProps<ButtonProps & WrappedComponentProps>> & {
|
|
13
13
|
WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
|
-
declare const
|
|
15
|
+
declare const _default_1: React.FC<WithIntlProps<ButtonProps & WrappedComponentProps>> & {
|
|
16
16
|
WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
|
|
17
17
|
};
|
|
18
|
-
export default
|
|
18
|
+
export default _default_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
2
|
+
import type { WithIntlProps, 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
|
|
38
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
39
39
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
40
40
|
};
|
|
41
|
-
export default
|
|
41
|
+
export default _default_1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { CornerControlProps } from './types';
|
|
4
|
-
export declare const CornerControls: React.FC<
|
|
4
|
+
export declare const CornerControls: React.FC<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';
|
|
2
|
+
import type { WithIntlProps, 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<
|
|
6
|
+
export declare const DragCornerControlsWithSelection: React.FC<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<
|
|
13
|
+
export declare const DragCornerControls: React.FC<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';
|
|
2
|
+
import type { WithIntlProps, 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<
|
|
17
|
+
export declare const RowControls: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
18
18
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
19
19
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
1
2
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
2
3
|
export declare const insertColumnButtonOffset: number;
|
|
3
4
|
export declare const tableRowHeight = 44;
|
|
4
5
|
export declare const baseTableStyles: (props: {
|
|
5
6
|
featureFlags?: FeatureFlags;
|
|
6
7
|
isDragAndDropEnabled?: boolean;
|
|
7
|
-
}) =>
|
|
8
|
+
}) => SerializedStyles;
|
|
8
9
|
export declare const tableStyles: (props: {
|
|
9
10
|
featureFlags?: FeatureFlags;
|
|
10
11
|
isDragAndDropEnabled?: boolean;
|
|
11
|
-
}) =>
|
|
12
|
-
export declare const tableFullPageEditorStyles:
|
|
13
|
-
export declare const tableCommentEditorStyles:
|
|
12
|
+
}) => SerializedStyles;
|
|
13
|
+
export declare const tableFullPageEditorStyles: SerializedStyles;
|
|
14
|
+
export declare const tableCommentEditorStyles: SerializedStyles;
|
|
@@ -25,7 +25,7 @@ export declare const tableMarginFullWidthMode = 2;
|
|
|
25
25
|
export declare const tableInsertColumnButtonSize = 20;
|
|
26
26
|
export declare const tableDeleteButtonSize = 16;
|
|
27
27
|
export declare const tableDeleteButtonOffset = 6;
|
|
28
|
-
export declare const tableToolbarSize
|
|
28
|
+
export declare const tableToolbarSize: 11;
|
|
29
29
|
export declare const tableControlsSpacing: number;
|
|
30
30
|
export declare const tableInsertColumnButtonOffset = 3;
|
|
31
31
|
export declare const layoutButtonSize = 32;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
19
|
-
export declare const
|
|
20
|
-
export declare const
|
|
1
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
+
export declare const InsertMarker: (cssString?: string) => SerializedStyles;
|
|
3
|
+
export declare const HeaderButton: (cssString?: string) => SerializedStyles;
|
|
4
|
+
export declare const HeaderButtonHover: () => SerializedStyles;
|
|
5
|
+
export declare const HeaderButtonDanger: () => SerializedStyles;
|
|
6
|
+
export declare const dragInsertButtonWrapper: () => SerializedStyles;
|
|
7
|
+
export declare const dragCornerControlButton: () => SerializedStyles;
|
|
8
|
+
export declare const insertColumnButtonWrapper: () => SerializedStyles;
|
|
9
|
+
export declare const insertRowButtonWrapper: () => SerializedStyles;
|
|
10
|
+
export declare const columnControlsLineMarker: () => SerializedStyles;
|
|
11
|
+
export declare const DeleteButton: () => SerializedStyles;
|
|
12
|
+
export declare const OverflowShadow: (isDragAndDropEnabled: boolean | undefined) => SerializedStyles;
|
|
13
|
+
export declare const OverflowShadowLessPadding: (tableOverflowShadowWidth: number) => SerializedStyles;
|
|
14
|
+
export declare const floatingColumnControls: () => SerializedStyles;
|
|
15
|
+
export declare const rowControlsWrapperDotStyle: () => SerializedStyles;
|
|
16
|
+
export declare const columnControlsDecoration: () => SerializedStyles;
|
|
17
|
+
export declare const hoveredDeleteButton: () => SerializedStyles;
|
|
18
|
+
export declare const hoveredCell: () => SerializedStyles;
|
|
19
|
+
export declare const hoveredWarningCell: SerializedStyles;
|
|
20
|
+
export declare const resizeHandle: () => SerializedStyles;
|
|
21
|
+
export declare const insertLine: () => SerializedStyles;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { IntlShape } from 'react-intl';
|
|
2
|
+
import type { IntlShape, WithIntlProps } 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
|
|
45
|
+
declare const _default_1: React.FC<WithIntlProps<ComponentProps>> & {
|
|
46
46
|
WrappedComponent: React.ComponentType<ComponentProps>;
|
|
47
47
|
};
|
|
48
|
-
export default
|
|
48
|
+
export default _default_1;
|
|
@@ -3,7 +3,7 @@ import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
|
3
3
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
4
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
6
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
6
|
+
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
7
7
|
import type { PluginInjectionAPI } from '../types';
|
|
8
8
|
import TableCell from './TableCell';
|
|
9
9
|
import TableRow from './TableRow';
|
|
@@ -19,7 +19,7 @@ type TableViewOptions = {
|
|
|
19
19
|
pluginInjectionApi?: PluginInjectionAPI;
|
|
20
20
|
portalProviderAPI: PortalProviderAPI;
|
|
21
21
|
};
|
|
22
|
-
export declare const tableView: (options: TableViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) =>
|
|
22
|
+
export declare const tableView: (options: TableViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => NodeView;
|
|
23
23
|
type TableCellViewOptions = {
|
|
24
24
|
eventDispatcher: EventDispatcher;
|
|
25
25
|
isDragAndDropEnabled?: boolean;
|
|
@@ -27,5 +27,5 @@ type TableCellViewOptions = {
|
|
|
27
27
|
};
|
|
28
28
|
export declare const tableCellView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableCell;
|
|
29
29
|
export declare const tableHeaderView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableCell;
|
|
30
|
-
export declare const tableRowView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) =>
|
|
30
|
+
export declare const tableRowView: (options: TableCellViewOptions) => (node: PMNode, view: EditorView, getPos: () => number | undefined) => TableRowNativeStickyWithFallback | TableRow;
|
|
31
31
|
export {};
|
|
@@ -7,7 +7,7 @@ import type { GetEditorContainerWidth, GetEditorFeatureFlags, getPosHandler, get
|
|
|
7
7
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import type { PluginInjectionAPI } from '../types';
|
|
10
|
-
import type { Props } from './types';
|
|
10
|
+
import type { Props, TableOptions } from './types';
|
|
11
11
|
type ForwardRef = (node: HTMLElement | null) => void;
|
|
12
12
|
export default class TableView extends ReactNodeView<Props> {
|
|
13
13
|
private table;
|
|
@@ -15,7 +15,7 @@ export default class TableView extends ReactNodeView<Props> {
|
|
|
15
15
|
private resizeObserver?;
|
|
16
16
|
eventDispatcher?: EventDispatcher;
|
|
17
17
|
getPos: getPosHandlerNode;
|
|
18
|
-
options:
|
|
18
|
+
options: TableOptions | undefined;
|
|
19
19
|
getEditorFeatureFlags: GetEditorFeatureFlags;
|
|
20
20
|
constructor(props: Props);
|
|
21
21
|
getContentDOM(): {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { ActionType, RowOrColumnMovedState } from './types';
|
|
3
|
-
|
|
3
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
4
|
+
export declare const updateRowOrColumnMoved: (nextState: Omit<RowOrColumnMovedState, "currentActions">, nextAction: ActionType) => Command;
|
|
4
5
|
export declare const resetRowOrColumnMovedTransform: () => (tr: Transaction) => Transaction;
|
|
5
6
|
export declare const updateRowOrColumnMovedTransform: (nextState: Omit<RowOrColumnMovedState, "currentActions">, nextAction: ActionType) => (state: EditorState, tr: Transaction) => Transaction;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
-
|
|
4
|
+
import { type AnalyticPluginState } from './types';
|
|
5
|
+
export declare const createPlugin: (dispatch: Dispatch, dispatchAnalyticsEvent: DispatchAnalyticsEvent) => SafePlugin<AnalyticPluginState>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { CellColumnPositioning } from '../../types';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
+
export declare const hoverMergedCells: () => Command;
|
|
4
|
+
export declare const hoverColumns: (hoveredColumns: number[], isInDanger?: boolean) => Command;
|
|
5
|
+
export declare const hoverRows: (hoveredRows: number[], isInDanger?: boolean) => Command;
|
|
6
|
+
export declare const hoverTable: (isInDanger?: boolean, isSelected?: boolean) => Command;
|
|
7
|
+
export declare const clearHoverSelection: () => Command;
|
|
8
|
+
export declare const showResizeHandleLine: (cellColumnPositioning: CellColumnPositioning) => Command;
|
|
9
|
+
export declare const hideResizeHandleLine: () => Command;
|
|
10
|
+
export declare const setTableHovered: (hovered: boolean) => Command;
|
|
11
|
+
export declare const hoverCell: (rowIndex?: number, colIndex?: number) => Command;
|
|
@@ -22,7 +22,7 @@ export declare const deleteTable: Command;
|
|
|
22
22
|
export declare const deleteTableIfSelected: Command;
|
|
23
23
|
export declare const convertFirstRowToHeader: (schema: Schema) => (tr: Transaction) => Transaction;
|
|
24
24
|
export declare const moveCursorBackward: Command;
|
|
25
|
-
export declare const setMultipleCellAttrs: (attrs:
|
|
25
|
+
export declare const setMultipleCellAttrs: (attrs: object, editorView?: EditorView | null) => Command;
|
|
26
26
|
export declare const selectColumn: (column: number, expand?: boolean, triggeredByKeyboard?: boolean) => Command;
|
|
27
27
|
export declare const selectColumns: (columnIndexes: number[]) => Command;
|
|
28
28
|
export declare const selectRow: (row: number, expand?: boolean, triggeredByKeyboard?: boolean) => Command;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
|
|
2
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
|
+
export declare const removeDescendantNodes: (sourceNode: PMNode) => Command;
|
|
@@ -4,7 +4,7 @@ import type { Command } from '@atlaskit/editor-common/types';
|
|
|
4
4
|
* Table layout toggle logic
|
|
5
5
|
* default -> wide -> full-width -> default
|
|
6
6
|
*/
|
|
7
|
-
export declare const getNextLayout: (currentLayout: TableLayout) => "default" | "
|
|
7
|
+
export declare const getNextLayout: (currentLayout: TableLayout) => "default" | "wide" | "full-width";
|
|
8
8
|
export declare const toggleHeaderRow: Command;
|
|
9
9
|
export declare const toggleHeaderColumn: Command;
|
|
10
10
|
export declare const toggleNumberColumn: Command;
|
|
@@ -2,7 +2,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import type { EditorState, ReadonlyTransaction, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
export declare const pluginKey: PluginKey
|
|
5
|
+
export declare const pluginKey: PluginKey;
|
|
6
6
|
export declare const getDecorations: (state: EditorState) => DecorationSet;
|
|
7
7
|
export declare const handleDocOrSelectionChanged: (tr: Transaction | ReadonlyTransaction, decorationSet: DecorationSet, oldState: EditorState, newState: EditorState) => DecorationSet;
|
|
8
8
|
export declare const createPlugin: () => SafePlugin<DecorationSet>;
|
|
@@ -2,8 +2,9 @@ import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
|
2
2
|
import type { DraggableType, TableDirection } from '../../types';
|
|
3
3
|
import { DropTargetType } from './consts';
|
|
4
4
|
import type { TriggerType } from './types';
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
5
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
6
|
+
export declare const setDropTarget: (type: DropTargetType, index: number, hasMergedCells: boolean, tr?: Transaction) => Command;
|
|
7
|
+
export declare const clearDropTarget: (tr?: Transaction) => Command;
|
|
8
|
+
export declare const moveSource: (sourceType: DraggableType, sourceIndexes: number[], targetIndex: number, tr?: Transaction) => Command;
|
|
9
|
+
export declare const toggleDragMenu: (isDragMenuOpen: boolean | undefined, direction?: TableDirection, index?: number, trigger?: TriggerType) => Command;
|
|
10
|
+
export declare const cloneSource: (sourceType: DraggableType, sourceIndexes: number[], targetIndex: number, targetDirection: "start" | "end", tr?: Transaction) => Command;
|
|
@@ -3,4 +3,5 @@ import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { TablePlugin } from '../../tablePluginType';
|
|
6
|
-
|
|
6
|
+
import type { DragAndDropPluginState } from './types';
|
|
7
|
+
export declare const createPlugin: (dispatch: Dispatch, editorAnalyticsAPI?: EditorAnalyticsAPI, isTableScalingEnabled?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, isCommentEditor?: boolean, api?: ExtractInjectionAPI<TablePlugin>) => SafePlugin<DragAndDropPluginState>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { CleanupFn } from '@atlaskit/pragmatic-drag-and-drop/types';
|
|
2
3
|
type AutoScrollerFactory = {
|
|
3
4
|
getNode: () => PmNode;
|
|
4
5
|
tableWrapper: HTMLElement;
|
|
5
6
|
};
|
|
6
|
-
export declare const autoScrollerFactory: ({ tableWrapper, getNode }: AutoScrollerFactory) =>
|
|
7
|
+
export declare const autoScrollerFactory: ({ tableWrapper, getNode }: AutoScrollerFactory) => CleanupFn[];
|
|
7
8
|
export {};
|
|
@@ -4,5 +4,5 @@ import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-di
|
|
|
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
|
-
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, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, allowFixedColumnWidthOption?: boolean) => SafePlugin<
|
|
7
|
+
import type { PluginConfig, PluginInjectionAPI, TablePluginState } 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, editorAnalyticsAPI?: EditorAnalyticsAPI, pluginInjectionApi?: PluginInjectionAPI, isTableScalingEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, isCommentEditor?: boolean, isChromelessEditor?: boolean, allowFixedColumnWidthOption?: boolean) => SafePlugin<TablePluginState>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
1
2
|
import type { RowStickyState } from './types';
|
|
2
|
-
export declare const updateStickyState: (rowState: RowStickyState) =>
|
|
3
|
-
export declare const removeStickyState: (pos: number) =>
|
|
3
|
+
export declare const updateStickyState: (rowState: RowStickyState) => Command;
|
|
4
|
+
export declare const removeStickyState: (pos: number) => Command;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
|
|
3
|
+
import type { StickyPluginState } from './types';
|
|
4
|
+
export declare const createPlugin: (dispatch: Dispatch, initialState?: () => never[]) => SafePlugin<StickyPluginState>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { StickyPluginState } from './types';
|
|
2
|
-
export declare const findStickyHeaderForTable: (state: StickyPluginState, tablePos: number | undefined) =>
|
|
1
|
+
import type { RowStickyState, StickyPluginState } from './types';
|
|
2
|
+
export declare const findStickyHeaderForTable: (state: StickyPluginState, tablePos: number | undefined) => RowStickyState | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
export declare const pluginKey: PluginKey
|
|
4
|
+
export declare const pluginKey: PluginKey;
|
|
5
5
|
export declare const createPlugin: () => SafePlugin<DecorationSet>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import type { ColumnResizingPluginAction, ColumnResizingPluginState } from '../../types';
|
|
3
|
+
import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
|
|
4
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
5
|
+
export declare const createCommand: <A = ColumnResizingPluginAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
|
|
6
|
+
export declare const createPluginState: (dispatch: Dispatch, initialState: ColumnResizingPluginState | ((state: EditorState) => ColumnResizingPluginState)) => SafeStateField<ColumnResizingPluginState>;
|
|
7
|
+
export declare const getPluginState: (state: EditorState) => ColumnResizingPluginState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
1
|
+
import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
export declare const createTableWithWidth: ({ isTableScalingEnabled, isTableAlignmentEnabled, isFullWidthModeEnabled, isMaxWidthModeEnabled, isCommentEditor, isChromelessEditor, isTableResizingEnabled, isNestedTable, createTableProps, }: {
|
|
3
3
|
createTableProps?: {
|
|
4
4
|
colsCount?: number;
|
|
@@ -12,4 +12,4 @@ export declare const createTableWithWidth: ({ isTableScalingEnabled, isTableAlig
|
|
|
12
12
|
isTableAlignmentEnabled?: boolean;
|
|
13
13
|
isTableResizingEnabled?: boolean;
|
|
14
14
|
isTableScalingEnabled?: boolean;
|
|
15
|
-
}) => (schema: Schema) =>
|
|
15
|
+
}) => (schema: Schema) => Node;
|
|
@@ -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';
|
|
3
|
+
import type { WithIntlProps, 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<
|
|
26
|
+
export declare const DragHandle: React.FC<WithIntlProps<DragHandleProps & WrappedComponentProps>> & {
|
|
27
27
|
WrappedComponent: React.ComponentType<DragHandleProps & WrappedComponentProps>;
|
|
28
28
|
};
|
|
29
29
|
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
+
export declare const tableFloatingCellButtonStyles: () => SerializedStyles;
|
|
3
|
+
export declare const tableFloatingCellButtonSelectedStyles: () => SerializedStyles;
|
|
@@ -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';
|
|
7
|
+
import type { WithIntlProps, 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
|
|
67
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
68
68
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
69
69
|
};
|
|
70
|
-
export default
|
|
70
|
+
export default _default_1;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
2
|
+
export declare const cellColourPreviewStyles: (selectedColor: string) => SerializedStyles;
|
|
3
|
+
export declare const tablePopupStyles: (isDragAndDropEnabled: boolean | undefined) => SerializedStyles;
|
|
@@ -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';
|
|
3
|
+
import type { MessageDescriptor, WithIntlProps, 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
|
|
11
|
+
declare const _default_1: React.FC<WithIntlProps<ButtonProps & WrappedComponentProps>> & {
|
|
12
12
|
WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
|
|
13
13
|
};
|
|
14
|
-
export default
|
|
14
|
+
export default _default_1;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/** @jsxFrag */
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
7
|
+
import type { WithIntlProps, 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
|
|
38
|
+
declare const _default_1: React.FC<WithIntlProps<DragMenuProps & WrappedComponentProps>> & {
|
|
39
39
|
WrappedComponent: React.ComponentType<DragMenuProps & WrappedComponentProps>;
|
|
40
40
|
};
|
|
41
|
-
export default
|
|
41
|
+
export default _default_1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SyntheticEvent } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
3
|
+
import type { WithIntlProps, 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<
|
|
12
|
+
export declare const DragAndDropInsertButton: React.FC<WithIntlProps<ButtonProps & WrappedComponentProps>> & {
|
|
13
13
|
WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
|
|
14
14
|
};
|
|
15
|
-
declare const
|
|
15
|
+
declare const _default_1: React.FC<WithIntlProps<ButtonProps & WrappedComponentProps>> & {
|
|
16
16
|
WrappedComponent: React.ComponentType<ButtonProps & WrappedComponentProps>;
|
|
17
17
|
};
|
|
18
|
-
export default
|
|
18
|
+
export default _default_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
2
|
+
import type { WithIntlProps, 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
|
|
38
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
39
39
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
40
40
|
};
|
|
41
|
-
export default
|
|
41
|
+
export default _default_1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { CornerControlProps } from './types';
|
|
4
|
-
export declare const CornerControls: React.FC<
|
|
4
|
+
export declare const CornerControls: React.FC<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';
|
|
2
|
+
import type { WithIntlProps, 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<
|
|
6
|
+
export declare const DragCornerControlsWithSelection: React.FC<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<
|
|
13
|
+
export declare const DragCornerControls: React.FC<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';
|
|
2
|
+
import type { WithIntlProps, 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<
|
|
17
|
+
export declare const RowControls: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
18
18
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
19
19
|
};
|