@atlaskit/editor-common 102.13.9 → 102.13.11
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 +14 -0
- package/dist/cjs/keymaps/index.js +3 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/calculate-toolbar-position.js +8 -0
- package/dist/es2019/keymaps/index.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/calculate-toolbar-position.js +8 -0
- package/dist/esm/keymaps/index.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/calculate-toolbar-position.js +8 -0
- package/dist/types/keymaps/index.d.ts +1 -0
- package/dist/types/types/floating-toolbar.d.ts +7 -8
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types-ts4.5/keymaps/index.d.ts +1 -0
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +7 -8
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 102.13.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#133639](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/133639)
|
|
8
|
+
[`371bad9b8ae73`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/371bad9b8ae73) -
|
|
9
|
+
[ux] Increase the space between column drag handle and the Text Formatting toolbar.
|
|
10
|
+
|
|
11
|
+
## 102.13.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 102.13.9
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -102,8 +102,8 @@ Object.defineProperty(exports, "keymap", {
|
|
|
102
102
|
exports.makeKeyMapArrayWithCommon = makeKeyMapArrayWithCommon;
|
|
103
103
|
exports.makeKeyMapWithCommon = makeKeyMapWithCommon;
|
|
104
104
|
exports.makeKeymap = makeKeymap;
|
|
105
|
-
exports.
|
|
106
|
-
exports.toggleUnderline = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHighlightPalette = exports.toggleHeading6 = exports.toggleHeading5 = exports.toggleHeading4 = exports.toggleHeading3 = exports.toggleHeading2 = exports.toggleHeading1 = exports.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.startColumnResizing = void 0;
|
|
105
|
+
exports.splitCodeBlock = exports.space = exports.showElementDragHandle = exports.shiftTab = exports.shiftEnter = exports.shiftBackspace = exports.shiftArrowUp = exports.setNormalText = exports.selectTable = exports.selectRow = exports.selectNode = exports.selectColumn = exports.redoAlt = exports.redo = exports.previousCell = exports.pastePlainText = exports.paste = exports.outdentList = exports.outdent = exports.openHelp = exports.nextCell = exports.navToFloatingToolbar = exports.navToEditorToolbar = exports.moveUp = exports.moveRowUp = exports.moveRowDown = exports.moveRight = exports.moveLeft = exports.moveDown = exports.moveColumnRight = exports.moveColumnLeft = void 0;
|
|
106
|
+
exports.toggleUnderline = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHighlightPalette = exports.toggleHeading6 = exports.toggleHeading5 = exports.toggleHeading4 = exports.toggleHeading3 = exports.toggleHeading2 = exports.toggleHeading1 = exports.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.startColumnResizing = exports.splitListItem = void 0;
|
|
107
107
|
exports.tooltip = tooltip;
|
|
108
108
|
exports.undo = void 0;
|
|
109
109
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
@@ -158,6 +158,7 @@ var moveLeft = exports.moveLeft = makeKeyMapWithCommon('Move left', 'ArrowLeft')
|
|
|
158
158
|
var moveRight = exports.moveRight = makeKeyMapWithCommon('Move right', 'ArrowRight');
|
|
159
159
|
var indentList = exports.indentList = makeKeyMapWithCommon('Indent List', 'Tab');
|
|
160
160
|
var outdentList = exports.outdentList = makeKeyMapWithCommon('Outdent List', 'Shift-Tab');
|
|
161
|
+
var redoAlt = exports.redoAlt = makeKeyMapWithCommon('Redo', 'Mod-y');
|
|
161
162
|
var redo = exports.redo = makeKeymap('Redo', 'Ctrl-y', 'Mod-Shift-z');
|
|
162
163
|
var openHelp = exports.openHelp = makeKeyMapWithCommon('Open Help', 'Mod-/');
|
|
163
164
|
var addLink = exports.addLink = makeKeyMapWithCommon('Link', 'Mod-k');
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "102.13.
|
|
20
|
+
var packageVersion = "102.13.11";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "102.13.
|
|
26
|
+
var packageVersion = "102.13.11";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.calculateToolbarPositionTrackHead = exports.calculateToolbarPositionOnCellSelection = exports.calculateToolbarPositionAboveSelection = void 0;
|
|
7
7
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
8
8
|
var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
|
|
9
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
10
|
var MAXIMUM_BROWSER_SCROLLBAR_WIDTH = 20;
|
|
10
11
|
|
|
11
12
|
/*
|
|
@@ -160,6 +161,7 @@ var getCoordsBelowSelection = function getCoordsBelowSelection(bottomCoords, too
|
|
|
160
161
|
};
|
|
161
162
|
var cellSelectionToolbarCffsetTop = 10;
|
|
162
163
|
var scrollbarWidth = 20;
|
|
164
|
+
var offsetTopOnColumnSelection = 4;
|
|
163
165
|
var calculateToolbarPositionOnCellSelection = exports.calculateToolbarPositionOnCellSelection = function calculateToolbarPositionOnCellSelection(toolbarTitle) {
|
|
164
166
|
return function (editorView, nextPos) {
|
|
165
167
|
var toolbar = document.querySelector("div[aria-label=\"".concat(toolbarTitle, "\"]"));
|
|
@@ -224,6 +226,12 @@ var calculateToolbarPositionOnCellSelection = exports.calculateToolbarPositionOn
|
|
|
224
226
|
} else {
|
|
225
227
|
left = anchorCellRect.left + (headCellRect.right - anchorCellRect.left) / 2;
|
|
226
228
|
}
|
|
229
|
+
|
|
230
|
+
// When column is selected, adjust top position to ensure that the toolbar does not
|
|
231
|
+
// touch column drag handle
|
|
232
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_controls_patch_1')) {
|
|
233
|
+
top = top - offsetTopOnColumnSelection;
|
|
234
|
+
}
|
|
227
235
|
}
|
|
228
236
|
var adjustedLeft = Math.max(0, left - toolbarRect.width / 2 - wrapperBounds.left);
|
|
229
237
|
if (adjustedLeft + toolbarRect.width > wrapperBounds.width) {
|
|
@@ -44,6 +44,7 @@ export const moveLeft = makeKeyMapWithCommon('Move left', 'ArrowLeft');
|
|
|
44
44
|
export const moveRight = makeKeyMapWithCommon('Move right', 'ArrowRight');
|
|
45
45
|
export const indentList = makeKeyMapWithCommon('Indent List', 'Tab');
|
|
46
46
|
export const outdentList = makeKeyMapWithCommon('Outdent List', 'Shift-Tab');
|
|
47
|
+
export const redoAlt = makeKeyMapWithCommon('Redo', 'Mod-y');
|
|
47
48
|
export const redo = makeKeymap('Redo', 'Ctrl-y', 'Mod-Shift-z');
|
|
48
49
|
export const openHelp = makeKeyMapWithCommon('Open Help', 'Mod-/');
|
|
49
50
|
export const addLink = makeKeyMapWithCommon('Link', 'Mod-k');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "102.13.
|
|
4
|
+
const packageVersion = "102.13.11";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "102.13.
|
|
16
|
+
const packageVersion = "102.13.11";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
2
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
4
|
const MAXIMUM_BROWSER_SCROLLBAR_WIDTH = 20;
|
|
4
5
|
|
|
5
6
|
/*
|
|
@@ -154,6 +155,7 @@ const getCoordsBelowSelection = (bottomCoords, toolbarRect) => {
|
|
|
154
155
|
};
|
|
155
156
|
const cellSelectionToolbarCffsetTop = 10;
|
|
156
157
|
const scrollbarWidth = 20;
|
|
158
|
+
const offsetTopOnColumnSelection = 4;
|
|
157
159
|
export const calculateToolbarPositionOnCellSelection = toolbarTitle => (editorView, nextPos) => {
|
|
158
160
|
const toolbar = document.querySelector(`div[aria-label="${toolbarTitle}"]`);
|
|
159
161
|
if (!toolbar) {
|
|
@@ -221,6 +223,12 @@ export const calculateToolbarPositionOnCellSelection = toolbarTitle => (editorVi
|
|
|
221
223
|
} else {
|
|
222
224
|
left = anchorCellRect.left + (headCellRect.right - anchorCellRect.left) / 2;
|
|
223
225
|
}
|
|
226
|
+
|
|
227
|
+
// When column is selected, adjust top position to ensure that the toolbar does not
|
|
228
|
+
// touch column drag handle
|
|
229
|
+
if (fg('platform_editor_controls_patch_1')) {
|
|
230
|
+
top = top - offsetTopOnColumnSelection;
|
|
231
|
+
}
|
|
224
232
|
}
|
|
225
233
|
let adjustedLeft = Math.max(0, left - toolbarRect.width / 2 - wrapperBounds.left);
|
|
226
234
|
if (adjustedLeft + toolbarRect.width > wrapperBounds.width) {
|
|
@@ -45,6 +45,7 @@ export var moveLeft = makeKeyMapWithCommon('Move left', 'ArrowLeft');
|
|
|
45
45
|
export var moveRight = makeKeyMapWithCommon('Move right', 'ArrowRight');
|
|
46
46
|
export var indentList = makeKeyMapWithCommon('Indent List', 'Tab');
|
|
47
47
|
export var outdentList = makeKeyMapWithCommon('Outdent List', 'Shift-Tab');
|
|
48
|
+
export var redoAlt = makeKeyMapWithCommon('Redo', 'Mod-y');
|
|
48
49
|
export var redo = makeKeymap('Redo', 'Ctrl-y', 'Mod-Shift-z');
|
|
49
50
|
export var openHelp = makeKeyMapWithCommon('Open Help', 'Mod-/');
|
|
50
51
|
export var addLink = makeKeyMapWithCommon('Link', 'Mod-k');
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "102.13.
|
|
10
|
+
var packageVersion = "102.13.11";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "102.13.
|
|
23
|
+
var packageVersion = "102.13.11";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
2
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
3
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
3
4
|
var MAXIMUM_BROWSER_SCROLLBAR_WIDTH = 20;
|
|
4
5
|
|
|
5
6
|
/*
|
|
@@ -154,6 +155,7 @@ var getCoordsBelowSelection = function getCoordsBelowSelection(bottomCoords, too
|
|
|
154
155
|
};
|
|
155
156
|
var cellSelectionToolbarCffsetTop = 10;
|
|
156
157
|
var scrollbarWidth = 20;
|
|
158
|
+
var offsetTopOnColumnSelection = 4;
|
|
157
159
|
export var calculateToolbarPositionOnCellSelection = function calculateToolbarPositionOnCellSelection(toolbarTitle) {
|
|
158
160
|
return function (editorView, nextPos) {
|
|
159
161
|
var toolbar = document.querySelector("div[aria-label=\"".concat(toolbarTitle, "\"]"));
|
|
@@ -218,6 +220,12 @@ export var calculateToolbarPositionOnCellSelection = function calculateToolbarPo
|
|
|
218
220
|
} else {
|
|
219
221
|
left = anchorCellRect.left + (headCellRect.right - anchorCellRect.left) / 2;
|
|
220
222
|
}
|
|
223
|
+
|
|
224
|
+
// When column is selected, adjust top position to ensure that the toolbar does not
|
|
225
|
+
// touch column drag handle
|
|
226
|
+
if (fg('platform_editor_controls_patch_1')) {
|
|
227
|
+
top = top - offsetTopOnColumnSelection;
|
|
228
|
+
}
|
|
221
229
|
}
|
|
222
230
|
var adjustedLeft = Math.max(0, left - toolbarRect.width / 2 - wrapperBounds.left);
|
|
223
231
|
if (adjustedLeft + toolbarRect.width > wrapperBounds.width) {
|
|
@@ -41,6 +41,7 @@ export declare const moveLeft: Keymap;
|
|
|
41
41
|
export declare const moveRight: Keymap;
|
|
42
42
|
export declare const indentList: Keymap;
|
|
43
43
|
export declare const outdentList: Keymap;
|
|
44
|
+
export declare const redoAlt: Keymap;
|
|
44
45
|
export declare const redo: Keymap;
|
|
45
46
|
export declare const openHelp: Keymap;
|
|
46
47
|
export declare const addLink: Keymap;
|
|
@@ -16,7 +16,7 @@ import type { MarkOptions, NodeOptions } from './copy-button';
|
|
|
16
16
|
/**
|
|
17
17
|
* New dropdown types to support editor controls
|
|
18
18
|
*/
|
|
19
|
-
type OverflowDropdownHeading = {
|
|
19
|
+
export type OverflowDropdownHeading = {
|
|
20
20
|
type: 'overflow-dropdown-heading';
|
|
21
21
|
title: string;
|
|
22
22
|
};
|
|
@@ -26,8 +26,11 @@ type OverflowDropdownCustom<T extends Object> = {
|
|
|
26
26
|
render: (view?: EditorView, dropdownOption?: Omit<DropdownMenuItemProps, 'item'>) => React.ReactNode;
|
|
27
27
|
hidden?: boolean;
|
|
28
28
|
};
|
|
29
|
-
export type
|
|
30
|
-
|
|
29
|
+
export type OverflowDropdownOption<T extends Object> = DropdownOptionT<T> & {
|
|
30
|
+
rank?: number;
|
|
31
|
+
};
|
|
32
|
+
export type FloatingToolbarOverflowDropdownOptions<T extends Object> = Array<OverflowDropdownOption<T> | FloatingToolbarSeparator | OverflowDropdownHeading | OverflowDropdownCustom<T>>;
|
|
33
|
+
export type FloatingToolbarOverflowDropdown<T extends Object> = {
|
|
31
34
|
type: 'overflow-dropdown';
|
|
32
35
|
options: FloatingToolbarOverflowDropdownOptions<T>;
|
|
33
36
|
testId?: string;
|
|
@@ -38,11 +41,7 @@ type FloatingToolbarOverflowDropdown<T extends Object> = {
|
|
|
38
41
|
dropdownWidth?: number;
|
|
39
42
|
showSelected?: boolean;
|
|
40
43
|
alignDropdownWithToolbar?: boolean;
|
|
41
|
-
|
|
42
|
-
footer?: React.ReactNode;
|
|
43
|
-
/** If true, the component will have pulse onboarding effect around it. */
|
|
44
|
-
pulse?: boolean;
|
|
45
|
-
onMount?: () => void;
|
|
44
|
+
supportsViewMode?: boolean;
|
|
46
45
|
onClick?: () => void;
|
|
47
46
|
};
|
|
48
47
|
export interface RenderOptionsPropsT<T extends Object> {
|
|
@@ -13,7 +13,7 @@ export type { FeatureFlags, FeatureFlagKey, GetEditorFeatureFlags } from './feat
|
|
|
13
13
|
export type { Browsers, Range, DisableSpellcheckByBrowser } from './supported-browsers';
|
|
14
14
|
export type { EditorContainerWidth, GetEditorContainerWidth } from './editor-container-width';
|
|
15
15
|
export type { EmptyStateHandler, EmptyStateHandlerParams } from './empty-state-handler';
|
|
16
|
-
export type { RenderOptionsPropsT, DropdownOptionT, DropdownOptions, ExtensionDropdownOptions, SelectOption, ButtonAppearance, Icon, RenderOptionsProps, AlignType, ConfirmDialogChildInfo, ConfirmDialogOptions, ConfirmationDialogProps, FloatingToolbarButton, FloatingToolbarCopyButton, FloatingToolbarInput, FloatingToolbarCustom, FloatingToolbarListPicker, FloatingToolbarColorPicker, FloatingToolbarEmojiPicker, FloatingToolbarDatePicker, FloatingToolbarSelect, FloatingToolbarSeparator, FloatingToolbarDropdown, FloatingToolbarFallbackItem, FloatingToolbarItem, FloatingToolbarConfig, FloatingToolbarHandler, FloatingToolbarButtonSpotlightConfig, typeOption, FloatingToolbarOverflowDropdownOptions, } from './floating-toolbar';
|
|
16
|
+
export type { RenderOptionsPropsT, DropdownOptionT, DropdownOptions, ExtensionDropdownOptions, SelectOption, ButtonAppearance, Icon, RenderOptionsProps, AlignType, ConfirmDialogChildInfo, ConfirmDialogOptions, ConfirmationDialogProps, FloatingToolbarButton, FloatingToolbarCopyButton, FloatingToolbarInput, FloatingToolbarCustom, FloatingToolbarListPicker, FloatingToolbarColorPicker, FloatingToolbarEmojiPicker, FloatingToolbarDatePicker, FloatingToolbarSelect, FloatingToolbarSeparator, FloatingToolbarDropdown, FloatingToolbarFallbackItem, FloatingToolbarItem, FloatingToolbarConfig, FloatingToolbarHandler, FloatingToolbarButtonSpotlightConfig, typeOption, FloatingToolbarOverflowDropdown, FloatingToolbarOverflowDropdownOptions, OverflowDropdownHeading, OverflowDropdownOption, } from './floating-toolbar';
|
|
17
17
|
export type { MarkOptions, NodeOptions } from './copy-button';
|
|
18
18
|
export type { ContextPanelHandler } from './context-panel';
|
|
19
19
|
export type { EditorAppearance } from './editor-appearance';
|
|
@@ -41,6 +41,7 @@ export declare const moveLeft: Keymap;
|
|
|
41
41
|
export declare const moveRight: Keymap;
|
|
42
42
|
export declare const indentList: Keymap;
|
|
43
43
|
export declare const outdentList: Keymap;
|
|
44
|
+
export declare const redoAlt: Keymap;
|
|
44
45
|
export declare const redo: Keymap;
|
|
45
46
|
export declare const openHelp: Keymap;
|
|
46
47
|
export declare const addLink: Keymap;
|
|
@@ -16,7 +16,7 @@ import type { MarkOptions, NodeOptions } from './copy-button';
|
|
|
16
16
|
/**
|
|
17
17
|
* New dropdown types to support editor controls
|
|
18
18
|
*/
|
|
19
|
-
type OverflowDropdownHeading = {
|
|
19
|
+
export type OverflowDropdownHeading = {
|
|
20
20
|
type: 'overflow-dropdown-heading';
|
|
21
21
|
title: string;
|
|
22
22
|
};
|
|
@@ -26,8 +26,11 @@ type OverflowDropdownCustom<T extends Object> = {
|
|
|
26
26
|
render: (view?: EditorView, dropdownOption?: Omit<DropdownMenuItemProps, 'item'>) => React.ReactNode;
|
|
27
27
|
hidden?: boolean;
|
|
28
28
|
};
|
|
29
|
-
export type
|
|
30
|
-
|
|
29
|
+
export type OverflowDropdownOption<T extends Object> = DropdownOptionT<T> & {
|
|
30
|
+
rank?: number;
|
|
31
|
+
};
|
|
32
|
+
export type FloatingToolbarOverflowDropdownOptions<T extends Object> = Array<OverflowDropdownOption<T> | FloatingToolbarSeparator | OverflowDropdownHeading | OverflowDropdownCustom<T>>;
|
|
33
|
+
export type FloatingToolbarOverflowDropdown<T extends Object> = {
|
|
31
34
|
type: 'overflow-dropdown';
|
|
32
35
|
options: FloatingToolbarOverflowDropdownOptions<T>;
|
|
33
36
|
testId?: string;
|
|
@@ -38,11 +41,7 @@ type FloatingToolbarOverflowDropdown<T extends Object> = {
|
|
|
38
41
|
dropdownWidth?: number;
|
|
39
42
|
showSelected?: boolean;
|
|
40
43
|
alignDropdownWithToolbar?: boolean;
|
|
41
|
-
|
|
42
|
-
footer?: React.ReactNode;
|
|
43
|
-
/** If true, the component will have pulse onboarding effect around it. */
|
|
44
|
-
pulse?: boolean;
|
|
45
|
-
onMount?: () => void;
|
|
44
|
+
supportsViewMode?: boolean;
|
|
46
45
|
onClick?: () => void;
|
|
47
46
|
};
|
|
48
47
|
export interface RenderOptionsPropsT<T extends Object> {
|
|
@@ -13,7 +13,7 @@ export type { FeatureFlags, FeatureFlagKey, GetEditorFeatureFlags } from './feat
|
|
|
13
13
|
export type { Browsers, Range, DisableSpellcheckByBrowser } from './supported-browsers';
|
|
14
14
|
export type { EditorContainerWidth, GetEditorContainerWidth } from './editor-container-width';
|
|
15
15
|
export type { EmptyStateHandler, EmptyStateHandlerParams } from './empty-state-handler';
|
|
16
|
-
export type { RenderOptionsPropsT, DropdownOptionT, DropdownOptions, ExtensionDropdownOptions, SelectOption, ButtonAppearance, Icon, RenderOptionsProps, AlignType, ConfirmDialogChildInfo, ConfirmDialogOptions, ConfirmationDialogProps, FloatingToolbarButton, FloatingToolbarCopyButton, FloatingToolbarInput, FloatingToolbarCustom, FloatingToolbarListPicker, FloatingToolbarColorPicker, FloatingToolbarEmojiPicker, FloatingToolbarDatePicker, FloatingToolbarSelect, FloatingToolbarSeparator, FloatingToolbarDropdown, FloatingToolbarFallbackItem, FloatingToolbarItem, FloatingToolbarConfig, FloatingToolbarHandler, FloatingToolbarButtonSpotlightConfig, typeOption, FloatingToolbarOverflowDropdownOptions, } from './floating-toolbar';
|
|
16
|
+
export type { RenderOptionsPropsT, DropdownOptionT, DropdownOptions, ExtensionDropdownOptions, SelectOption, ButtonAppearance, Icon, RenderOptionsProps, AlignType, ConfirmDialogChildInfo, ConfirmDialogOptions, ConfirmationDialogProps, FloatingToolbarButton, FloatingToolbarCopyButton, FloatingToolbarInput, FloatingToolbarCustom, FloatingToolbarListPicker, FloatingToolbarColorPicker, FloatingToolbarEmojiPicker, FloatingToolbarDatePicker, FloatingToolbarSelect, FloatingToolbarSeparator, FloatingToolbarDropdown, FloatingToolbarFallbackItem, FloatingToolbarItem, FloatingToolbarConfig, FloatingToolbarHandler, FloatingToolbarButtonSpotlightConfig, typeOption, FloatingToolbarOverflowDropdown, FloatingToolbarOverflowDropdownOptions, OverflowDropdownHeading, OverflowDropdownOption, } from './floating-toolbar';
|
|
17
17
|
export type { MarkOptions, NodeOptions } from './copy-button';
|
|
18
18
|
export type { ContextPanelHandler } from './context-panel';
|
|
19
19
|
export type { EditorAppearance } from './editor-appearance';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "102.13.
|
|
3
|
+
"version": "102.13.11",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
124
124
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
125
125
|
"@atlaskit/atlassian-context": "^0.2.0",
|
|
126
|
-
"@atlaskit/button": "^
|
|
126
|
+
"@atlaskit/button": "^22.0.0",
|
|
127
127
|
"@atlaskit/code": "^16.1.0",
|
|
128
128
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
129
129
|
"@atlaskit/css": "^0.10.0",
|
|
@@ -148,12 +148,12 @@
|
|
|
148
148
|
"@atlaskit/media-ui": "^28.1.0",
|
|
149
149
|
"@atlaskit/media-viewer": "^52.0.0",
|
|
150
150
|
"@atlaskit/mention": "^24.1.0",
|
|
151
|
-
"@atlaskit/menu": "^3.
|
|
151
|
+
"@atlaskit/menu": "^3.2.0",
|
|
152
152
|
"@atlaskit/onboarding": "^13.0.0",
|
|
153
153
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
154
154
|
"@atlaskit/popper": "^7.0.0",
|
|
155
155
|
"@atlaskit/primitives": "^14.2.0",
|
|
156
|
-
"@atlaskit/profilecard": "^23.
|
|
156
|
+
"@atlaskit/profilecard": "^23.7.0",
|
|
157
157
|
"@atlaskit/section-message": "^8.2.0",
|
|
158
158
|
"@atlaskit/smart-card": "^36.2.0",
|
|
159
159
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
@@ -327,6 +327,9 @@
|
|
|
327
327
|
},
|
|
328
328
|
"atlas_editor_typography_refreshed": {
|
|
329
329
|
"type": "boolean"
|
|
330
|
+
},
|
|
331
|
+
"platform_editor_controls_patch_1": {
|
|
332
|
+
"type": "boolean"
|
|
330
333
|
}
|
|
331
334
|
}
|
|
332
335
|
}
|