@atlaskit/editor-common 76.27.5 → 76.27.7
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 +13 -0
- package/dist/cjs/keymaps/index.js +19 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/keymaps/index.js +16 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/keymaps/index.js +16 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/keymaps/index.d.ts +6 -0
- package/dist/types-ts4.5/keymaps/index.d.ts +6 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 76.27.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#62165](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62165) [`b44ac0968d79`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b44ac0968d79) - [ED-21562] Bump @atlaskit/adf-schema to 35.2.0 for border mark update
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 76.27.6
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#58893](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/58893) [`ed82b25d516b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ed82b25d516b) - [ux] [ECA11Y-110] Selecting table columns and rows via shortcuts
|
|
15
|
+
|
|
3
16
|
## 76.27.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -79,6 +79,7 @@ Object.defineProperty(exports, "UP", {
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
exports.backspace = exports.altPaste = exports.alignLeft = exports.addRowBefore = exports.addRowAfter = exports.addLink = exports.addInlineComment = exports.addColumnBefore = exports.addColumnAfter = exports.addAltText = void 0;
|
|
82
|
+
exports.bindKeymapArrayWithCommand = bindKeymapArrayWithCommand;
|
|
82
83
|
exports.bindKeymapWithCommand = bindKeymapWithCommand;
|
|
83
84
|
exports.bindKeymapWithEditorCommand = bindKeymapWithEditorCommand;
|
|
84
85
|
exports.find = exports.escape = exports.enter = exports.deleteKey = exports.decreaseMediaSize = exports.cut = exports.ctrlBackSpace = exports.copy = exports.clearFormatting = void 0;
|
|
@@ -96,9 +97,10 @@ Object.defineProperty(exports, "keymap", {
|
|
|
96
97
|
return _keymap.keymap;
|
|
97
98
|
}
|
|
98
99
|
});
|
|
100
|
+
exports.makeKeyMapArrayWithCommon = makeKeyMapArrayWithCommon;
|
|
99
101
|
exports.makeKeyMapWithCommon = makeKeyMapWithCommon;
|
|
100
102
|
exports.makeKeymap = makeKeymap;
|
|
101
|
-
exports.toggleUnderline = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = 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.splitListItem = exports.splitCodeBlock = exports.space = exports.shiftTab = exports.shiftEnter = exports.shiftBackspace = exports.shiftArrowUp = exports.setNormalText = exports.redo = exports.previousCell = exports.pastePlainText = exports.paste = exports.outdentList = exports.outdent = exports.openHelp = exports.nextCell = exports.navToFloatingToolbar = exports.navToEditorToolbar = exports.moveUp = exports.moveRight = exports.moveLeft = exports.moveDown = void 0;
|
|
103
|
+
exports.toggleUnderline = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = 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.splitListItem = exports.splitCodeBlock = exports.space = exports.shiftTab = exports.shiftEnter = exports.shiftBackspace = exports.shiftArrowUp = exports.setNormalText = exports.selectRow = exports.selectColumn = exports.redo = exports.previousCell = exports.pastePlainText = exports.paste = exports.outdentList = exports.outdent = exports.openHelp = exports.nextCell = exports.navToFloatingToolbar = exports.navToEditorToolbar = exports.moveUp = exports.moveRight = exports.moveLeft = exports.moveDown = void 0;
|
|
102
104
|
exports.tooltip = tooltip;
|
|
103
105
|
exports.undo = void 0;
|
|
104
106
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
@@ -182,6 +184,8 @@ var altPaste = exports.altPaste = makeKeyMapWithCommon('Paste', 'Mod-Shift-v');
|
|
|
182
184
|
var find = exports.find = makeKeyMapWithCommon('Find', 'Mod-f');
|
|
183
185
|
var alignLeft = exports.alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
|
|
184
186
|
var toggleTaskItemCheckbox = exports.toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
|
|
187
|
+
var selectRow = exports.selectRow = makeKeyMapArrayWithCommon('Select row', ['Mod-Alt-Shift-ArrowLeft', 'Mod-Alt-Shift-ArrowRight']);
|
|
188
|
+
var selectColumn = exports.selectColumn = makeKeyMapArrayWithCommon('Select column', ['Mod-Alt-Shift-ArrowDown', 'Mod-Alt-Shift-ArrowUp']);
|
|
185
189
|
var increaseMediaSize = exports.increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-]');
|
|
186
190
|
var decreaseMediaSize = exports.decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
|
|
187
191
|
var arrowKeysMap = {
|
|
@@ -296,6 +300,13 @@ function makeKeyMapWithCommon(description, common) {
|
|
|
296
300
|
var mac = common.replace(/Mod/i, 'Cmd');
|
|
297
301
|
return makeKeymap(description, windows, mac, common);
|
|
298
302
|
}
|
|
303
|
+
function makeKeyMapArrayWithCommon(description, shortcuts) {
|
|
304
|
+
var keymapArray = [];
|
|
305
|
+
shortcuts.forEach(function (shortcut) {
|
|
306
|
+
keymapArray.push(makeKeyMapWithCommon(description, shortcut));
|
|
307
|
+
});
|
|
308
|
+
return keymapArray;
|
|
309
|
+
}
|
|
299
310
|
function combineWithOldCommand(cmd, oldCmd) {
|
|
300
311
|
return function (state, dispatch, editorView) {
|
|
301
312
|
return oldCmd(state, dispatch) || cmd(state, dispatch, editorView);
|
|
@@ -305,6 +316,13 @@ function bindKeymapWithCommand(shortcut, cmd, keymap) {
|
|
|
305
316
|
var oldCmd = keymap[shortcut];
|
|
306
317
|
keymap[shortcut] = oldCmd ? combineWithOldCommand(cmd, oldCmd) : cmd;
|
|
307
318
|
}
|
|
319
|
+
|
|
320
|
+
// If there is a need to use the same command with several shortcuts
|
|
321
|
+
function bindKeymapArrayWithCommand(shortcutsArray, cmd, keymap) {
|
|
322
|
+
shortcutsArray.forEach(function (shortcut) {
|
|
323
|
+
return bindKeymapWithCommand(shortcut.common, cmd, keymap);
|
|
324
|
+
});
|
|
325
|
+
}
|
|
308
326
|
function bindKeymapWithEditorCommand(shortcut, cmd, keymap) {
|
|
309
327
|
bindKeymapWithCommand(shortcut, (0, _editorCommands.editorCommandToPMCommand)(cmd), keymap);
|
|
310
328
|
}
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "76.27.
|
|
19
|
+
var packageVersion = "76.27.7";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "76.27.
|
|
27
|
+
var packageVersion = "76.27.7";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -72,6 +72,8 @@ export const altPaste = makeKeyMapWithCommon('Paste', 'Mod-Shift-v');
|
|
|
72
72
|
export const find = makeKeyMapWithCommon('Find', 'Mod-f');
|
|
73
73
|
export const alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
|
|
74
74
|
export const toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
|
|
75
|
+
export const selectRow = makeKeyMapArrayWithCommon('Select row', ['Mod-Alt-Shift-ArrowLeft', 'Mod-Alt-Shift-ArrowRight']);
|
|
76
|
+
export const selectColumn = makeKeyMapArrayWithCommon('Select column', ['Mod-Alt-Shift-ArrowDown', 'Mod-Alt-Shift-ArrowUp']);
|
|
75
77
|
export const increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-]');
|
|
76
78
|
export const decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
|
|
77
79
|
const arrowKeysMap = {
|
|
@@ -193,6 +195,13 @@ export function makeKeyMapWithCommon(description, common) {
|
|
|
193
195
|
const mac = common.replace(/Mod/i, 'Cmd');
|
|
194
196
|
return makeKeymap(description, windows, mac, common);
|
|
195
197
|
}
|
|
198
|
+
export function makeKeyMapArrayWithCommon(description, shortcuts) {
|
|
199
|
+
const keymapArray = [];
|
|
200
|
+
shortcuts.forEach(shortcut => {
|
|
201
|
+
keymapArray.push(makeKeyMapWithCommon(description, shortcut));
|
|
202
|
+
});
|
|
203
|
+
return keymapArray;
|
|
204
|
+
}
|
|
196
205
|
function combineWithOldCommand(cmd, oldCmd) {
|
|
197
206
|
return (state, dispatch, editorView) => {
|
|
198
207
|
return oldCmd(state, dispatch) || cmd(state, dispatch, editorView);
|
|
@@ -202,6 +211,13 @@ export function bindKeymapWithCommand(shortcut, cmd, keymap) {
|
|
|
202
211
|
const oldCmd = keymap[shortcut];
|
|
203
212
|
keymap[shortcut] = oldCmd ? combineWithOldCommand(cmd, oldCmd) : cmd;
|
|
204
213
|
}
|
|
214
|
+
|
|
215
|
+
// If there is a need to use the same command with several shortcuts
|
|
216
|
+
export function bindKeymapArrayWithCommand(shortcutsArray, cmd, keymap) {
|
|
217
|
+
shortcutsArray.forEach(shortcut => {
|
|
218
|
+
return bindKeymapWithCommand(shortcut.common, cmd, keymap);
|
|
219
|
+
});
|
|
220
|
+
}
|
|
205
221
|
export function bindKeymapWithEditorCommand(shortcut, cmd, keymap) {
|
|
206
222
|
bindKeymapWithCommand(shortcut, editorCommandToPMCommand(cmd), keymap);
|
|
207
223
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "76.27.
|
|
3
|
+
const packageVersion = "76.27.7";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
9
9
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
10
10
|
import Layer from '../Layer';
|
|
11
11
|
const packageName = "@atlaskit/editor-common";
|
|
12
|
-
const packageVersion = "76.27.
|
|
12
|
+
const packageVersion = "76.27.7";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = '0, 8';
|
|
15
15
|
class DropList extends Component {
|
|
@@ -75,6 +75,8 @@ export var altPaste = makeKeyMapWithCommon('Paste', 'Mod-Shift-v');
|
|
|
75
75
|
export var find = makeKeyMapWithCommon('Find', 'Mod-f');
|
|
76
76
|
export var alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
|
|
77
77
|
export var toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
|
|
78
|
+
export var selectRow = makeKeyMapArrayWithCommon('Select row', ['Mod-Alt-Shift-ArrowLeft', 'Mod-Alt-Shift-ArrowRight']);
|
|
79
|
+
export var selectColumn = makeKeyMapArrayWithCommon('Select column', ['Mod-Alt-Shift-ArrowDown', 'Mod-Alt-Shift-ArrowUp']);
|
|
78
80
|
export var increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-]');
|
|
79
81
|
export var decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
|
|
80
82
|
var arrowKeysMap = {
|
|
@@ -189,6 +191,13 @@ export function makeKeyMapWithCommon(description, common) {
|
|
|
189
191
|
var mac = common.replace(/Mod/i, 'Cmd');
|
|
190
192
|
return makeKeymap(description, windows, mac, common);
|
|
191
193
|
}
|
|
194
|
+
export function makeKeyMapArrayWithCommon(description, shortcuts) {
|
|
195
|
+
var keymapArray = [];
|
|
196
|
+
shortcuts.forEach(function (shortcut) {
|
|
197
|
+
keymapArray.push(makeKeyMapWithCommon(description, shortcut));
|
|
198
|
+
});
|
|
199
|
+
return keymapArray;
|
|
200
|
+
}
|
|
192
201
|
function combineWithOldCommand(cmd, oldCmd) {
|
|
193
202
|
return function (state, dispatch, editorView) {
|
|
194
203
|
return oldCmd(state, dispatch) || cmd(state, dispatch, editorView);
|
|
@@ -198,6 +207,13 @@ export function bindKeymapWithCommand(shortcut, cmd, keymap) {
|
|
|
198
207
|
var oldCmd = keymap[shortcut];
|
|
199
208
|
keymap[shortcut] = oldCmd ? combineWithOldCommand(cmd, oldCmd) : cmd;
|
|
200
209
|
}
|
|
210
|
+
|
|
211
|
+
// If there is a need to use the same command with several shortcuts
|
|
212
|
+
export function bindKeymapArrayWithCommand(shortcutsArray, cmd, keymap) {
|
|
213
|
+
shortcutsArray.forEach(function (shortcut) {
|
|
214
|
+
return bindKeymapWithCommand(shortcut.common, cmd, keymap);
|
|
215
|
+
});
|
|
216
|
+
}
|
|
201
217
|
export function bindKeymapWithEditorCommand(shortcut, cmd, keymap) {
|
|
202
218
|
bindKeymapWithCommand(shortcut, editorCommandToPMCommand(cmd), keymap);
|
|
203
219
|
}
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "76.27.
|
|
9
|
+
var packageVersion = "76.27.7";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -19,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
19
19
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
20
20
|
import Layer from '../Layer';
|
|
21
21
|
var packageName = "@atlaskit/editor-common";
|
|
22
|
-
var packageVersion = "76.27.
|
|
22
|
+
var packageVersion = "76.27.7";
|
|
23
23
|
var halfFocusRing = 1;
|
|
24
24
|
var dropOffset = '0, 8';
|
|
25
25
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -70,6 +70,8 @@ export declare const altPaste: Keymap;
|
|
|
70
70
|
export declare const find: Keymap;
|
|
71
71
|
export declare const alignLeft: Keymap;
|
|
72
72
|
export declare const toggleTaskItemCheckbox: Keymap;
|
|
73
|
+
export declare const selectRow: Keymap[];
|
|
74
|
+
export declare const selectColumn: Keymap[];
|
|
73
75
|
export declare const increaseMediaSize: Keymap;
|
|
74
76
|
export declare const decreaseMediaSize: Keymap;
|
|
75
77
|
export declare function tooltip(keymap?: Keymap, description?: string): string | undefined;
|
|
@@ -84,6 +86,7 @@ export declare function findShortcutByKeymap(keymap: Keymap): string | undefined
|
|
|
84
86
|
export declare function getAriaKeyshortcuts(keymap: Keymap | string | undefined): string | undefined;
|
|
85
87
|
export declare function makeKeymap(description: string, windows: string, mac: string, common?: string): Keymap;
|
|
86
88
|
export declare function makeKeyMapWithCommon(description: string, common: string): Keymap;
|
|
89
|
+
export declare function makeKeyMapArrayWithCommon(description: string, shortcuts: string[]): Keymap[];
|
|
87
90
|
export interface Keymap {
|
|
88
91
|
description: string;
|
|
89
92
|
windows: string;
|
|
@@ -93,6 +96,9 @@ export interface Keymap {
|
|
|
93
96
|
export declare function bindKeymapWithCommand(shortcut: string, cmd: Command, keymap: {
|
|
94
97
|
[key: string]: Command;
|
|
95
98
|
}): void;
|
|
99
|
+
export declare function bindKeymapArrayWithCommand(shortcutsArray: Keymap[], cmd: Command, keymap: {
|
|
100
|
+
[key: string]: Command;
|
|
101
|
+
}): void;
|
|
96
102
|
export declare function bindKeymapWithEditorCommand(shortcut: string, cmd: EditorCommand, keymap: {
|
|
97
103
|
[key: string]: Command;
|
|
98
104
|
}): void;
|
|
@@ -70,6 +70,8 @@ export declare const altPaste: Keymap;
|
|
|
70
70
|
export declare const find: Keymap;
|
|
71
71
|
export declare const alignLeft: Keymap;
|
|
72
72
|
export declare const toggleTaskItemCheckbox: Keymap;
|
|
73
|
+
export declare const selectRow: Keymap[];
|
|
74
|
+
export declare const selectColumn: Keymap[];
|
|
73
75
|
export declare const increaseMediaSize: Keymap;
|
|
74
76
|
export declare const decreaseMediaSize: Keymap;
|
|
75
77
|
export declare function tooltip(keymap?: Keymap, description?: string): string | undefined;
|
|
@@ -84,6 +86,7 @@ export declare function findShortcutByKeymap(keymap: Keymap): string | undefined
|
|
|
84
86
|
export declare function getAriaKeyshortcuts(keymap: Keymap | string | undefined): string | undefined;
|
|
85
87
|
export declare function makeKeymap(description: string, windows: string, mac: string, common?: string): Keymap;
|
|
86
88
|
export declare function makeKeyMapWithCommon(description: string, common: string): Keymap;
|
|
89
|
+
export declare function makeKeyMapArrayWithCommon(description: string, shortcuts: string[]): Keymap[];
|
|
87
90
|
export interface Keymap {
|
|
88
91
|
description: string;
|
|
89
92
|
windows: string;
|
|
@@ -93,6 +96,9 @@ export interface Keymap {
|
|
|
93
96
|
export declare function bindKeymapWithCommand(shortcut: string, cmd: Command, keymap: {
|
|
94
97
|
[key: string]: Command;
|
|
95
98
|
}): void;
|
|
99
|
+
export declare function bindKeymapArrayWithCommand(shortcutsArray: Keymap[], cmd: Command, keymap: {
|
|
100
|
+
[key: string]: Command;
|
|
101
|
+
}): void;
|
|
96
102
|
export declare function bindKeymapWithEditorCommand(shortcut: string, cmd: EditorCommand, keymap: {
|
|
97
103
|
[key: string]: Command;
|
|
98
104
|
}): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "76.27.
|
|
3
|
+
"version": "76.27.7",
|
|
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/"
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
91
|
-
"@atlaskit/adf-schema": "^35.
|
|
91
|
+
"@atlaskit/adf-schema": "^35.2.0",
|
|
92
92
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
93
93
|
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
94
94
|
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"@atlaskit/button": "^17.1.0",
|
|
98
98
|
"@atlaskit/code": "^15.1.0",
|
|
99
99
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
100
|
-
"@atlaskit/custom-steps": "^0.0.
|
|
100
|
+
"@atlaskit/custom-steps": "^0.0.10",
|
|
101
101
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
102
102
|
"@atlaskit/editor-palette": "1.5.2",
|
|
103
103
|
"@atlaskit/editor-prosemirror": "1.1.0",
|