@atlaskit/editor-plugin-help-dialog 0.3.3 → 0.3.4
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 +1 -23
- package/dist/es2019/ui/index.js +2 -20
- package/dist/esm/ui/index.js +2 -24
- 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.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#42221](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42221) [`7fd1f8bb312`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7fd1f8bb312) - revert pr 42221
|
|
8
|
+
|
|
3
9
|
## 0.3.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/ui/index.js
CHANGED
|
@@ -60,16 +60,6 @@ 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
|
-
},
|
|
73
63
|
closeHelpDialog: {
|
|
74
64
|
id: 'fabric.editor.closeHelpDialog',
|
|
75
65
|
defaultMessage: 'Close help dialog',
|
|
@@ -401,18 +391,6 @@ var otherFormatting = function otherFormatting(_ref3) {
|
|
|
401
391
|
keymap: function keymap() {
|
|
402
392
|
return _keymaps.toggleTaskItemCheckbox;
|
|
403
393
|
}
|
|
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
|
-
}
|
|
416
394
|
}];
|
|
417
395
|
};
|
|
418
396
|
var imageAutoFormat = {
|
|
@@ -466,7 +444,7 @@ var getComponentFromKeymap = exports.getComponentFromKeymap = function getCompon
|
|
|
466
444
|
css: _styles.codeMd,
|
|
467
445
|
key: "".concat(keyParts, "-").concat(index)
|
|
468
446
|
}, part);
|
|
469
|
-
} else if (['f9', 'f10'
|
|
447
|
+
} else if (['f9', 'f10'].indexOf(part.toLowerCase()) >= 0) {
|
|
470
448
|
return (0, _react2.jsx)("span", {
|
|
471
449
|
css: _styles.codeLg,
|
|
472
450
|
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,
|
|
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';
|
|
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,16 +48,6 @@ 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
|
-
},
|
|
61
51
|
closeHelpDialog: {
|
|
62
52
|
id: 'fabric.editor.closeHelpDialog',
|
|
63
53
|
defaultMessage: 'Close help dialog',
|
|
@@ -291,14 +281,6 @@ const otherFormatting = ({
|
|
|
291
281
|
name: formatMessage(messages.CheckUncheckActionItem),
|
|
292
282
|
type: 'checkbox',
|
|
293
283
|
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
|
|
302
284
|
}];
|
|
303
285
|
const imageAutoFormat = {
|
|
304
286
|
name: 'Image',
|
|
@@ -344,7 +326,7 @@ export const getComponentFromKeymap = keymap => {
|
|
|
344
326
|
css: codeMd,
|
|
345
327
|
key: `${keyParts}-${index}`
|
|
346
328
|
}, part);
|
|
347
|
-
} else if (['f9', 'f10'
|
|
329
|
+
} else if (['f9', 'f10'].indexOf(part.toLowerCase()) >= 0) {
|
|
348
330
|
return jsx("span", {
|
|
349
331
|
css: codeLg,
|
|
350
332
|
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,
|
|
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';
|
|
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,16 +49,6 @@ 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
|
-
},
|
|
62
52
|
closeHelpDialog: {
|
|
63
53
|
id: 'fabric.editor.closeHelpDialog',
|
|
64
54
|
defaultMessage: 'Close help dialog',
|
|
@@ -390,18 +380,6 @@ var otherFormatting = function otherFormatting(_ref3) {
|
|
|
390
380
|
keymap: function keymap() {
|
|
391
381
|
return toggleTaskItemCheckbox;
|
|
392
382
|
}
|
|
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
|
-
}
|
|
405
383
|
}];
|
|
406
384
|
};
|
|
407
385
|
var imageAutoFormat = {
|
|
@@ -455,7 +433,7 @@ export var getComponentFromKeymap = function getComponentFromKeymap(keymap) {
|
|
|
455
433
|
css: codeMd,
|
|
456
434
|
key: "".concat(keyParts, "-").concat(index)
|
|
457
435
|
}, part);
|
|
458
|
-
} else if (['f9', 'f10'
|
|
436
|
+
} else if (['f9', 'f10'].indexOf(part.toLowerCase()) >= 0) {
|
|
459
437
|
return jsx("span", {
|
|
460
438
|
css: codeLg,
|
|
461
439
|
key: "".concat(keyParts, "-").concat(index)
|