@atlaskit/editor-plugin-help-dialog 0.3.2 → 0.3.3
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 +6 -0
- package/dist/cjs/ui/index.js +23 -1
- package/dist/es2019/ui/index.js +20 -2
- package/dist/esm/ui/index.js +24 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-help-dialog
|
|
2
2
|
|
|
3
|
+
## 0.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#42221](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42221) [`1f49a73a590`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1f49a73a590) - [ux] [ECA11Y-110] Selecting table columns, rows, whole table via shortcuts
|
|
8
|
+
|
|
3
9
|
## 0.3.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/ui/index.js
CHANGED
|
@@ -60,6 +60,16 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
60
60
|
defaultMessage: 'Alt text',
|
|
61
61
|
description: 'Alternative text for image.'
|
|
62
62
|
},
|
|
63
|
+
selectTableRow: {
|
|
64
|
+
id: 'fabric.editor.selectTableRow',
|
|
65
|
+
defaultMessage: 'Select table row',
|
|
66
|
+
description: 'Hint for selecting a table row using a shortcut'
|
|
67
|
+
},
|
|
68
|
+
selectTableColumn: {
|
|
69
|
+
id: 'fabric.editor.selectTableColumn',
|
|
70
|
+
defaultMessage: 'Select table column',
|
|
71
|
+
description: 'Hint for selecting a table column using a shortcut'
|
|
72
|
+
},
|
|
63
73
|
closeHelpDialog: {
|
|
64
74
|
id: 'fabric.editor.closeHelpDialog',
|
|
65
75
|
defaultMessage: 'Close help dialog',
|
|
@@ -391,6 +401,18 @@ var otherFormatting = function otherFormatting(_ref3) {
|
|
|
391
401
|
keymap: function keymap() {
|
|
392
402
|
return _keymaps.toggleTaskItemCheckbox;
|
|
393
403
|
}
|
|
404
|
+
}, {
|
|
405
|
+
name: formatMessage(messages.selectTableRow),
|
|
406
|
+
type: 'table',
|
|
407
|
+
keymap: function keymap() {
|
|
408
|
+
return _keymaps.selectRow;
|
|
409
|
+
}
|
|
410
|
+
}, {
|
|
411
|
+
name: formatMessage(messages.selectTableColumn),
|
|
412
|
+
type: 'table',
|
|
413
|
+
keymap: function keymap() {
|
|
414
|
+
return _keymaps.selectColumn;
|
|
415
|
+
}
|
|
394
416
|
}];
|
|
395
417
|
};
|
|
396
418
|
var imageAutoFormat = {
|
|
@@ -444,7 +466,7 @@ var getComponentFromKeymap = exports.getComponentFromKeymap = function getCompon
|
|
|
444
466
|
css: _styles.codeMd,
|
|
445
467
|
key: "".concat(keyParts, "-").concat(index)
|
|
446
468
|
}, part);
|
|
447
|
-
} else if (['f9', 'f10'].indexOf(part.toLowerCase()) >= 0) {
|
|
469
|
+
} else if (['f9', 'f10', 'space'].indexOf(part.toLowerCase()) >= 0) {
|
|
448
470
|
return (0, _react2.jsx)("span", {
|
|
449
471
|
css: _styles.codeLg,
|
|
450
472
|
key: "".concat(keyParts, "-").concat(index)
|
package/dist/es2019/ui/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useCallback, useEffect } from 'react';
|
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
5
|
import { defineMessages, FormattedMessage, injectIntl } from 'react-intl-next';
|
|
6
6
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
7
|
-
import { addInlineComment, addLink, alignLeft, clearFormatting, insertRule, navToEditorToolbar, navToFloatingToolbar, openHelp, pastePlainText, redo, setNormalText, toggleBlockQuote, toggleBold, toggleBulletList, toggleCode, toggleHeading1, toggleHeading2, toggleHeading3, toggleHeading4, toggleHeading5, toggleHeading6, toggleItalic, toggleOrderedList, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleTaskItemCheckbox, toggleUnderline, undo } from '@atlaskit/editor-common/keymaps';
|
|
7
|
+
import { addInlineComment, addLink, alignLeft, clearFormatting, insertRule, navToEditorToolbar, navToFloatingToolbar, openHelp, pastePlainText, redo, selectColumn, selectRow, setNormalText, toggleBlockQuote, toggleBold, toggleBulletList, toggleCode, toggleHeading1, toggleHeading2, toggleHeading3, toggleHeading4, toggleHeading5, toggleHeading6, toggleItalic, toggleOrderedList, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleTaskItemCheckbox, toggleUnderline, undo } from '@atlaskit/editor-common/keymaps';
|
|
8
8
|
import { alignmentMessages, annotationMessages, blockTypeMessages, listMessages, toolbarInsertBlockMessages, toolbarMessages, undoRedoMessages } from '@atlaskit/editor-common/messages';
|
|
9
9
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
10
10
|
import { browser } from '@atlaskit/editor-common/utils';
|
|
@@ -48,6 +48,16 @@ const messages = defineMessages({
|
|
|
48
48
|
defaultMessage: 'Alt text',
|
|
49
49
|
description: 'Alternative text for image.'
|
|
50
50
|
},
|
|
51
|
+
selectTableRow: {
|
|
52
|
+
id: 'fabric.editor.selectTableRow',
|
|
53
|
+
defaultMessage: 'Select table row',
|
|
54
|
+
description: 'Hint for selecting a table row using a shortcut'
|
|
55
|
+
},
|
|
56
|
+
selectTableColumn: {
|
|
57
|
+
id: 'fabric.editor.selectTableColumn',
|
|
58
|
+
defaultMessage: 'Select table column',
|
|
59
|
+
description: 'Hint for selecting a table column using a shortcut'
|
|
60
|
+
},
|
|
51
61
|
closeHelpDialog: {
|
|
52
62
|
id: 'fabric.editor.closeHelpDialog',
|
|
53
63
|
defaultMessage: 'Close help dialog',
|
|
@@ -281,6 +291,14 @@ const otherFormatting = ({
|
|
|
281
291
|
name: formatMessage(messages.CheckUncheckActionItem),
|
|
282
292
|
type: 'checkbox',
|
|
283
293
|
keymap: () => toggleTaskItemCheckbox
|
|
294
|
+
}, {
|
|
295
|
+
name: formatMessage(messages.selectTableRow),
|
|
296
|
+
type: 'table',
|
|
297
|
+
keymap: () => selectRow
|
|
298
|
+
}, {
|
|
299
|
+
name: formatMessage(messages.selectTableColumn),
|
|
300
|
+
type: 'table',
|
|
301
|
+
keymap: () => selectColumn
|
|
284
302
|
}];
|
|
285
303
|
const imageAutoFormat = {
|
|
286
304
|
name: 'Image',
|
|
@@ -326,7 +344,7 @@ export const getComponentFromKeymap = keymap => {
|
|
|
326
344
|
css: codeMd,
|
|
327
345
|
key: `${keyParts}-${index}`
|
|
328
346
|
}, part);
|
|
329
|
-
} else if (['f9', 'f10'].indexOf(part.toLowerCase()) >= 0) {
|
|
347
|
+
} else if (['f9', 'f10', 'space'].indexOf(part.toLowerCase()) >= 0) {
|
|
330
348
|
return jsx("span", {
|
|
331
349
|
css: codeLg,
|
|
332
350
|
key: `${keyParts}-${index}`
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useCallback, useEffect } from 'react';
|
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
6
|
import { defineMessages, FormattedMessage, injectIntl } from 'react-intl-next';
|
|
7
7
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
8
|
-
import { addInlineComment, addLink, alignLeft, clearFormatting, insertRule, navToEditorToolbar, navToFloatingToolbar, openHelp, pastePlainText, redo, setNormalText, toggleBlockQuote, toggleBold, toggleBulletList, toggleCode, toggleHeading1, toggleHeading2, toggleHeading3, toggleHeading4, toggleHeading5, toggleHeading6, toggleItalic, toggleOrderedList, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleTaskItemCheckbox, toggleUnderline, undo } from '@atlaskit/editor-common/keymaps';
|
|
8
|
+
import { addInlineComment, addLink, alignLeft, clearFormatting, insertRule, navToEditorToolbar, navToFloatingToolbar, openHelp, pastePlainText, redo, selectColumn, selectRow, setNormalText, toggleBlockQuote, toggleBold, toggleBulletList, toggleCode, toggleHeading1, toggleHeading2, toggleHeading3, toggleHeading4, toggleHeading5, toggleHeading6, toggleItalic, toggleOrderedList, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleTaskItemCheckbox, toggleUnderline, undo } from '@atlaskit/editor-common/keymaps';
|
|
9
9
|
import { alignmentMessages, annotationMessages, blockTypeMessages, listMessages, toolbarInsertBlockMessages, toolbarMessages, undoRedoMessages } from '@atlaskit/editor-common/messages';
|
|
10
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
11
11
|
import { browser } from '@atlaskit/editor-common/utils';
|
|
@@ -49,6 +49,16 @@ var messages = defineMessages({
|
|
|
49
49
|
defaultMessage: 'Alt text',
|
|
50
50
|
description: 'Alternative text for image.'
|
|
51
51
|
},
|
|
52
|
+
selectTableRow: {
|
|
53
|
+
id: 'fabric.editor.selectTableRow',
|
|
54
|
+
defaultMessage: 'Select table row',
|
|
55
|
+
description: 'Hint for selecting a table row using a shortcut'
|
|
56
|
+
},
|
|
57
|
+
selectTableColumn: {
|
|
58
|
+
id: 'fabric.editor.selectTableColumn',
|
|
59
|
+
defaultMessage: 'Select table column',
|
|
60
|
+
description: 'Hint for selecting a table column using a shortcut'
|
|
61
|
+
},
|
|
52
62
|
closeHelpDialog: {
|
|
53
63
|
id: 'fabric.editor.closeHelpDialog',
|
|
54
64
|
defaultMessage: 'Close help dialog',
|
|
@@ -380,6 +390,18 @@ var otherFormatting = function otherFormatting(_ref3) {
|
|
|
380
390
|
keymap: function keymap() {
|
|
381
391
|
return toggleTaskItemCheckbox;
|
|
382
392
|
}
|
|
393
|
+
}, {
|
|
394
|
+
name: formatMessage(messages.selectTableRow),
|
|
395
|
+
type: 'table',
|
|
396
|
+
keymap: function keymap() {
|
|
397
|
+
return selectRow;
|
|
398
|
+
}
|
|
399
|
+
}, {
|
|
400
|
+
name: formatMessage(messages.selectTableColumn),
|
|
401
|
+
type: 'table',
|
|
402
|
+
keymap: function keymap() {
|
|
403
|
+
return selectColumn;
|
|
404
|
+
}
|
|
383
405
|
}];
|
|
384
406
|
};
|
|
385
407
|
var imageAutoFormat = {
|
|
@@ -433,7 +455,7 @@ export var getComponentFromKeymap = function getComponentFromKeymap(keymap) {
|
|
|
433
455
|
css: codeMd,
|
|
434
456
|
key: "".concat(keyParts, "-").concat(index)
|
|
435
457
|
}, part);
|
|
436
|
-
} else if (['f9', 'f10'].indexOf(part.toLowerCase()) >= 0) {
|
|
458
|
+
} else if (['f9', 'f10', 'space'].indexOf(part.toLowerCase()) >= 0) {
|
|
437
459
|
return jsx("span", {
|
|
438
460
|
css: codeLg,
|
|
439
461
|
key: "".concat(keyParts, "-").concat(index)
|