@atlaskit/editor-plugin-help-dialog 0.3.3 → 0.3.5

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-help-dialog
2
2
 
3
+ ## 0.3.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.3.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#42221](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42221) [`7fd1f8bb312`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7fd1f8bb312) - revert pr 42221
14
+
3
15
  ## 0.3.3
4
16
 
5
17
  ### Patch Changes
@@ -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', 'space'].indexOf(part.toLowerCase()) >= 0) {
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)
@@ -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, 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';
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', 'space'].indexOf(part.toLowerCase()) >= 0) {
329
+ } else if (['f9', 'f10'].indexOf(part.toLowerCase()) >= 0) {
348
330
  return jsx("span", {
349
331
  css: codeLg,
350
332
  key: `${keyParts}-${index}`
@@ -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, 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
+ 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', 'space'].indexOf(part.toLowerCase()) >= 0) {
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-help-dialog",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Help Dialog plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,15 +31,15 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/editor-common": "^76.22.0",
35
- "@atlaskit/editor-plugin-analytics": "^0.3.0",
34
+ "@atlaskit/editor-common": "^76.26.0",
35
+ "@atlaskit/editor-plugin-analytics": "^0.4.0",
36
36
  "@atlaskit/editor-plugin-quick-insert": "^0.2.0",
37
37
  "@atlaskit/editor-prosemirror": "1.1.0",
38
38
  "@atlaskit/editor-shared-styles": "^2.8.0",
39
39
  "@atlaskit/icon": "^22.0.0",
40
- "@atlaskit/modal-dialog": "^12.8.0",
40
+ "@atlaskit/modal-dialog": "^12.10.0",
41
41
  "@atlaskit/theme": "^12.6.0",
42
- "@atlaskit/tokens": "^1.28.0",
42
+ "@atlaskit/tokens": "^1.29.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@emotion/react": "^11.7.1",
45
45
  "react-intl-next": "npm:react-intl@^5.18.1",
@@ -1,39 +0,0 @@
1
- ## API Report File for "@atlaskit/editor-plugin-help-dialog"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
8
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
9
- import type { OptionalPlugin } from '@atlaskit/editor-common/types';
10
- import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
11
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
12
-
13
- // @public (undocumented)
14
- export const deprecatedOpenHelpCommand: (tr: Transaction, dispatch?: Function) => boolean;
15
-
16
- // @public (undocumented)
17
- export type HelpDialogPlugin = NextEditorPlugin<'helpDialog', {
18
- dependencies: [
19
- OptionalPlugin<AnalyticsPlugin>,
20
- OptionalPlugin<QuickInsertPlugin>
21
- ];
22
- pluginConfiguration: boolean;
23
- sharedState: HelpDialogSharedState | null;
24
- }>;
25
-
26
- // @public (undocumented)
27
- export const helpDialogPlugin: HelpDialogPlugin;
28
-
29
- // @public (undocumented)
30
- export interface HelpDialogSharedState {
31
- // (undocumented)
32
- imageEnabled: boolean;
33
- // (undocumented)
34
- isVisible: boolean;
35
- }
36
-
37
- // (No @packageDocumentation comment for this package)
38
-
39
- ```