@atlaskit/editor-plugin-help-dialog 0.3.1 → 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 +12 -0
- package/dist/cjs/ui/index.js +17 -49
- package/dist/es2019/ui/index.js +18 -46
- package/dist/esm/ui/index.js +18 -50
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
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
|
+
|
|
9
|
+
## 0.3.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#43436](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43436) [`6bf14e25965`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6bf14e25965) - Revert "Resize media for the keyboard users"
|
|
14
|
+
|
|
3
15
|
## 0.3.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/ui/index.js
CHANGED
|
@@ -55,31 +55,21 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
55
55
|
defaultMessage: 'Toggle action item',
|
|
56
56
|
description: 'For Check/Uncheck Action item use shortcut'
|
|
57
57
|
},
|
|
58
|
-
increaseMediaSize: {
|
|
59
|
-
id: 'fabric.editor.increaseMediaSize',
|
|
60
|
-
defaultMessage: 'Increase media size',
|
|
61
|
-
description: 'For increase media size use shortcut'
|
|
62
|
-
},
|
|
63
|
-
decreaseMediaSize: {
|
|
64
|
-
id: 'fabric.editor.decreaseMediaSize',
|
|
65
|
-
defaultMessage: 'Decrease media size',
|
|
66
|
-
description: 'For decrease media size use shortcut'
|
|
67
|
-
},
|
|
68
|
-
quickIncreaseMediaSize: {
|
|
69
|
-
id: 'fabric.editor.quickIncreaseMediaSize',
|
|
70
|
-
defaultMessage: 'Increase media by 10px',
|
|
71
|
-
description: 'For increase media size by 10 pixels use shortcut'
|
|
72
|
-
},
|
|
73
|
-
quickDecreaseMediaSize: {
|
|
74
|
-
id: 'fabric.editor.quickDecreaseMediaSize',
|
|
75
|
-
defaultMessage: 'Decrease media by 10px',
|
|
76
|
-
description: 'For decrease media size by 10 pixels use shortcut'
|
|
77
|
-
},
|
|
78
58
|
altText: {
|
|
79
59
|
id: 'fabric.editor.altText',
|
|
80
60
|
defaultMessage: 'Alt text',
|
|
81
61
|
description: 'Alternative text for image.'
|
|
82
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
|
+
},
|
|
83
73
|
closeHelpDialog: {
|
|
84
74
|
id: 'fabric.editor.closeHelpDialog',
|
|
85
75
|
defaultMessage: 'Close help dialog',
|
|
@@ -412,28 +402,16 @@ var otherFormatting = function otherFormatting(_ref3) {
|
|
|
412
402
|
return _keymaps.toggleTaskItemCheckbox;
|
|
413
403
|
}
|
|
414
404
|
}, {
|
|
415
|
-
name: formatMessage(messages.
|
|
416
|
-
type: '
|
|
417
|
-
keymap: function keymap() {
|
|
418
|
-
return _keymaps.increaseMediaSize;
|
|
419
|
-
}
|
|
420
|
-
}, {
|
|
421
|
-
name: formatMessage(messages.decreaseMediaSize),
|
|
422
|
-
type: 'media',
|
|
405
|
+
name: formatMessage(messages.selectTableRow),
|
|
406
|
+
type: 'table',
|
|
423
407
|
keymap: function keymap() {
|
|
424
|
-
return _keymaps.
|
|
408
|
+
return _keymaps.selectRow;
|
|
425
409
|
}
|
|
426
410
|
}, {
|
|
427
|
-
name: formatMessage(messages.
|
|
428
|
-
type: '
|
|
411
|
+
name: formatMessage(messages.selectTableColumn),
|
|
412
|
+
type: 'table',
|
|
429
413
|
keymap: function keymap() {
|
|
430
|
-
return _keymaps.
|
|
431
|
-
}
|
|
432
|
-
}, {
|
|
433
|
-
name: formatMessage(messages.quickDecreaseMediaSize),
|
|
434
|
-
type: 'media',
|
|
435
|
-
keymap: function keymap() {
|
|
436
|
-
return _keymaps.quickDecreaseMediaSize;
|
|
414
|
+
return _keymaps.selectColumn;
|
|
437
415
|
}
|
|
438
416
|
}];
|
|
439
417
|
};
|
|
@@ -488,7 +466,7 @@ var getComponentFromKeymap = exports.getComponentFromKeymap = function getCompon
|
|
|
488
466
|
css: _styles.codeMd,
|
|
489
467
|
key: "".concat(keyParts, "-").concat(index)
|
|
490
468
|
}, part);
|
|
491
|
-
} else if (['f9', 'f10'].indexOf(part.toLowerCase()) >= 0) {
|
|
469
|
+
} else if (['f9', 'f10', 'space'].indexOf(part.toLowerCase()) >= 0) {
|
|
492
470
|
return (0, _react2.jsx)("span", {
|
|
493
471
|
css: _styles.codeLg,
|
|
494
472
|
key: "".concat(keyParts, "-").concat(index)
|
|
@@ -498,16 +476,6 @@ var getComponentFromKeymap = exports.getComponentFromKeymap = function getCompon
|
|
|
498
476
|
css: _styles.codeSm,
|
|
499
477
|
key: "".concat(keyParts, "-").concat(index)
|
|
500
478
|
}, '⏎');
|
|
501
|
-
} else if (part === 'ArrowRight') {
|
|
502
|
-
return (0, _react2.jsx)("span", {
|
|
503
|
-
css: _styles.codeSm,
|
|
504
|
-
key: "".concat(keyParts, "-").concat(index)
|
|
505
|
-
}, "\u2192");
|
|
506
|
-
} else if (part === 'ArrowLeft') {
|
|
507
|
-
return (0, _react2.jsx)("span", {
|
|
508
|
-
css: _styles.codeSm,
|
|
509
|
-
key: "".concat(keyParts, "-").concat(index)
|
|
510
|
-
}, "\u2190");
|
|
511
479
|
}
|
|
512
480
|
return (0, _react2.jsx)("span", {
|
|
513
481
|
css: _styles.codeSm,
|
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,
|
|
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';
|
|
@@ -43,31 +43,21 @@ const messages = defineMessages({
|
|
|
43
43
|
defaultMessage: 'Toggle action item',
|
|
44
44
|
description: 'For Check/Uncheck Action item use shortcut'
|
|
45
45
|
},
|
|
46
|
-
increaseMediaSize: {
|
|
47
|
-
id: 'fabric.editor.increaseMediaSize',
|
|
48
|
-
defaultMessage: 'Increase media size',
|
|
49
|
-
description: 'For increase media size use shortcut'
|
|
50
|
-
},
|
|
51
|
-
decreaseMediaSize: {
|
|
52
|
-
id: 'fabric.editor.decreaseMediaSize',
|
|
53
|
-
defaultMessage: 'Decrease media size',
|
|
54
|
-
description: 'For decrease media size use shortcut'
|
|
55
|
-
},
|
|
56
|
-
quickIncreaseMediaSize: {
|
|
57
|
-
id: 'fabric.editor.quickIncreaseMediaSize',
|
|
58
|
-
defaultMessage: 'Increase media by 10px',
|
|
59
|
-
description: 'For increase media size by 10 pixels use shortcut'
|
|
60
|
-
},
|
|
61
|
-
quickDecreaseMediaSize: {
|
|
62
|
-
id: 'fabric.editor.quickDecreaseMediaSize',
|
|
63
|
-
defaultMessage: 'Decrease media by 10px',
|
|
64
|
-
description: 'For decrease media size by 10 pixels use shortcut'
|
|
65
|
-
},
|
|
66
46
|
altText: {
|
|
67
47
|
id: 'fabric.editor.altText',
|
|
68
48
|
defaultMessage: 'Alt text',
|
|
69
49
|
description: 'Alternative text for image.'
|
|
70
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
|
+
},
|
|
71
61
|
closeHelpDialog: {
|
|
72
62
|
id: 'fabric.editor.closeHelpDialog',
|
|
73
63
|
defaultMessage: 'Close help dialog',
|
|
@@ -302,21 +292,13 @@ const otherFormatting = ({
|
|
|
302
292
|
type: 'checkbox',
|
|
303
293
|
keymap: () => toggleTaskItemCheckbox
|
|
304
294
|
}, {
|
|
305
|
-
name: formatMessage(messages.
|
|
306
|
-
type: '
|
|
307
|
-
keymap: () =>
|
|
308
|
-
}, {
|
|
309
|
-
name: formatMessage(messages.decreaseMediaSize),
|
|
310
|
-
type: 'media',
|
|
311
|
-
keymap: () => decreaseMediaSize
|
|
295
|
+
name: formatMessage(messages.selectTableRow),
|
|
296
|
+
type: 'table',
|
|
297
|
+
keymap: () => selectRow
|
|
312
298
|
}, {
|
|
313
|
-
name: formatMessage(messages.
|
|
314
|
-
type: '
|
|
315
|
-
keymap: () =>
|
|
316
|
-
}, {
|
|
317
|
-
name: formatMessage(messages.quickDecreaseMediaSize),
|
|
318
|
-
type: 'media',
|
|
319
|
-
keymap: () => quickDecreaseMediaSize
|
|
299
|
+
name: formatMessage(messages.selectTableColumn),
|
|
300
|
+
type: 'table',
|
|
301
|
+
keymap: () => selectColumn
|
|
320
302
|
}];
|
|
321
303
|
const imageAutoFormat = {
|
|
322
304
|
name: 'Image',
|
|
@@ -362,7 +344,7 @@ export const getComponentFromKeymap = keymap => {
|
|
|
362
344
|
css: codeMd,
|
|
363
345
|
key: `${keyParts}-${index}`
|
|
364
346
|
}, part);
|
|
365
|
-
} else if (['f9', 'f10'].indexOf(part.toLowerCase()) >= 0) {
|
|
347
|
+
} else if (['f9', 'f10', 'space'].indexOf(part.toLowerCase()) >= 0) {
|
|
366
348
|
return jsx("span", {
|
|
367
349
|
css: codeLg,
|
|
368
350
|
key: `${keyParts}-${index}`
|
|
@@ -372,16 +354,6 @@ export const getComponentFromKeymap = keymap => {
|
|
|
372
354
|
css: codeSm,
|
|
373
355
|
key: `${keyParts}-${index}`
|
|
374
356
|
}, '⏎');
|
|
375
|
-
} else if (part === 'ArrowRight') {
|
|
376
|
-
return jsx("span", {
|
|
377
|
-
css: codeSm,
|
|
378
|
-
key: `${keyParts}-${index}`
|
|
379
|
-
}, "\u2192");
|
|
380
|
-
} else if (part === 'ArrowLeft') {
|
|
381
|
-
return jsx("span", {
|
|
382
|
-
css: codeSm,
|
|
383
|
-
key: `${keyParts}-${index}`
|
|
384
|
-
}, "\u2190");
|
|
385
357
|
}
|
|
386
358
|
return jsx("span", {
|
|
387
359
|
css: codeSm,
|
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,
|
|
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';
|
|
@@ -44,31 +44,21 @@ var messages = defineMessages({
|
|
|
44
44
|
defaultMessage: 'Toggle action item',
|
|
45
45
|
description: 'For Check/Uncheck Action item use shortcut'
|
|
46
46
|
},
|
|
47
|
-
increaseMediaSize: {
|
|
48
|
-
id: 'fabric.editor.increaseMediaSize',
|
|
49
|
-
defaultMessage: 'Increase media size',
|
|
50
|
-
description: 'For increase media size use shortcut'
|
|
51
|
-
},
|
|
52
|
-
decreaseMediaSize: {
|
|
53
|
-
id: 'fabric.editor.decreaseMediaSize',
|
|
54
|
-
defaultMessage: 'Decrease media size',
|
|
55
|
-
description: 'For decrease media size use shortcut'
|
|
56
|
-
},
|
|
57
|
-
quickIncreaseMediaSize: {
|
|
58
|
-
id: 'fabric.editor.quickIncreaseMediaSize',
|
|
59
|
-
defaultMessage: 'Increase media by 10px',
|
|
60
|
-
description: 'For increase media size by 10 pixels use shortcut'
|
|
61
|
-
},
|
|
62
|
-
quickDecreaseMediaSize: {
|
|
63
|
-
id: 'fabric.editor.quickDecreaseMediaSize',
|
|
64
|
-
defaultMessage: 'Decrease media by 10px',
|
|
65
|
-
description: 'For decrease media size by 10 pixels use shortcut'
|
|
66
|
-
},
|
|
67
47
|
altText: {
|
|
68
48
|
id: 'fabric.editor.altText',
|
|
69
49
|
defaultMessage: 'Alt text',
|
|
70
50
|
description: 'Alternative text for image.'
|
|
71
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
|
+
},
|
|
72
62
|
closeHelpDialog: {
|
|
73
63
|
id: 'fabric.editor.closeHelpDialog',
|
|
74
64
|
defaultMessage: 'Close help dialog',
|
|
@@ -401,28 +391,16 @@ var otherFormatting = function otherFormatting(_ref3) {
|
|
|
401
391
|
return toggleTaskItemCheckbox;
|
|
402
392
|
}
|
|
403
393
|
}, {
|
|
404
|
-
name: formatMessage(messages.
|
|
405
|
-
type: '
|
|
406
|
-
keymap: function keymap() {
|
|
407
|
-
return increaseMediaSize;
|
|
408
|
-
}
|
|
409
|
-
}, {
|
|
410
|
-
name: formatMessage(messages.decreaseMediaSize),
|
|
411
|
-
type: 'media',
|
|
394
|
+
name: formatMessage(messages.selectTableRow),
|
|
395
|
+
type: 'table',
|
|
412
396
|
keymap: function keymap() {
|
|
413
|
-
return
|
|
397
|
+
return selectRow;
|
|
414
398
|
}
|
|
415
399
|
}, {
|
|
416
|
-
name: formatMessage(messages.
|
|
417
|
-
type: '
|
|
400
|
+
name: formatMessage(messages.selectTableColumn),
|
|
401
|
+
type: 'table',
|
|
418
402
|
keymap: function keymap() {
|
|
419
|
-
return
|
|
420
|
-
}
|
|
421
|
-
}, {
|
|
422
|
-
name: formatMessage(messages.quickDecreaseMediaSize),
|
|
423
|
-
type: 'media',
|
|
424
|
-
keymap: function keymap() {
|
|
425
|
-
return quickDecreaseMediaSize;
|
|
403
|
+
return selectColumn;
|
|
426
404
|
}
|
|
427
405
|
}];
|
|
428
406
|
};
|
|
@@ -477,7 +455,7 @@ export var getComponentFromKeymap = function getComponentFromKeymap(keymap) {
|
|
|
477
455
|
css: codeMd,
|
|
478
456
|
key: "".concat(keyParts, "-").concat(index)
|
|
479
457
|
}, part);
|
|
480
|
-
} else if (['f9', 'f10'].indexOf(part.toLowerCase()) >= 0) {
|
|
458
|
+
} else if (['f9', 'f10', 'space'].indexOf(part.toLowerCase()) >= 0) {
|
|
481
459
|
return jsx("span", {
|
|
482
460
|
css: codeLg,
|
|
483
461
|
key: "".concat(keyParts, "-").concat(index)
|
|
@@ -487,16 +465,6 @@ export var getComponentFromKeymap = function getComponentFromKeymap(keymap) {
|
|
|
487
465
|
css: codeSm,
|
|
488
466
|
key: "".concat(keyParts, "-").concat(index)
|
|
489
467
|
}, '⏎');
|
|
490
|
-
} else if (part === 'ArrowRight') {
|
|
491
|
-
return jsx("span", {
|
|
492
|
-
css: codeSm,
|
|
493
|
-
key: "".concat(keyParts, "-").concat(index)
|
|
494
|
-
}, "\u2192");
|
|
495
|
-
} else if (part === 'ArrowLeft') {
|
|
496
|
-
return jsx("span", {
|
|
497
|
-
css: codeSm,
|
|
498
|
-
key: "".concat(keyParts, "-").concat(index)
|
|
499
|
-
}, "\u2190");
|
|
500
468
|
}
|
|
501
469
|
return jsx("span", {
|
|
502
470
|
css: codeSm,
|