@atlaskit/editor-plugin-table 7.17.0 → 7.17.2
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 +28 -0
- package/dist/cjs/nodeviews/ExternalDropTargets.js +2 -1
- package/dist/cjs/nodeviews/TableResizer.js +2 -0
- package/dist/cjs/plugin.js +2 -1
- package/dist/cjs/pm-plugins/table-resizing/event-handlers.js +2 -2
- package/dist/cjs/pm-plugins/table-resizing/utils/resize-column.js +2 -1
- package/dist/cjs/toolbar.js +3 -0
- package/dist/cjs/ui/DragHandle/index.js +4 -2
- package/dist/cjs/ui/FloatingContextualButton/FixedButton.js +1 -1
- package/dist/cjs/ui/FloatingContextualButton/index.js +5 -1
- package/dist/cjs/ui/FloatingContextualButton/styles.js +10 -0
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +47 -22
- package/dist/cjs/ui/FloatingContextualMenu/styles.js +3 -0
- package/dist/cjs/ui/FloatingDeleteButton/index.js +4 -2
- package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +36 -13
- package/dist/cjs/ui/FloatingDragMenu/index.js +5 -2
- package/dist/cjs/ui/FloatingDragMenu/styles.js +12 -1
- package/dist/cjs/ui/TableFloatingControls/NumberColumn/index.js +3 -1
- package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
- package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +4 -2
- package/dist/cjs/ui/common-styles.js +3 -1
- package/dist/cjs/ui/consts.js +4 -1
- package/dist/cjs/ui/ui-styles.js +35 -3
- package/dist/cjs/utils/drag-menu.js +32 -27
- package/dist/es2019/nodeviews/ExternalDropTargets.js +2 -1
- package/dist/es2019/nodeviews/TableResizer.js +2 -0
- package/dist/es2019/plugin.js +34 -31
- package/dist/es2019/pm-plugins/table-resizing/event-handlers.js +3 -3
- package/dist/es2019/pm-plugins/table-resizing/utils/resize-column.js +2 -1
- package/dist/es2019/toolbar.js +3 -0
- package/dist/es2019/ui/DragHandle/index.js +6 -2
- package/dist/es2019/ui/FloatingContextualButton/FixedButton.js +1 -1
- package/dist/es2019/ui/FloatingContextualButton/index.js +5 -1
- package/dist/es2019/ui/FloatingContextualButton/styles.js +10 -0
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +38 -11
- package/dist/es2019/ui/FloatingContextualMenu/styles.js +3 -0
- package/dist/es2019/ui/FloatingDeleteButton/index.js +4 -2
- package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +34 -13
- package/dist/es2019/ui/FloatingDragMenu/index.js +4 -2
- package/dist/es2019/ui/FloatingDragMenu/styles.js +11 -3
- package/dist/es2019/ui/TableFloatingControls/NumberColumn/index.js +3 -1
- package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
- package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +6 -2
- package/dist/es2019/ui/common-styles.js +3 -1
- package/dist/es2019/ui/consts.js +3 -0
- package/dist/es2019/ui/ui-styles.js +36 -3
- package/dist/es2019/utils/drag-menu.js +23 -19
- package/dist/esm/nodeviews/ExternalDropTargets.js +2 -1
- package/dist/esm/nodeviews/TableResizer.js +2 -0
- package/dist/esm/plugin.js +2 -1
- package/dist/esm/pm-plugins/table-resizing/event-handlers.js +3 -3
- package/dist/esm/pm-plugins/table-resizing/utils/resize-column.js +2 -1
- package/dist/esm/toolbar.js +3 -0
- package/dist/esm/ui/DragHandle/index.js +4 -2
- package/dist/esm/ui/FloatingContextualButton/FixedButton.js +1 -1
- package/dist/esm/ui/FloatingContextualButton/index.js +5 -1
- package/dist/esm/ui/FloatingContextualButton/styles.js +10 -0
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +47 -22
- package/dist/esm/ui/FloatingContextualMenu/styles.js +3 -0
- package/dist/esm/ui/FloatingDeleteButton/index.js +4 -2
- package/dist/esm/ui/FloatingDragMenu/DragMenu.js +36 -13
- package/dist/esm/ui/FloatingDragMenu/index.js +5 -2
- package/dist/esm/ui/FloatingDragMenu/styles.js +13 -2
- package/dist/esm/ui/TableFloatingControls/NumberColumn/index.js +3 -1
- package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -1
- package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +4 -2
- package/dist/esm/ui/common-styles.js +3 -1
- package/dist/esm/ui/consts.js +3 -0
- package/dist/esm/ui/ui-styles.js +35 -3
- package/dist/esm/utils/drag-menu.js +32 -27
- package/dist/types/ui/FloatingDragMenu/DragMenu.d.ts +2 -1
- package/dist/types/ui/FloatingDragMenu/styles.d.ts +1 -1
- package/dist/types/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +8 -0
- package/dist/types/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +16 -0
- package/dist/types/ui/TableFloatingControls/index.d.ts +8 -0
- package/dist/types/ui/consts.d.ts +3 -0
- package/dist/types/utils/drag-menu.d.ts +1 -1
- package/dist/types-ts4.5/ui/FloatingDragMenu/DragMenu.d.ts +2 -1
- package/dist/types-ts4.5/ui/FloatingDragMenu/styles.d.ts +1 -1
- package/dist/types-ts4.5/ui/TableFloatingColumnControls/ColumnControls/index.d.ts +8 -0
- package/dist/types-ts4.5/ui/TableFloatingControls/CornerControls/DragCornerControls.d.ts +16 -0
- package/dist/types-ts4.5/ui/TableFloatingControls/index.d.ts +8 -0
- package/dist/types-ts4.5/ui/consts.d.ts +3 -0
- package/dist/types-ts4.5/utils/drag-menu.d.ts +1 -1
- package/package.json +136 -147
- package/src/nodeviews/ExternalDropTargets.tsx +2 -1
- package/src/nodeviews/TableResizer.tsx +3 -0
- package/src/plugin.tsx +3 -1
- package/src/pm-plugins/table-resizing/event-handlers.ts +9 -3
- package/src/pm-plugins/table-resizing/utils/resize-column.ts +2 -1
- package/src/toolbar.tsx +3 -0
- package/src/ui/DragHandle/index.tsx +4 -2
- package/src/ui/FloatingContextualButton/FixedButton.tsx +1 -1
- package/src/ui/FloatingContextualButton/index.tsx +2 -0
- package/src/ui/FloatingContextualButton/styles.ts +10 -0
- package/src/ui/FloatingContextualMenu/ContextualMenu.tsx +22 -3
- package/src/ui/FloatingContextualMenu/index.tsx +1 -0
- package/src/ui/FloatingContextualMenu/styles.ts +2 -0
- package/src/ui/FloatingDeleteButton/index.tsx +2 -1
- package/src/ui/FloatingDragMenu/DragMenu.tsx +39 -16
- package/src/ui/FloatingDragMenu/DropdownMenu.tsx +1 -1
- package/src/ui/FloatingDragMenu/index.tsx +6 -2
- package/src/ui/FloatingDragMenu/styles.ts +20 -3
- package/src/ui/TableFloatingControls/NumberColumn/index.tsx +1 -0
- package/src/ui/TableFloatingControls/RowControls/ClassicControls.tsx +1 -1
- package/src/ui/TableFloatingControls/RowControls/DragControls.tsx +4 -2
- package/src/ui/common-styles.ts +2 -1
- package/src/ui/consts.ts +4 -0
- package/src/ui/ui-styles.ts +25 -0
- package/src/utils/drag-menu.ts +28 -18
|
@@ -192,9 +192,11 @@ var DragControlsComponent = function DragControlsComponent(_ref) {
|
|
|
192
192
|
className: ClassName.DRAG_ROW_CONTROLS,
|
|
193
193
|
style: {
|
|
194
194
|
gridTemplateRows: heights,
|
|
195
|
-
gridTemplateColumns: isDragging ?
|
|
195
|
+
gridTemplateColumns: isDragging ? // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
196
|
+
"".concat(dropTargetExtendedWidth, "px 14px ").concat(tableWidth, "px") : '0px 14px 0px',
|
|
196
197
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
197
|
-
left: isDragging ?
|
|
198
|
+
left: isDragging ? // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
199
|
+
"-".concat(dropTargetExtendedWidth + 2, "px") : "var(--ds-space-negative-025, -2px)"
|
|
198
200
|
},
|
|
199
201
|
onMouseMove: handleMouseMove,
|
|
200
202
|
contentEditable: false
|
|
@@ -76,6 +76,8 @@ export var tableStyles = function tableStyles(props) {
|
|
|
76
76
|
return css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", "\n\t}\n\n\t.ProseMirror.", " {\n\t\t.", " {\n\t\t\toverflow-x: auto;\n\t\t\t", ";\n\t\t}\n\t}\n\n\t.ProseMirror.", " {\n\t\tcursor: col-resize;\n\t}\n\n\t", "\n"])), baseTableStyles(props), ClassName.IS_RESIZING, ClassName.TABLE_NODE_WRAPPER, scrollbarStyles, ClassName.RESIZE_CURSOR, shadowSentinelStyles);
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
79
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
80
80
|
export var tableFullPageEditorStyles = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n\t.ProseMirror .", " > table {\n\t\tmargin-left: 0;\n\t\t// 1px border width offset added here to prevent unwanted overflow and scolling - ED-16212\n\t\tmargin-right: -1px;\n\t\twidth: 100%;\n\t}\n"])), ClassName.TABLE_NODE_WRAPPER);
|
|
81
|
+
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
81
83
|
export var tableCommentEditorStyles = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n\t.ProseMirror .", " > table {\n\t\tmargin-left: 0;\n\t\tmargin-right: 0;\n\t\t", ";\n\t}\n"])), ClassName.TABLE_NODE_WRAPPER, scrollbarStyles);
|
package/dist/esm/ui/consts.js
CHANGED
|
@@ -67,6 +67,9 @@ export var STICKY_HEADER_TOGGLE_TOLERANCE_MS = 5;
|
|
|
67
67
|
// table margins and padding. For example a guideline at 1800px and the view at 1860px wide, means the guidelines is visible
|
|
68
68
|
// BUT it cannot be snapped to during resize due to padding being applied to the resizer wrapper. This accommodates that difference.
|
|
69
69
|
export var TABLE_GUIDELINE_VISIBLE_ADJUSTMENT = -68;
|
|
70
|
+
export var TABLE_DRAG_MENU_SORT_GROUP_HEIGHT = 92;
|
|
71
|
+
export var TABLE_DRAG_MENU_PADDING_TOP = 4;
|
|
72
|
+
export var TABLE_DRAG_MENU_MENU_GROUP_BEFORE_HEIGHT = 6;
|
|
70
73
|
export var dragMenuDropdownWidth = 250;
|
|
71
74
|
export var dragTableInsertColumnButtonSize = 16;
|
|
72
75
|
export var dropTargetExtendedWidth = 150;
|
package/dist/esm/ui/ui-styles.js
CHANGED
|
@@ -12,9 +12,12 @@ var InsertLine = function InsertLine(cssString) {
|
|
|
12
12
|
};
|
|
13
13
|
var Marker = function Marker() {
|
|
14
14
|
return css({
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
16
|
backgroundColor: tableBorderColor,
|
|
16
17
|
position: 'absolute',
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
19
|
height: "".concat(lineMarkerSize, "px"),
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
21
|
width: "".concat(lineMarkerSize, "px"),
|
|
19
22
|
borderRadius: '50%',
|
|
20
23
|
pointerEvents: 'none'
|
|
@@ -54,10 +57,22 @@ export var dragCornerControlButton = function dragCornerControlButton() {
|
|
|
54
57
|
return css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n\t.", " {\n\t\twidth: 15px;\n\t\theight: 15px;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tposition: absolute;\n\t\ttop: -17px;\n\t\tleft: -5px;\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tpadding: 0;\n\t\toutline: none;\n\t\tz-index: ", ";\n\n\t\t&.active .", " {\n\t\t\tbackground-color: ", ";\n\t\t\twidth: 10px;\n\t\t\theight: 10px;\n\t\t\tborder-width: 2px;\n\t\t\tborder-radius: 4px;\n\n\t\t\ttop: 3px;\n\t\t\tleft: 2px;\n\t\t}\n\n\t\t&:hover {\n\t\t\tcursor: pointer;\n\n\t\t\t.", " {\n\t\t\t\twidth: 10px;\n\t\t\t\theight: 10px;\n\t\t\t\tborder-radius: 4px;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 2px;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tborder: 1px solid ", ";\n\t\tbackground-color: ", ";\n\t\tborder-radius: 2px;\n\t\twidth: 5px;\n\t\theight: 5px;\n\t\tposition: relative;\n\t}\n"])), ClassName.DRAG_CORNER_BUTTON, akEditorUnitZIndex * 99, ClassName.DRAG_CORNER_BUTTON_INNER, "var(--ds-border-selected, #0C66E4)", ClassName.DRAG_CORNER_BUTTON_INNER, ClassName.DRAG_CORNER_BUTTON_INNER, "var(--ds-border-inverse, #FFF)", "var(--ds-background-accent-gray-subtler, #DCDFE4)");
|
|
55
58
|
};
|
|
56
59
|
export var insertColumnButtonWrapper = function insertColumnButtonWrapper() {
|
|
57
|
-
return css(
|
|
60
|
+
return css(
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
62
|
+
InsertButton(),
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
64
|
+
InsertButtonHover(),
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
66
|
+
InsertLine("\n width: 2px;\n left: 9px;\n "));
|
|
58
67
|
};
|
|
59
68
|
export var insertRowButtonWrapper = function insertRowButtonWrapper() {
|
|
60
|
-
return css(
|
|
69
|
+
return css(
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
71
|
+
InsertButton(),
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
73
|
+
InsertButtonHover(),
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
75
|
+
InsertLine("\n height: 2px;\n top: -11px;\n// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766\n left: ".concat(tableInsertColumnButtonSize - 1, "px;\n ")));
|
|
61
76
|
};
|
|
62
77
|
export var columnControlsLineMarker = function columnControlsLineMarker() {
|
|
63
78
|
return css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n\t.", ".", " table tr:first-of-type td,\n\t.", ".", " table tr:first-of-type th {\n\t\tposition: relative;\n\t}\n"])), ClassName.TABLE_CONTAINER, ClassName.WITH_CONTROLS, ClassName.TABLE_CONTAINER, ClassName.WITH_CONTROLS);
|
|
@@ -75,20 +90,27 @@ var overflowShadowWidhoutDnD = function overflowShadowWidhoutDnD(isDragAndDropEn
|
|
|
75
90
|
};
|
|
76
91
|
var columnHeaderButton = function columnHeaderButton(cssString) {
|
|
77
92
|
return css({
|
|
93
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
78
94
|
background: tableHeaderCellBackgroundColor,
|
|
79
95
|
display: 'block',
|
|
80
96
|
boxSizing: 'border-box',
|
|
81
97
|
padding: 0,
|
|
98
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
82
99
|
':focus': {
|
|
83
100
|
outline: 'none'
|
|
84
101
|
}
|
|
85
|
-
},
|
|
102
|
+
},
|
|
103
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
104
|
+
cssString);
|
|
86
105
|
};
|
|
87
106
|
var columnHeaderButtonSelected = function columnHeaderButtonSelected() {
|
|
88
107
|
return css({
|
|
89
108
|
color: "var(--ds-text-inverse, ".concat(N0, ")"),
|
|
109
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
90
110
|
backgroundColor: tableToolbarSelectedColor,
|
|
111
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
91
112
|
borderColor: tableBorderSelectedColor,
|
|
113
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
92
114
|
zIndex: columnControlsSelectedZIndex
|
|
93
115
|
});
|
|
94
116
|
};
|
|
@@ -110,6 +132,8 @@ export var hoveredDeleteButton = function hoveredDeleteButton() {
|
|
|
110
132
|
export var hoveredCell = function hoveredCell() {
|
|
111
133
|
return css(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n\t:not(.", ")\n\t\t.", ":not(.", ") {\n\t\t.", " {\n\t\t\tposition: relative;\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\t\t.", ".", " {\n\t\t\tposition: relative;\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\t}\n"])), ClassName.IS_RESIZING, ClassName.TABLE_CONTAINER, ClassName.HOVERED_DELETE_BUTTON, ClassName.HOVERED_CELL, tableBorderSelectedColor, ClassName.HOVERED_CELL, ClassName.HOVERED_NO_HIGHLIGHT, tableBorderColor);
|
|
112
134
|
};
|
|
135
|
+
|
|
136
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
113
137
|
export var hoveredWarningCell = css(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n\t:not(.", ")\n\t\t.", ":not(.", ") {\n\t\ttd.", " {\n\t\t\tbackground-color: ", " !important; // We need to override the background-color added to the cell\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\t}\n"])), ClassName.IS_RESIZING, ClassName.TABLE_CONTAINER, ClassName.HOVERED_DELETE_BUTTON, ClassName.HOVERED_CELL_WARNING, "var(--ds-background-warning, ".concat(Y50, ")"), "var(--ds-border-warning, ".concat(Y200, ")"));
|
|
114
138
|
|
|
115
139
|
// Explicit pixel values required here to ensure correct positioning and sizes of column resize handle
|
|
@@ -128,22 +152,30 @@ export var resizeHandle = function resizeHandle(isDragAndDropEnabled) {
|
|
|
128
152
|
var tableCellColumnInsertLineStyles = css({
|
|
129
153
|
content: "' '",
|
|
130
154
|
position: 'absolute',
|
|
155
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
131
156
|
height: "calc(100% + ".concat(tableCellBorderWidth * 2, "px)"),
|
|
157
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
132
158
|
width: "".concat(insertLineWidth, "px"),
|
|
159
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
133
160
|
zIndex: columnControlsZIndex * 2
|
|
134
161
|
});
|
|
135
162
|
var tableCellRowInsertLineStyles = css({
|
|
136
163
|
content: "' '",
|
|
137
164
|
position: 'absolute',
|
|
138
165
|
left: "var(--ds-space-negative-025, -2px)",
|
|
166
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
139
167
|
height: "".concat(insertLineWidth, "px"),
|
|
168
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
140
169
|
width: "calc(100% + ".concat(tableCellBorderWidth * 2, "px)"),
|
|
170
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
141
171
|
zIndex: columnControlsZIndex * 2
|
|
142
172
|
});
|
|
143
173
|
var insertLineActiveColor = css({
|
|
174
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
144
175
|
backgroundColor: tableBorderSelectedColor
|
|
145
176
|
});
|
|
146
177
|
var insertLineInactiveColor = css({
|
|
178
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
147
179
|
backgroundColor: "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")")
|
|
148
180
|
});
|
|
149
181
|
|
|
@@ -74,6 +74,8 @@ export var getDragMenuConfig = function getDragMenuConfig(direction, getEditorCo
|
|
|
74
74
|
var tableDuplicateCellColouring = arguments.length > 12 && arguments[12] !== undefined ? arguments[12] : false;
|
|
75
75
|
var isTableFixedColumnWidthsOptionEnabled = arguments.length > 13 && arguments[13] !== undefined ? arguments[13] : false;
|
|
76
76
|
var shouldUseIncreasedScalingPercent = arguments.length > 14 && arguments[14] !== undefined ? arguments[14] : false;
|
|
77
|
+
var tableSortColumnDiscoverability = arguments.length > 15 && arguments[15] !== undefined ? arguments[15] : false;
|
|
78
|
+
var selection = editorView.state.selection;
|
|
77
79
|
var addOptions = direction === 'row' ? [{
|
|
78
80
|
label: 'above',
|
|
79
81
|
offset: 0,
|
|
@@ -95,7 +97,6 @@ export var getDragMenuConfig = function getDragMenuConfig(direction, getEditorCo
|
|
|
95
97
|
icon: AddColRightIcon,
|
|
96
98
|
keymap: addColumnAfter
|
|
97
99
|
}];
|
|
98
|
-
var selection = editorView.state.selection;
|
|
99
100
|
var moveOptions = direction === 'row' ? [{
|
|
100
101
|
label: 'up',
|
|
101
102
|
icon: ArrowUpIcon,
|
|
@@ -142,11 +143,26 @@ export var getDragMenuConfig = function getDragMenuConfig(direction, getEditorCo
|
|
|
142
143
|
order: SortOrder.DESC,
|
|
143
144
|
icon: HipchatChevronDoubleDownIcon
|
|
144
145
|
}] : [];
|
|
145
|
-
|
|
146
|
+
var sortConfigs = _toConsumableArray(sortOptions.map(function (_ref) {
|
|
146
147
|
var label = _ref.label,
|
|
147
|
-
|
|
148
|
-
icon = _ref.icon
|
|
149
|
-
|
|
148
|
+
order = _ref.order,
|
|
149
|
+
icon = _ref.icon;
|
|
150
|
+
return {
|
|
151
|
+
id: "sort_column_".concat(order),
|
|
152
|
+
title: "Sort ".concat(label),
|
|
153
|
+
disabled: hasMergedCellsInTable,
|
|
154
|
+
icon: icon,
|
|
155
|
+
onClick: function onClick(state, dispatch) {
|
|
156
|
+
sortColumnWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.TABLE_CONTEXT_MENU, index !== null && index !== void 0 ? index : 0, order)(state, dispatch);
|
|
157
|
+
return true;
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
}));
|
|
161
|
+
var restConfigs = [].concat(_toConsumableArray(addOptions.map(function (_ref2) {
|
|
162
|
+
var label = _ref2.label,
|
|
163
|
+
offset = _ref2.offset,
|
|
164
|
+
icon = _ref2.icon,
|
|
165
|
+
keymap = _ref2.keymap;
|
|
150
166
|
return {
|
|
151
167
|
id: "add_".concat(direction, "_").concat(label),
|
|
152
168
|
title: "Add ".concat(direction, " ").concat(label),
|
|
@@ -203,13 +219,13 @@ export var getDragMenuConfig = function getDragMenuConfig(direction, getEditorCo
|
|
|
203
219
|
},
|
|
204
220
|
icon: RemoveIcon,
|
|
205
221
|
keymap: direction === 'row' ? tooltip(deleteRow) : tooltip(deleteColumn)
|
|
206
|
-
}], _toConsumableArray(moveOptions.map(function (
|
|
207
|
-
var label =
|
|
208
|
-
canMove =
|
|
209
|
-
icon =
|
|
210
|
-
keymap =
|
|
211
|
-
getOriginIndexes =
|
|
212
|
-
getTargetIndex =
|
|
222
|
+
}], _toConsumableArray(moveOptions.map(function (_ref3) {
|
|
223
|
+
var label = _ref3.label,
|
|
224
|
+
canMove = _ref3.canMove,
|
|
225
|
+
icon = _ref3.icon,
|
|
226
|
+
keymap = _ref3.keymap,
|
|
227
|
+
getOriginIndexes = _ref3.getOriginIndexes,
|
|
228
|
+
getTargetIndex = _ref3.getTargetIndex;
|
|
213
229
|
return {
|
|
214
230
|
id: "move_".concat(direction, "_").concat(label),
|
|
215
231
|
title: "Move ".concat(direction, " ").concat(label),
|
|
@@ -226,19 +242,8 @@ export var getDragMenuConfig = function getDragMenuConfig(direction, getEditorCo
|
|
|
226
242
|
},
|
|
227
243
|
keymap: keymap && tooltip(keymap)
|
|
228
244
|
};
|
|
229
|
-
}))
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
return {
|
|
234
|
-
id: "sort_column_".concat(order),
|
|
235
|
-
title: "Sort ".concat(label),
|
|
236
|
-
disabled: hasMergedCellsInTable,
|
|
237
|
-
icon: icon,
|
|
238
|
-
onClick: function onClick(state, dispatch) {
|
|
239
|
-
sortColumnWithAnalytics(editorAnalyticsAPI)(INPUT_METHOD.TABLE_CONTEXT_MENU, index !== null && index !== void 0 ? index : 0, order)(state, dispatch);
|
|
240
|
-
return true;
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
}))).filter(Boolean);
|
|
245
|
+
})));
|
|
246
|
+
var allConfigs = _toConsumableArray(restConfigs);
|
|
247
|
+
tableSortColumnDiscoverability ? allConfigs.unshift.apply(allConfigs, _toConsumableArray(sortConfigs)) : allConfigs.push.apply(allConfigs, _toConsumableArray(sortConfigs));
|
|
248
|
+
return allConfigs.filter(Boolean);
|
|
244
249
|
};
|
|
@@ -28,8 +28,9 @@ type DragMenuProps = {
|
|
|
28
28
|
tableDuplicateCellColouring?: boolean;
|
|
29
29
|
shouldUseIncreasedScalingPercent?: boolean;
|
|
30
30
|
isTableFixedColumnWidthsOptionEnabled?: boolean;
|
|
31
|
+
tableSortColumnDiscoverability?: boolean;
|
|
31
32
|
};
|
|
32
|
-
export declare const DragMenu: React.MemoExoticComponent<({ direction, index, target, isOpen, editorView, tableNode, targetCellPosition, getEditorContainerWidth, editorAnalyticsAPI, pluginConfig, intl: { formatMessage }, fitHeight, fitWidth, mountPoint, scrollableElement, boundariesElement, isTableScalingEnabled, tableDuplicateCellColouring, shouldUseIncreasedScalingPercent, isTableFixedColumnWidthsOptionEnabled, }: DragMenuProps & WrappedComponentProps) => jsx.JSX.Element | null>;
|
|
33
|
+
export declare const DragMenu: React.MemoExoticComponent<({ direction, index, target, isOpen, editorView, tableNode, targetCellPosition, getEditorContainerWidth, editorAnalyticsAPI, pluginConfig, intl: { formatMessage }, fitHeight, fitWidth, mountPoint, scrollableElement, boundariesElement, isTableScalingEnabled, tableDuplicateCellColouring, shouldUseIncreasedScalingPercent, isTableFixedColumnWidthsOptionEnabled, tableSortColumnDiscoverability, }: DragMenuProps & WrappedComponentProps) => jsx.JSX.Element | null>;
|
|
33
34
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<DragMenuProps & WrappedComponentProps>> & {
|
|
34
35
|
WrappedComponent: React.ComponentType<DragMenuProps & WrappedComponentProps>;
|
|
35
36
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const cellColourPreviewStyles: (selectedColor: string) => import("@emotion/react").SerializedStyles;
|
|
2
2
|
export declare const elementBeforeIconStyles: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const dragMenuBackgroundColorStyles: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const dragMenuBackgroundColorStyles: (tableSortColumnDiscoverability?: boolean) => import("@emotion/react").SerializedStyles;
|
|
4
4
|
export declare const toggleStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -116,6 +116,10 @@ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hover
|
|
|
116
116
|
to: number;
|
|
117
117
|
mark: import("prosemirror-model").Mark;
|
|
118
118
|
}) => boolean;
|
|
119
|
+
addInlineCommentNodeMark: (props: {
|
|
120
|
+
pos: number;
|
|
121
|
+
mark: import("prosemirror-model").Mark;
|
|
122
|
+
}) => boolean;
|
|
119
123
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
120
124
|
};
|
|
121
125
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
|
|
@@ -220,6 +224,10 @@ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hover
|
|
|
220
224
|
to: number;
|
|
221
225
|
mark: import("prosemirror-model").Mark;
|
|
222
226
|
}) => boolean;
|
|
227
|
+
addInlineCommentNodeMark: (props: {
|
|
228
|
+
pos: number;
|
|
229
|
+
mark: import("prosemirror-model").Mark;
|
|
230
|
+
}) => boolean;
|
|
223
231
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
224
232
|
};
|
|
225
233
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
|
|
@@ -97,6 +97,10 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
97
97
|
to: number;
|
|
98
98
|
mark: import("prosemirror-model").Mark;
|
|
99
99
|
}) => boolean;
|
|
100
|
+
addInlineCommentNodeMark: (props: {
|
|
101
|
+
pos: number;
|
|
102
|
+
mark: import("prosemirror-model").Mark;
|
|
103
|
+
}) => boolean;
|
|
100
104
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
101
105
|
};
|
|
102
106
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
|
|
@@ -201,6 +205,10 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
201
205
|
to: number;
|
|
202
206
|
mark: import("prosemirror-model").Mark;
|
|
203
207
|
}) => boolean;
|
|
208
|
+
addInlineCommentNodeMark: (props: {
|
|
209
|
+
pos: number;
|
|
210
|
+
mark: import("prosemirror-model").Mark;
|
|
211
|
+
}) => boolean;
|
|
204
212
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
205
213
|
};
|
|
206
214
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
|
|
@@ -316,6 +324,10 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
316
324
|
to: number;
|
|
317
325
|
mark: import("prosemirror-model").Mark;
|
|
318
326
|
}) => boolean;
|
|
327
|
+
addInlineCommentNodeMark: (props: {
|
|
328
|
+
pos: number;
|
|
329
|
+
mark: import("prosemirror-model").Mark;
|
|
330
|
+
}) => boolean;
|
|
319
331
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
320
332
|
};
|
|
321
333
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
|
|
@@ -420,6 +432,10 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
420
432
|
to: number;
|
|
421
433
|
mark: import("prosemirror-model").Mark;
|
|
422
434
|
}) => boolean;
|
|
435
|
+
addInlineCommentNodeMark: (props: {
|
|
436
|
+
pos: number;
|
|
437
|
+
mark: import("prosemirror-model").Mark;
|
|
438
|
+
}) => boolean;
|
|
423
439
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
424
440
|
};
|
|
425
441
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
|
|
@@ -125,6 +125,10 @@ export declare const TableFloatingControls: ({ editorView, tableRef, tableNode,
|
|
|
125
125
|
to: number;
|
|
126
126
|
mark: import("prosemirror-model").Mark;
|
|
127
127
|
}) => boolean;
|
|
128
|
+
addInlineCommentNodeMark: (props: {
|
|
129
|
+
pos: number;
|
|
130
|
+
mark: import("prosemirror-model").Mark;
|
|
131
|
+
}) => boolean;
|
|
128
132
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
129
133
|
};
|
|
130
134
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
|
|
@@ -229,6 +233,10 @@ export declare const TableFloatingControls: ({ editorView, tableRef, tableNode,
|
|
|
229
233
|
to: number;
|
|
230
234
|
mark: import("prosemirror-model").Mark;
|
|
231
235
|
}) => boolean;
|
|
236
|
+
addInlineCommentNodeMark: (props: {
|
|
237
|
+
pos: number;
|
|
238
|
+
mark: import("prosemirror-model").Mark;
|
|
239
|
+
}) => boolean;
|
|
232
240
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
233
241
|
};
|
|
234
242
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>];
|
|
@@ -54,6 +54,9 @@ export declare const TABLE_HIGHLIGHT_GAP = 10;
|
|
|
54
54
|
export declare const TABLE_HIGHLIGHT_TOLERANCE = 2;
|
|
55
55
|
export declare const STICKY_HEADER_TOGGLE_TOLERANCE_MS = 5;
|
|
56
56
|
export declare const TABLE_GUIDELINE_VISIBLE_ADJUSTMENT = -68;
|
|
57
|
+
export declare const TABLE_DRAG_MENU_SORT_GROUP_HEIGHT = 92;
|
|
58
|
+
export declare const TABLE_DRAG_MENU_PADDING_TOP = 4;
|
|
59
|
+
export declare const TABLE_DRAG_MENU_MENU_GROUP_BEFORE_HEIGHT = 6;
|
|
57
60
|
export declare const dragMenuDropdownWidth = 250;
|
|
58
61
|
export declare const dragTableInsertColumnButtonSize = 16;
|
|
59
62
|
export declare const dropTargetExtendedWidth = 150;
|
|
@@ -13,4 +13,4 @@ export interface DragMenuConfig extends DropdownOptionT<Command> {
|
|
|
13
13
|
icon?: React.ComponentType<React.PropsWithChildren<IconProps>>;
|
|
14
14
|
keymap?: string;
|
|
15
15
|
}
|
|
16
|
-
export declare const getDragMenuConfig: (direction: TableDirection, getEditorContainerWidth: GetEditorContainerWidth, canDrag: boolean, hasMergedCellsInTable: boolean, editorView: EditorView, tableMap?: TableMap, index?: number, targetCellPosition?: number, selectionRect?: Rect, editorAnalyticsAPI?: EditorAnalyticsAPI, isHeaderRowRequired?: boolean, isTableScalingEnabled?: boolean, tableDuplicateCellColouring?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => DragMenuConfig[];
|
|
16
|
+
export declare const getDragMenuConfig: (direction: TableDirection, getEditorContainerWidth: GetEditorContainerWidth, canDrag: boolean, hasMergedCellsInTable: boolean, editorView: EditorView, tableMap?: TableMap, index?: number, targetCellPosition?: number, selectionRect?: Rect, editorAnalyticsAPI?: EditorAnalyticsAPI, isHeaderRowRequired?: boolean, isTableScalingEnabled?: boolean, tableDuplicateCellColouring?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, tableSortColumnDiscoverability?: boolean) => DragMenuConfig[];
|
|
@@ -28,8 +28,9 @@ type DragMenuProps = {
|
|
|
28
28
|
tableDuplicateCellColouring?: boolean;
|
|
29
29
|
shouldUseIncreasedScalingPercent?: boolean;
|
|
30
30
|
isTableFixedColumnWidthsOptionEnabled?: boolean;
|
|
31
|
+
tableSortColumnDiscoverability?: boolean;
|
|
31
32
|
};
|
|
32
|
-
export declare const DragMenu: React.MemoExoticComponent<({ direction, index, target, isOpen, editorView, tableNode, targetCellPosition, getEditorContainerWidth, editorAnalyticsAPI, pluginConfig, intl: { formatMessage }, fitHeight, fitWidth, mountPoint, scrollableElement, boundariesElement, isTableScalingEnabled, tableDuplicateCellColouring, shouldUseIncreasedScalingPercent, isTableFixedColumnWidthsOptionEnabled, }: DragMenuProps & WrappedComponentProps) => jsx.JSX.Element | null>;
|
|
33
|
+
export declare const DragMenu: React.MemoExoticComponent<({ direction, index, target, isOpen, editorView, tableNode, targetCellPosition, getEditorContainerWidth, editorAnalyticsAPI, pluginConfig, intl: { formatMessage }, fitHeight, fitWidth, mountPoint, scrollableElement, boundariesElement, isTableScalingEnabled, tableDuplicateCellColouring, shouldUseIncreasedScalingPercent, isTableFixedColumnWidthsOptionEnabled, tableSortColumnDiscoverability, }: DragMenuProps & WrappedComponentProps) => jsx.JSX.Element | null>;
|
|
33
34
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<DragMenuProps & WrappedComponentProps>> & {
|
|
34
35
|
WrappedComponent: React.ComponentType<DragMenuProps & WrappedComponentProps>;
|
|
35
36
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const cellColourPreviewStyles: (selectedColor: string) => import("@emotion/react").SerializedStyles;
|
|
2
2
|
export declare const elementBeforeIconStyles: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const dragMenuBackgroundColorStyles: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const dragMenuBackgroundColorStyles: (tableSortColumnDiscoverability?: boolean) => import("@emotion/react").SerializedStyles;
|
|
4
4
|
export declare const toggleStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -140,6 +140,10 @@ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hover
|
|
|
140
140
|
to: number;
|
|
141
141
|
mark: import("prosemirror-model").Mark;
|
|
142
142
|
}) => boolean;
|
|
143
|
+
addInlineCommentNodeMark: (props: {
|
|
144
|
+
pos: number;
|
|
145
|
+
mark: import("prosemirror-model").Mark;
|
|
146
|
+
}) => boolean;
|
|
143
147
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
144
148
|
};
|
|
145
149
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
@@ -270,6 +274,10 @@ export declare const ColumnControls: ({ editorView, tableActive, tableRef, hover
|
|
|
270
274
|
to: number;
|
|
271
275
|
mark: import("prosemirror-model").Mark;
|
|
272
276
|
}) => boolean;
|
|
277
|
+
addInlineCommentNodeMark: (props: {
|
|
278
|
+
pos: number;
|
|
279
|
+
mark: import("prosemirror-model").Mark;
|
|
280
|
+
}) => boolean;
|
|
273
281
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
274
282
|
};
|
|
275
283
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
@@ -121,6 +121,10 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
121
121
|
to: number;
|
|
122
122
|
mark: import("prosemirror-model").Mark;
|
|
123
123
|
}) => boolean;
|
|
124
|
+
addInlineCommentNodeMark: (props: {
|
|
125
|
+
pos: number;
|
|
126
|
+
mark: import("prosemirror-model").Mark;
|
|
127
|
+
}) => boolean;
|
|
124
128
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
125
129
|
};
|
|
126
130
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
@@ -251,6 +255,10 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
251
255
|
to: number;
|
|
252
256
|
mark: import("prosemirror-model").Mark;
|
|
253
257
|
}) => boolean;
|
|
258
|
+
addInlineCommentNodeMark: (props: {
|
|
259
|
+
pos: number;
|
|
260
|
+
mark: import("prosemirror-model").Mark;
|
|
261
|
+
}) => boolean;
|
|
254
262
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
255
263
|
};
|
|
256
264
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
@@ -393,6 +401,10 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
393
401
|
to: number;
|
|
394
402
|
mark: import("prosemirror-model").Mark;
|
|
395
403
|
}) => boolean;
|
|
404
|
+
addInlineCommentNodeMark: (props: {
|
|
405
|
+
pos: number;
|
|
406
|
+
mark: import("prosemirror-model").Mark;
|
|
407
|
+
}) => boolean;
|
|
396
408
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
397
409
|
};
|
|
398
410
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
@@ -523,6 +535,10 @@ export declare const DragCornerControlsWithSelection: React.FC<import("react-int
|
|
|
523
535
|
to: number;
|
|
524
536
|
mark: import("prosemirror-model").Mark;
|
|
525
537
|
}) => boolean;
|
|
538
|
+
addInlineCommentNodeMark: (props: {
|
|
539
|
+
pos: number;
|
|
540
|
+
mark: import("prosemirror-model").Mark;
|
|
541
|
+
}) => boolean;
|
|
526
542
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
527
543
|
};
|
|
528
544
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
@@ -149,6 +149,10 @@ export declare const TableFloatingControls: ({ editorView, tableRef, tableNode,
|
|
|
149
149
|
to: number;
|
|
150
150
|
mark: import("prosemirror-model").Mark;
|
|
151
151
|
}) => boolean;
|
|
152
|
+
addInlineCommentNodeMark: (props: {
|
|
153
|
+
pos: number;
|
|
154
|
+
mark: import("prosemirror-model").Mark;
|
|
155
|
+
}) => boolean;
|
|
152
156
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
153
157
|
};
|
|
154
158
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
@@ -279,6 +283,10 @@ export declare const TableFloatingControls: ({ editorView, tableRef, tableNode,
|
|
|
279
283
|
to: number;
|
|
280
284
|
mark: import("prosemirror-model").Mark;
|
|
281
285
|
}) => boolean;
|
|
286
|
+
addInlineCommentNodeMark: (props: {
|
|
287
|
+
pos: number;
|
|
288
|
+
mark: import("prosemirror-model").Mark;
|
|
289
|
+
}) => boolean;
|
|
282
290
|
isRemoteReplaceDocumentTransaction: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
283
291
|
};
|
|
284
292
|
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
@@ -54,6 +54,9 @@ export declare const TABLE_HIGHLIGHT_GAP = 10;
|
|
|
54
54
|
export declare const TABLE_HIGHLIGHT_TOLERANCE = 2;
|
|
55
55
|
export declare const STICKY_HEADER_TOGGLE_TOLERANCE_MS = 5;
|
|
56
56
|
export declare const TABLE_GUIDELINE_VISIBLE_ADJUSTMENT = -68;
|
|
57
|
+
export declare const TABLE_DRAG_MENU_SORT_GROUP_HEIGHT = 92;
|
|
58
|
+
export declare const TABLE_DRAG_MENU_PADDING_TOP = 4;
|
|
59
|
+
export declare const TABLE_DRAG_MENU_MENU_GROUP_BEFORE_HEIGHT = 6;
|
|
57
60
|
export declare const dragMenuDropdownWidth = 250;
|
|
58
61
|
export declare const dragTableInsertColumnButtonSize = 16;
|
|
59
62
|
export declare const dropTargetExtendedWidth = 150;
|
|
@@ -13,4 +13,4 @@ export interface DragMenuConfig extends DropdownOptionT<Command> {
|
|
|
13
13
|
icon?: React.ComponentType<React.PropsWithChildren<IconProps>>;
|
|
14
14
|
keymap?: string;
|
|
15
15
|
}
|
|
16
|
-
export declare const getDragMenuConfig: (direction: TableDirection, getEditorContainerWidth: GetEditorContainerWidth, canDrag: boolean, hasMergedCellsInTable: boolean, editorView: EditorView, tableMap?: TableMap, index?: number, targetCellPosition?: number, selectionRect?: Rect, editorAnalyticsAPI?: EditorAnalyticsAPI, isHeaderRowRequired?: boolean, isTableScalingEnabled?: boolean, tableDuplicateCellColouring?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean) => DragMenuConfig[];
|
|
16
|
+
export declare const getDragMenuConfig: (direction: TableDirection, getEditorContainerWidth: GetEditorContainerWidth, canDrag: boolean, hasMergedCellsInTable: boolean, editorView: EditorView, tableMap?: TableMap, index?: number, targetCellPosition?: number, selectionRect?: Rect, editorAnalyticsAPI?: EditorAnalyticsAPI, isHeaderRowRequired?: boolean, isTableScalingEnabled?: boolean, tableDuplicateCellColouring?: boolean, isTableFixedColumnWidthsOptionEnabled?: boolean, shouldUseIncreasedScalingPercent?: boolean, tableSortColumnDiscoverability?: boolean) => DragMenuConfig[];
|