@atlaskit/editor-plugin-help-dialog 0.3.8 → 0.3.9
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 +15 -88
- package/dist/es2019/ui/index.js +2 -75
- package/dist/esm/ui/index.js +2 -75
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-help-dialog
|
|
2
2
|
|
|
3
|
+
## 0.3.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572) [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) - Upgrading @atlaskit/editor-prosemirror dependency
|
|
8
|
+
|
|
3
9
|
## 0.3.8
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/ui/index.js
CHANGED
|
@@ -25,79 +25,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
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; }
|
|
26
26
|
/** @jsx jsx */
|
|
27
27
|
|
|
28
|
-
var messages = (0, _reactIntlNext.defineMessages)({
|
|
29
|
-
editorHelp: {
|
|
30
|
-
id: 'fabric.editor.editorHelp',
|
|
31
|
-
defaultMessage: 'Editor help',
|
|
32
|
-
description: 'Title of editor help dialog.'
|
|
33
|
-
},
|
|
34
|
-
helpDialogTips: {
|
|
35
|
-
id: 'fabric.editor.helpDialogTips',
|
|
36
|
-
defaultMessage: 'Press {keyMap} to quickly open this dialog at any time',
|
|
37
|
-
description: 'Hint about how to open a dialog quickly using a shortcut.'
|
|
38
|
-
},
|
|
39
|
-
keyboardShortcuts: {
|
|
40
|
-
id: 'fabric.editor.keyboardShortcuts',
|
|
41
|
-
defaultMessage: 'Keyboard shortcuts',
|
|
42
|
-
description: ''
|
|
43
|
-
},
|
|
44
|
-
markdown: {
|
|
45
|
-
id: 'fabric.editor.markdown',
|
|
46
|
-
defaultMessage: 'Markdown',
|
|
47
|
-
description: 'It is a name of popular markup language.'
|
|
48
|
-
},
|
|
49
|
-
pastePlainText: {
|
|
50
|
-
id: 'fabric.editor.pastePlainText',
|
|
51
|
-
defaultMessage: 'Paste plain text',
|
|
52
|
-
description: ''
|
|
53
|
-
},
|
|
54
|
-
CheckUncheckActionItem: {
|
|
55
|
-
id: 'fabric.editor.checkUncheckActionItem',
|
|
56
|
-
defaultMessage: 'Toggle action item',
|
|
57
|
-
description: 'For Check/Uncheck Action item use shortcut'
|
|
58
|
-
},
|
|
59
|
-
altText: {
|
|
60
|
-
id: 'fabric.editor.altText',
|
|
61
|
-
defaultMessage: 'Alt text',
|
|
62
|
-
description: 'Alternative text for image.'
|
|
63
|
-
},
|
|
64
|
-
selectTableRow: {
|
|
65
|
-
id: 'fabric.editor.selectTableRow',
|
|
66
|
-
defaultMessage: 'Select table row',
|
|
67
|
-
description: 'Hint for selecting a table row using a shortcut'
|
|
68
|
-
},
|
|
69
|
-
selectTableColumn: {
|
|
70
|
-
id: 'fabric.editor.selectTableColumn',
|
|
71
|
-
defaultMessage: 'Select table column',
|
|
72
|
-
description: 'Hint for selecting a table column using a shortcut'
|
|
73
|
-
},
|
|
74
|
-
increaseSize: {
|
|
75
|
-
id: 'fabric.editor.increaseSize',
|
|
76
|
-
defaultMessage: 'Increase size',
|
|
77
|
-
description: 'The text is shown as an shortcut description in help dialog modal, when the user uses the described shortcut, he is able to increase the width of the selected element. Optimal characters less than 21.'
|
|
78
|
-
},
|
|
79
|
-
decreaseSize: {
|
|
80
|
-
id: 'fabric.editor.decreaseSize',
|
|
81
|
-
defaultMessage: 'Decrease size',
|
|
82
|
-
description: 'The text is shown as an shortcut description in help dialog modal, when the user uses the described shortcut, he is able to decrease the width of the selected element. Optimal characters less than 21.'
|
|
83
|
-
},
|
|
84
|
-
focusTableResizeHandle: {
|
|
85
|
-
id: 'fabric.editor.focusTableResizeHandle',
|
|
86
|
-
defaultMessage: 'Focus table resize handle',
|
|
87
|
-
description: 'Focus table resize handle'
|
|
88
|
-
},
|
|
89
|
-
closeHelpDialog: {
|
|
90
|
-
id: 'fabric.editor.closeHelpDialog',
|
|
91
|
-
defaultMessage: 'Close help dialog',
|
|
92
|
-
description: ''
|
|
93
|
-
},
|
|
94
|
-
// TODO: Move it inside quick insert plugin
|
|
95
|
-
quickInsert: {
|
|
96
|
-
id: 'fabric.editor.quickInsert',
|
|
97
|
-
defaultMessage: 'Quick insert',
|
|
98
|
-
description: 'Name of a feature, which let you insert items quickly.'
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
28
|
var navigationKeymaps = function navigationKeymaps(_ref) {
|
|
102
29
|
var formatMessage = _ref.formatMessage;
|
|
103
30
|
return [{
|
|
@@ -400,7 +327,7 @@ var otherFormatting = function otherFormatting(_ref3) {
|
|
|
400
327
|
return _keymaps.redo;
|
|
401
328
|
}
|
|
402
329
|
}, {
|
|
403
|
-
name: formatMessage(
|
|
330
|
+
name: formatMessage(_messages.helpDialogMessages.pastePlainText),
|
|
404
331
|
type: 'paste',
|
|
405
332
|
keymap: function keymap() {
|
|
406
333
|
return _keymaps.pastePlainText;
|
|
@@ -412,13 +339,13 @@ var otherFormatting = function otherFormatting(_ref3) {
|
|
|
412
339
|
return _keymaps.addInlineComment;
|
|
413
340
|
}
|
|
414
341
|
}, {
|
|
415
|
-
name: formatMessage(
|
|
342
|
+
name: formatMessage(_messages.helpDialogMessages.CheckUncheckActionItem),
|
|
416
343
|
type: 'checkbox',
|
|
417
344
|
keymap: function keymap() {
|
|
418
345
|
return _keymaps.toggleTaskItemCheckbox;
|
|
419
346
|
}
|
|
420
347
|
}].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y.table-selection_9uv33') ? [{
|
|
421
|
-
name: formatMessage(
|
|
348
|
+
name: formatMessage(_messages.helpDialogMessages.selectTableRow),
|
|
422
349
|
type: 'table',
|
|
423
350
|
autoFormatting: function autoFormatting() {
|
|
424
351
|
return (0, _react2.jsx)("span", {
|
|
@@ -442,7 +369,7 @@ var otherFormatting = function otherFormatting(_ref3) {
|
|
|
442
369
|
}, "\u2192")));
|
|
443
370
|
}
|
|
444
371
|
}, {
|
|
445
|
-
name: formatMessage(
|
|
372
|
+
name: formatMessage(_messages.helpDialogMessages.selectTableColumn),
|
|
446
373
|
type: 'table',
|
|
447
374
|
autoFormatting: function autoFormatting() {
|
|
448
375
|
return (0, _react2.jsx)("span", {
|
|
@@ -470,13 +397,13 @@ var otherFormatting = function otherFormatting(_ref3) {
|
|
|
470
397
|
var resizeInformationFormatting = function resizeInformationFormatting(_ref4) {
|
|
471
398
|
var formatMessage = _ref4.formatMessage;
|
|
472
399
|
return [{
|
|
473
|
-
name: formatMessage(
|
|
400
|
+
name: formatMessage(_messages.helpDialogMessages.increaseSize),
|
|
474
401
|
type: 'media',
|
|
475
402
|
keymap: function keymap() {
|
|
476
403
|
return _keymaps.increaseMediaSize;
|
|
477
404
|
}
|
|
478
405
|
}, {
|
|
479
|
-
name: formatMessage(
|
|
406
|
+
name: formatMessage(_messages.helpDialogMessages.decreaseSize),
|
|
480
407
|
type: 'media',
|
|
481
408
|
keymap: function keymap() {
|
|
482
409
|
return _keymaps.decreaseMediaSize;
|
|
@@ -486,7 +413,7 @@ var resizeInformationFormatting = function resizeInformationFormatting(_ref4) {
|
|
|
486
413
|
var focusTableResizeHandleFormatting = function focusTableResizeHandleFormatting(_ref5) {
|
|
487
414
|
var formatMessage = _ref5.formatMessage;
|
|
488
415
|
return [{
|
|
489
|
-
name: formatMessage(
|
|
416
|
+
name: formatMessage(_messages.helpDialogMessages.focusTableResizeHandle),
|
|
490
417
|
type: 'navigation',
|
|
491
418
|
keymap: function keymap() {
|
|
492
419
|
return _keymaps.focusTableResizer;
|
|
@@ -499,13 +426,13 @@ var imageAutoFormat = {
|
|
|
499
426
|
autoFormatting: function autoFormatting() {
|
|
500
427
|
return (0, _react2.jsx)("span", null, (0, _react2.jsx)("span", {
|
|
501
428
|
css: _styles.codeLg
|
|
502
|
-
}, ""));
|
|
503
430
|
}
|
|
504
431
|
};
|
|
505
432
|
var quickInsertAutoFormat = function quickInsertAutoFormat(_ref6) {
|
|
506
433
|
var formatMessage = _ref6.formatMessage;
|
|
507
434
|
return {
|
|
508
|
-
name: formatMessage(
|
|
435
|
+
name: formatMessage(_messages.helpDialogMessages.quickInsert),
|
|
509
436
|
type: 'quickInsert',
|
|
510
437
|
autoFormatting: function autoFormatting() {
|
|
511
438
|
return (0, _react2.jsx)("span", null, (0, _react2.jsx)("span", {
|
|
@@ -572,14 +499,14 @@ var ModalHeader = (0, _reactIntlNext.injectIntl)(function (_ref7) {
|
|
|
572
499
|
css: _styles.header
|
|
573
500
|
}, (0, _react2.jsx)("h1", {
|
|
574
501
|
css: _styles.dialogHeader
|
|
575
|
-
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage,
|
|
502
|
+
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _messages.helpDialogMessages.editorHelp)), (0, _react2.jsx)("div", null, (0, _react2.jsx)(_uiMenu.ToolbarButton
|
|
576
503
|
// @ts-ignore
|
|
577
504
|
, {
|
|
578
505
|
onClick: onClose,
|
|
579
|
-
title: formatMessage(
|
|
506
|
+
title: formatMessage(_messages.helpDialogMessages.closeHelpDialog),
|
|
580
507
|
spacing: "compact",
|
|
581
508
|
iconBefore: (0, _react2.jsx)(_cross.default, {
|
|
582
|
-
label: formatMessage(
|
|
509
|
+
label: formatMessage(_messages.helpDialogMessages.closeHelpDialog),
|
|
583
510
|
size: "medium"
|
|
584
511
|
})
|
|
585
512
|
})));
|
|
@@ -587,7 +514,7 @@ var ModalHeader = (0, _reactIntlNext.injectIntl)(function (_ref7) {
|
|
|
587
514
|
var ModalFooter = function ModalFooter() {
|
|
588
515
|
return (0, _react2.jsx)("div", {
|
|
589
516
|
css: _styles.footer
|
|
590
|
-
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({},
|
|
517
|
+
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _messages.helpDialogMessages.helpDialogTips, {
|
|
591
518
|
values: {
|
|
592
519
|
keyMap: getComponentFromKeymap(_keymaps.openHelp)
|
|
593
520
|
}
|
|
@@ -631,7 +558,7 @@ var HelpDialog = function HelpDialog(_ref8) {
|
|
|
631
558
|
css: _styles.column
|
|
632
559
|
}, (0, _react2.jsx)("h2", {
|
|
633
560
|
css: _styles.title
|
|
634
|
-
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage,
|
|
561
|
+
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _messages.helpDialogMessages.keyboardShortcuts)), (0, _react2.jsx)("ul", null, formatting.filter(function (form) {
|
|
635
562
|
var keymap = form.keymap && form.keymap();
|
|
636
563
|
return keymap && keymap[_utils.browser.mac ? 'mac' : 'windows'];
|
|
637
564
|
}).map(function (form) {
|
|
@@ -654,7 +581,7 @@ var HelpDialog = function HelpDialog(_ref8) {
|
|
|
654
581
|
css: _styles.column
|
|
655
582
|
}, (0, _react2.jsx)("h2", {
|
|
656
583
|
css: _styles.title
|
|
657
|
-
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage,
|
|
584
|
+
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, _messages.helpDialogMessages.markdown)), (0, _react2.jsx)("ul", null, formatting.filter(function (form) {
|
|
658
585
|
return shortcutNamesWithoutKeymap.indexOf(form.type) === -1;
|
|
659
586
|
}).map(function (form) {
|
|
660
587
|
return form.autoFormatting && (0, _react2.jsx)("li", {
|
package/dist/es2019/ui/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { useCallback, useEffect } from 'react';
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
|
-
import {
|
|
5
|
+
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
6
6
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
7
7
|
import { addInlineComment, addLink, alignLeft, clearFormatting, decreaseMediaSize, focusTableResizer, increaseMediaSize, 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 { alignmentMessages, annotationMessages, blockTypeMessages, listMessages, toolbarInsertBlockMessages, toolbarMessages, undoRedoMessages } from '@atlaskit/editor-common/messages';
|
|
8
|
+
import { alignmentMessages, annotationMessages, blockTypeMessages, listMessages, helpDialogMessages as messages, 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';
|
|
11
11
|
import CrossIcon from '@atlaskit/icon/glyph/cross';
|
|
@@ -13,79 +13,6 @@ import AkModalDialog, { ModalTransition, useModal } from '@atlaskit/modal-dialog
|
|
|
13
13
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
14
14
|
import { closeHelpCommand } from '../commands';
|
|
15
15
|
import { codeLg, codeMd, codeSm, column, componentFromKeymapWrapperStyles, content, contentWrapper, dialogHeader, footer, header, line, row, shortcutsArray, title } from './styles';
|
|
16
|
-
const messages = defineMessages({
|
|
17
|
-
editorHelp: {
|
|
18
|
-
id: 'fabric.editor.editorHelp',
|
|
19
|
-
defaultMessage: 'Editor help',
|
|
20
|
-
description: 'Title of editor help dialog.'
|
|
21
|
-
},
|
|
22
|
-
helpDialogTips: {
|
|
23
|
-
id: 'fabric.editor.helpDialogTips',
|
|
24
|
-
defaultMessage: 'Press {keyMap} to quickly open this dialog at any time',
|
|
25
|
-
description: 'Hint about how to open a dialog quickly using a shortcut.'
|
|
26
|
-
},
|
|
27
|
-
keyboardShortcuts: {
|
|
28
|
-
id: 'fabric.editor.keyboardShortcuts',
|
|
29
|
-
defaultMessage: 'Keyboard shortcuts',
|
|
30
|
-
description: ''
|
|
31
|
-
},
|
|
32
|
-
markdown: {
|
|
33
|
-
id: 'fabric.editor.markdown',
|
|
34
|
-
defaultMessage: 'Markdown',
|
|
35
|
-
description: 'It is a name of popular markup language.'
|
|
36
|
-
},
|
|
37
|
-
pastePlainText: {
|
|
38
|
-
id: 'fabric.editor.pastePlainText',
|
|
39
|
-
defaultMessage: 'Paste plain text',
|
|
40
|
-
description: ''
|
|
41
|
-
},
|
|
42
|
-
CheckUncheckActionItem: {
|
|
43
|
-
id: 'fabric.editor.checkUncheckActionItem',
|
|
44
|
-
defaultMessage: 'Toggle action item',
|
|
45
|
-
description: 'For Check/Uncheck Action item use shortcut'
|
|
46
|
-
},
|
|
47
|
-
altText: {
|
|
48
|
-
id: 'fabric.editor.altText',
|
|
49
|
-
defaultMessage: 'Alt text',
|
|
50
|
-
description: 'Alternative text for image.'
|
|
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
|
-
},
|
|
62
|
-
increaseSize: {
|
|
63
|
-
id: 'fabric.editor.increaseSize',
|
|
64
|
-
defaultMessage: 'Increase size',
|
|
65
|
-
description: 'The text is shown as an shortcut description in help dialog modal, when the user uses the described shortcut, he is able to increase the width of the selected element. Optimal characters less than 21.'
|
|
66
|
-
},
|
|
67
|
-
decreaseSize: {
|
|
68
|
-
id: 'fabric.editor.decreaseSize',
|
|
69
|
-
defaultMessage: 'Decrease size',
|
|
70
|
-
description: 'The text is shown as an shortcut description in help dialog modal, when the user uses the described shortcut, he is able to decrease the width of the selected element. Optimal characters less than 21.'
|
|
71
|
-
},
|
|
72
|
-
focusTableResizeHandle: {
|
|
73
|
-
id: 'fabric.editor.focusTableResizeHandle',
|
|
74
|
-
defaultMessage: 'Focus table resize handle',
|
|
75
|
-
description: 'Focus table resize handle'
|
|
76
|
-
},
|
|
77
|
-
closeHelpDialog: {
|
|
78
|
-
id: 'fabric.editor.closeHelpDialog',
|
|
79
|
-
defaultMessage: 'Close help dialog',
|
|
80
|
-
description: ''
|
|
81
|
-
},
|
|
82
|
-
// TODO: Move it inside quick insert plugin
|
|
83
|
-
quickInsert: {
|
|
84
|
-
id: 'fabric.editor.quickInsert',
|
|
85
|
-
defaultMessage: 'Quick insert',
|
|
86
|
-
description: 'Name of a feature, which let you insert items quickly.'
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
16
|
const navigationKeymaps = ({
|
|
90
17
|
formatMessage
|
|
91
18
|
}) => [{
|
package/dist/esm/ui/index.js
CHANGED
|
@@ -3,10 +3,10 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { useCallback, useEffect } from 'react';
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
|
-
import {
|
|
6
|
+
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
7
7
|
import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
8
8
|
import { addInlineComment, addLink, alignLeft, clearFormatting, decreaseMediaSize, focusTableResizer, increaseMediaSize, 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';
|
|
9
|
-
import { alignmentMessages, annotationMessages, blockTypeMessages, listMessages, toolbarInsertBlockMessages, toolbarMessages, undoRedoMessages } from '@atlaskit/editor-common/messages';
|
|
9
|
+
import { alignmentMessages, annotationMessages, blockTypeMessages, listMessages, helpDialogMessages as messages, 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';
|
|
12
12
|
import CrossIcon from '@atlaskit/icon/glyph/cross';
|
|
@@ -14,79 +14,6 @@ import AkModalDialog, { ModalTransition, useModal } from '@atlaskit/modal-dialog
|
|
|
14
14
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import { closeHelpCommand } from '../commands';
|
|
16
16
|
import { codeLg, codeMd, codeSm, column, componentFromKeymapWrapperStyles, content, contentWrapper, dialogHeader, footer, header, line, row, shortcutsArray, title } from './styles';
|
|
17
|
-
var messages = defineMessages({
|
|
18
|
-
editorHelp: {
|
|
19
|
-
id: 'fabric.editor.editorHelp',
|
|
20
|
-
defaultMessage: 'Editor help',
|
|
21
|
-
description: 'Title of editor help dialog.'
|
|
22
|
-
},
|
|
23
|
-
helpDialogTips: {
|
|
24
|
-
id: 'fabric.editor.helpDialogTips',
|
|
25
|
-
defaultMessage: 'Press {keyMap} to quickly open this dialog at any time',
|
|
26
|
-
description: 'Hint about how to open a dialog quickly using a shortcut.'
|
|
27
|
-
},
|
|
28
|
-
keyboardShortcuts: {
|
|
29
|
-
id: 'fabric.editor.keyboardShortcuts',
|
|
30
|
-
defaultMessage: 'Keyboard shortcuts',
|
|
31
|
-
description: ''
|
|
32
|
-
},
|
|
33
|
-
markdown: {
|
|
34
|
-
id: 'fabric.editor.markdown',
|
|
35
|
-
defaultMessage: 'Markdown',
|
|
36
|
-
description: 'It is a name of popular markup language.'
|
|
37
|
-
},
|
|
38
|
-
pastePlainText: {
|
|
39
|
-
id: 'fabric.editor.pastePlainText',
|
|
40
|
-
defaultMessage: 'Paste plain text',
|
|
41
|
-
description: ''
|
|
42
|
-
},
|
|
43
|
-
CheckUncheckActionItem: {
|
|
44
|
-
id: 'fabric.editor.checkUncheckActionItem',
|
|
45
|
-
defaultMessage: 'Toggle action item',
|
|
46
|
-
description: 'For Check/Uncheck Action item use shortcut'
|
|
47
|
-
},
|
|
48
|
-
altText: {
|
|
49
|
-
id: 'fabric.editor.altText',
|
|
50
|
-
defaultMessage: 'Alt text',
|
|
51
|
-
description: 'Alternative text for image.'
|
|
52
|
-
},
|
|
53
|
-
selectTableRow: {
|
|
54
|
-
id: 'fabric.editor.selectTableRow',
|
|
55
|
-
defaultMessage: 'Select table row',
|
|
56
|
-
description: 'Hint for selecting a table row using a shortcut'
|
|
57
|
-
},
|
|
58
|
-
selectTableColumn: {
|
|
59
|
-
id: 'fabric.editor.selectTableColumn',
|
|
60
|
-
defaultMessage: 'Select table column',
|
|
61
|
-
description: 'Hint for selecting a table column using a shortcut'
|
|
62
|
-
},
|
|
63
|
-
increaseSize: {
|
|
64
|
-
id: 'fabric.editor.increaseSize',
|
|
65
|
-
defaultMessage: 'Increase size',
|
|
66
|
-
description: 'The text is shown as an shortcut description in help dialog modal, when the user uses the described shortcut, he is able to increase the width of the selected element. Optimal characters less than 21.'
|
|
67
|
-
},
|
|
68
|
-
decreaseSize: {
|
|
69
|
-
id: 'fabric.editor.decreaseSize',
|
|
70
|
-
defaultMessage: 'Decrease size',
|
|
71
|
-
description: 'The text is shown as an shortcut description in help dialog modal, when the user uses the described shortcut, he is able to decrease the width of the selected element. Optimal characters less than 21.'
|
|
72
|
-
},
|
|
73
|
-
focusTableResizeHandle: {
|
|
74
|
-
id: 'fabric.editor.focusTableResizeHandle',
|
|
75
|
-
defaultMessage: 'Focus table resize handle',
|
|
76
|
-
description: 'Focus table resize handle'
|
|
77
|
-
},
|
|
78
|
-
closeHelpDialog: {
|
|
79
|
-
id: 'fabric.editor.closeHelpDialog',
|
|
80
|
-
defaultMessage: 'Close help dialog',
|
|
81
|
-
description: ''
|
|
82
|
-
},
|
|
83
|
-
// TODO: Move it inside quick insert plugin
|
|
84
|
-
quickInsert: {
|
|
85
|
-
id: 'fabric.editor.quickInsert',
|
|
86
|
-
defaultMessage: 'Quick insert',
|
|
87
|
-
description: 'Name of a feature, which let you insert items quickly.'
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
17
|
var navigationKeymaps = function navigationKeymaps(_ref) {
|
|
91
18
|
var formatMessage = _ref.formatMessage;
|
|
92
19
|
return [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-help-dialog",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"description": "Help Dialog plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/editor-common": "^77.
|
|
35
|
+
"@atlaskit/editor-common": "^77.3.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^0.4.0",
|
|
37
37
|
"@atlaskit/editor-plugin-quick-insert": "^0.2.0",
|
|
38
|
-
"@atlaskit/editor-prosemirror": "
|
|
38
|
+
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^2.9.0",
|
|
40
40
|
"@atlaskit/icon": "^22.0.0",
|
|
41
41
|
"@atlaskit/modal-dialog": "^12.10.0",
|