@atlaskit/editor-plugin-help-dialog 1.2.15 → 1.3.1

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,30 @@
1
1
  # @atlaskit/editor-plugin-help-dialog
2
2
 
3
+ ## 1.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#122514](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122514)
8
+ [`91276c81ef8a8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/91276c81ef8a8) -
9
+ [ED-24019] This change is cleaning up the feature flag
10
+ 'platform.editor.a11y-help-dialog-shortcut-keys-position_aghfg' which was introduced for new
11
+ keyboard shortcuts for inserting columns and rows to a table.
12
+ - Updated dependencies
13
+
14
+ ## 1.3.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [#120893](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/120893)
19
+ [`67a22e5eb05a2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/67a22e5eb05a2) -
20
+ [ux] [ECA11Y-113] This change adds the keyboard shortcut (Shift+F10) to the Cell Options Tooltip
21
+ and to the Editor Help dialog. This change is behind the `platform_editor_a11y_table_context_menu`
22
+ feature flag.
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies
27
+
3
28
  ## 1.2.15
4
29
 
5
30
  ### Patch Changes
@@ -7,7 +7,10 @@ exports.default = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _modalDialog = require("@atlaskit/modal-dialog");
9
9
  var _ModalContent = require("./ModalContent");
10
- /** @jsx jsx */
10
+ /**
11
+ * @jsxRuntime classic
12
+ * @jsx jsx
13
+ */
11
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
15
 
13
16
  var Modal = function Modal(_ref) {
@@ -14,7 +14,10 @@ var _ModalFooter = _interopRequireDefault(require("./ModalFooter"));
14
14
  var _ModalHeader = _interopRequireDefault(require("./ModalHeader"));
15
15
  var _styles = require("./styles");
16
16
  var _utils2 = require("./utils");
17
- /** @jsx jsx */
17
+ /**
18
+ * @jsxRuntime classic
19
+ * @jsx jsx
20
+ */
18
21
  /** @jsxFrag */
19
22
 
20
23
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -12,7 +12,10 @@ var _keymaps = require("@atlaskit/editor-common/keymaps");
12
12
  var _messages = require("@atlaskit/editor-common/messages");
13
13
  var _styles = require("./styles");
14
14
  var _utils = require("./utils");
15
- /** @jsx jsx */
15
+ /**
16
+ * @jsxRuntime classic
17
+ * @jsx jsx
18
+ */
16
19
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
20
 
18
21
  var ModalFooter = function ModalFooter() {
@@ -11,7 +11,10 @@ var _messages = require("@atlaskit/editor-common/messages");
11
11
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
12
12
  var _cross = _interopRequireDefault(require("@atlaskit/icon/glyph/cross"));
13
13
  var _styles = require("./styles");
14
- /** @jsx jsx */
14
+ /**
15
+ * @jsxRuntime classic
16
+ * @jsx jsx
17
+ */
15
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
19
 
17
20
  var ModalHeader = (0, _reactIntlNext.injectIntl)(function (_ref) {
@@ -13,7 +13,10 @@ var _messages = require("@atlaskit/editor-common/messages");
13
13
  var _utils = require("@atlaskit/editor-common/utils");
14
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
15
  var _styles = require("./styles");
16
- /** @jsx jsx */
16
+ /**
17
+ * @jsxRuntime classic
18
+ * @jsx jsx
19
+ */
17
20
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
21
 
19
22
  var navigationKeymaps = function navigationKeymaps(_ref) {
@@ -397,7 +400,7 @@ var otherFormatting = function otherFormatting(_ref3) {
397
400
  }, "\u2193")))
398
401
  );
399
402
  }
400
- }].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform.editor.a11y-help-dialog-shortcut-keys-position_aghfg') ? [{
403
+ }].concat([{
401
404
  name: formatMessage(_messages.helpDialogMessages.InsertTableColumn),
402
405
  type: 'table',
403
406
  autoFormatting: function autoFormatting() {
@@ -443,53 +446,7 @@ var otherFormatting = function otherFormatting(_ref3) {
443
446
  }, "[")))
444
447
  );
445
448
  }
446
- }] : [{
447
- name: formatMessage(_messages.helpDialogMessages.InsertTableColumn),
448
- type: 'table',
449
- autoFormatting: function autoFormatting() {
450
- return (
451
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
452
- (0, _react.jsx)("span", {
453
- css: _styles.shortcutsArray
454
- }, (0, _react.jsx)("span", null, (0, _react.jsx)("span", {
455
- css: _styles.codeSm
456
- }, _utils.browser.mac ? '⌃' : 'Ctrl'), ' + ', (0, _react.jsx)("span", {
457
- css: _styles.codeMd
458
- }, _utils.browser.mac ? 'Opt' : 'Alt'), ' + ', (0, _react.jsx)("span", {
459
- css: _styles.codeSm
460
- }, "\u2192")), (0, _react.jsx)("span", null, (0, _react.jsx)("span", {
461
- css: _styles.codeSm
462
- }, _utils.browser.mac ? '⌃' : 'Ctrl'), ' + ', (0, _react.jsx)("span", {
463
- css: _styles.codeMd
464
- }, _utils.browser.mac ? 'Opt' : 'Alt'), ' + ', (0, _react.jsx)("span", {
465
- css: _styles.codeSm
466
- }, "\u2190")))
467
- );
468
- }
469
- }, {
470
- name: formatMessage(_messages.helpDialogMessages.InsertTableRow),
471
- type: 'table',
472
- autoFormatting: function autoFormatting() {
473
- return (
474
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
475
- (0, _react.jsx)("span", {
476
- css: _styles.shortcutsArray
477
- }, (0, _react.jsx)("span", null, (0, _react.jsx)("span", {
478
- css: _styles.codeSm
479
- }, _utils.browser.mac ? '⌃' : 'Ctrl'), ' + ', (0, _react.jsx)("span", {
480
- css: _styles.codeMd
481
- }, _utils.browser.mac ? 'Opt' : 'Alt'), ' + ', (0, _react.jsx)("span", {
482
- css: _styles.codeSm
483
- }, "\u2193")), (0, _react.jsx)("span", null, (0, _react.jsx)("span", {
484
- css: _styles.codeSm
485
- }, _utils.browser.mac ? '⌃' : 'Ctrl'), ' + ', (0, _react.jsx)("span", {
486
- css: _styles.codeMd
487
- }, _utils.browser.mac ? 'Opt' : 'Alt'), ' + ', (0, _react.jsx)("span", {
488
- css: _styles.codeSm
489
- }, "\u2191")))
490
- );
491
- }
492
- }]), [{
449
+ }], [{
493
450
  name: formatMessage(_messages.helpDialogMessages.selectColumnResize),
494
451
  type: 'table',
495
452
  autoFormatting: function autoFormatting() {
@@ -542,6 +499,16 @@ var focusTableResizeHandleFormatting = function focusTableResizeHandleFormatting
542
499
  }
543
500
  }];
544
501
  };
502
+ var openCellOptionsFormattingtoFormat = function openCellOptionsFormattingtoFormat(_ref6) {
503
+ var formatMessage = _ref6.formatMessage;
504
+ return [{
505
+ name: formatMessage(_messages.helpDialogMessages.openCellOptions),
506
+ type: 'image',
507
+ keymap: function keymap() {
508
+ return _keymaps.focusToContextMenuTrigger;
509
+ }
510
+ }];
511
+ };
545
512
  var imageAutoFormat = {
546
513
  name: 'Image',
547
514
  type: 'image',
@@ -551,8 +518,8 @@ var imageAutoFormat = {
551
518
  }, "![", (0, _react.jsx)(_reactIntlNext.FormattedMessage, _messages.helpDialogMessages.altText), "](http://www.image.com)"));
552
519
  }
553
520
  };
554
- var quickInsertAutoFormat = function quickInsertAutoFormat(_ref6) {
555
- var formatMessage = _ref6.formatMessage;
521
+ var quickInsertAutoFormat = function quickInsertAutoFormat(_ref7) {
522
+ var formatMessage = _ref7.formatMessage;
556
523
  return {
557
524
  name: formatMessage(_messages.helpDialogMessages.quickInsert),
558
525
  type: 'quickInsert',
@@ -567,5 +534,5 @@ var getSupportedFormatting = exports.getSupportedFormatting = function getSuppor
567
534
  var supportedBySchema = formatting(intl).filter(function (format) {
568
535
  return schema.nodes[format.type] || schema.marks[format.type];
569
536
  });
570
- return [].concat((0, _toConsumableArray2.default)(navigationKeymaps(intl)), (0, _toConsumableArray2.default)(otherFormatting(intl)), (0, _toConsumableArray2.default)(supportedBySchema), (0, _toConsumableArray2.default)(imageEnabled ? [imageAutoFormat] : []), (0, _toConsumableArray2.default)(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), (0, _toConsumableArray2.default)(focusTableResizeHandleFormatting(intl)), (0, _toConsumableArray2.default)(resizeInformationFormatting(intl)));
537
+ return (0, _platformFeatureFlags.fg)('platform_editor_a11y_table_context_menu') ? [].concat((0, _toConsumableArray2.default)(navigationKeymaps(intl)), (0, _toConsumableArray2.default)(otherFormatting(intl)), (0, _toConsumableArray2.default)(supportedBySchema), (0, _toConsumableArray2.default)(imageEnabled ? [imageAutoFormat] : []), (0, _toConsumableArray2.default)(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), (0, _toConsumableArray2.default)(focusTableResizeHandleFormatting(intl)), (0, _toConsumableArray2.default)(resizeInformationFormatting(intl)), (0, _toConsumableArray2.default)(openCellOptionsFormattingtoFormat(intl))) : [].concat((0, _toConsumableArray2.default)(navigationKeymaps(intl)), (0, _toConsumableArray2.default)(otherFormatting(intl)), (0, _toConsumableArray2.default)(supportedBySchema), (0, _toConsumableArray2.default)(imageEnabled ? [imageAutoFormat] : []), (0, _toConsumableArray2.default)(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), (0, _toConsumableArray2.default)(focusTableResizeHandleFormatting(intl)), (0, _toConsumableArray2.default)(resizeInformationFormatting(intl)));
571
538
  };
@@ -16,7 +16,10 @@ var _formatting = require("./formatting");
16
16
  var _Modal = _interopRequireDefault(require("./Modal"));
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
- /** @jsx jsx */
19
+ /**
20
+ * @jsxRuntime classic
21
+ * @jsx jsx
22
+ */
20
23
 
21
24
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
25
 
@@ -7,7 +7,10 @@ exports.shortcutNamesWithoutKeymap = exports.getComponentFromKeymap = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _utils = require("@atlaskit/editor-common/utils");
9
9
  var _styles = require("./styles");
10
- /** @jsx jsx */
10
+ /**
11
+ * @jsxRuntime classic
12
+ * @jsx jsx
13
+ */
11
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
15
 
13
16
  var getKeyParts = function getKeyParts(keymap) {
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { jsx } from '@emotion/react';
4
7
  import { useModal } from '@atlaskit/modal-dialog';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  /** @jsxFrag */
3
6
  import React from 'react';
4
7
 
@@ -1,5 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
7
  import { jsx } from '@emotion/react';
5
8
  import { FormattedMessage } from 'react-intl-next';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { jsx } from '@emotion/react';
4
7
  import { FormattedMessage, injectIntl } from 'react-intl-next';
@@ -1,8 +1,11 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { jsx } from '@emotion/react';
4
7
  import { FormattedMessage } from 'react-intl-next';
5
- import { addInlineComment, addLink, alignCenter, alignLeft, alignRight, clearFormatting, decreaseMediaSize, focusTableResizer, increaseMediaSize, insertRule, navToEditorToolbar, navToFloatingToolbar, pastePlainText, redo, setNormalText, toggleBlockQuote, toggleBold, toggleBulletList, toggleCode, toggleHeading1, toggleHeading2, toggleHeading3, toggleHeading4, toggleHeading5, toggleHeading6, toggleHighlightPalette, toggleItalic, toggleOrderedList, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleTaskItemCheckbox, toggleUnderline, undo } from '@atlaskit/editor-common/keymaps';
8
+ import { addInlineComment, addLink, alignCenter, alignLeft, alignRight, clearFormatting, decreaseMediaSize, focusTableResizer, focusToContextMenuTrigger, increaseMediaSize, insertRule, navToEditorToolbar, navToFloatingToolbar, pastePlainText, redo, setNormalText, toggleBlockQuote, toggleBold, toggleBulletList, toggleCode, toggleHeading1, toggleHeading2, toggleHeading3, toggleHeading4, toggleHeading5, toggleHeading6, toggleHighlightPalette, toggleItalic, toggleOrderedList, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleTaskItemCheckbox, toggleUnderline, undo } from '@atlaskit/editor-common/keymaps';
6
9
  import { alignmentMessages, annotationMessages, blockTypeMessages, listMessages, helpDialogMessages as messages, toolbarInsertBlockMessages, toolbarMessages, undoRedoMessages } from '@atlaskit/editor-common/messages';
7
10
  import { browser } from '@atlaskit/editor-common/utils';
8
11
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -280,7 +283,7 @@ const otherFormatting = ({
280
283
  }, "Shift"), ' + ', jsx("span", {
281
284
  css: codeSm
282
285
  }, "\u2193")))
283
- }, ...(fg('platform.editor.a11y-help-dialog-shortcut-keys-position_aghfg') ? [{
286
+ }, ...[{
284
287
  name: formatMessage(messages.InsertTableColumn),
285
288
  type: 'table',
286
289
  autoFormatting: () =>
@@ -320,47 +323,7 @@ const otherFormatting = ({
320
323
  }, browser.mac ? 'Opt' : 'Alt'), ' + ', jsx("span", {
321
324
  css: codeSm
322
325
  }, "[")))
323
- }] : [{
324
- name: formatMessage(messages.InsertTableColumn),
325
- type: 'table',
326
- autoFormatting: () =>
327
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
328
- jsx("span", {
329
- css: shortcutsArray
330
- }, jsx("span", null, jsx("span", {
331
- css: codeSm
332
- }, browser.mac ? '⌃' : 'Ctrl'), ' + ', jsx("span", {
333
- css: codeMd
334
- }, browser.mac ? 'Opt' : 'Alt'), ' + ', jsx("span", {
335
- css: codeSm
336
- }, "\u2192")), jsx("span", null, jsx("span", {
337
- css: codeSm
338
- }, browser.mac ? '⌃' : 'Ctrl'), ' + ', jsx("span", {
339
- css: codeMd
340
- }, browser.mac ? 'Opt' : 'Alt'), ' + ', jsx("span", {
341
- css: codeSm
342
- }, "\u2190")))
343
- }, {
344
- name: formatMessage(messages.InsertTableRow),
345
- type: 'table',
346
- autoFormatting: () =>
347
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
348
- jsx("span", {
349
- css: shortcutsArray
350
- }, jsx("span", null, jsx("span", {
351
- css: codeSm
352
- }, browser.mac ? '⌃' : 'Ctrl'), ' + ', jsx("span", {
353
- css: codeMd
354
- }, browser.mac ? 'Opt' : 'Alt'), ' + ', jsx("span", {
355
- css: codeSm
356
- }, "\u2193")), jsx("span", null, jsx("span", {
357
- css: codeSm
358
- }, browser.mac ? '⌃' : 'Ctrl'), ' + ', jsx("span", {
359
- css: codeMd
360
- }, browser.mac ? 'Opt' : 'Alt'), ' + ', jsx("span", {
361
- css: codeSm
362
- }, "\u2191")))
363
- }]), ...[{
326
+ }], ...[{
364
327
  name: formatMessage(messages.selectColumnResize),
365
328
  type: 'table',
366
329
  autoFormatting: () =>
@@ -399,6 +362,13 @@ const focusTableResizeHandleFormatting = ({
399
362
  type: 'navigation',
400
363
  keymap: () => focusTableResizer
401
364
  }];
365
+ const openCellOptionsFormattingtoFormat = ({
366
+ formatMessage
367
+ }) => [{
368
+ name: formatMessage(messages.openCellOptions),
369
+ type: 'image',
370
+ keymap: () => focusToContextMenuTrigger
371
+ }];
402
372
  const imageAutoFormat = {
403
373
  name: 'Image',
404
374
  type: 'image',
@@ -417,5 +387,5 @@ const quickInsertAutoFormat = ({
417
387
  });
418
388
  export const getSupportedFormatting = (schema, intl, imageEnabled, quickInsertEnabled) => {
419
389
  const supportedBySchema = formatting(intl).filter(format => schema.nodes[format.type] || schema.marks[format.type]);
420
- return [...navigationKeymaps(intl), ...otherFormatting(intl), ...supportedBySchema, ...(imageEnabled ? [imageAutoFormat] : []), ...(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), ...focusTableResizeHandleFormatting(intl), ...resizeInformationFormatting(intl)];
390
+ return fg('platform_editor_a11y_table_context_menu') ? [...navigationKeymaps(intl), ...otherFormatting(intl), ...supportedBySchema, ...(imageEnabled ? [imageAutoFormat] : []), ...(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), ...focusTableResizeHandleFormatting(intl), ...resizeInformationFormatting(intl), ...openCellOptionsFormattingtoFormat(intl)] : [...navigationKeymaps(intl), ...otherFormatting(intl), ...supportedBySchema, ...(imageEnabled ? [imageAutoFormat] : []), ...(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), ...focusTableResizeHandleFormatting(intl), ...resizeInformationFormatting(intl)];
421
391
  };
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { useCallback, useEffect } from 'react';
3
6
 
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { jsx } from '@emotion/react';
4
7
  import { browser } from '@atlaskit/editor-common/utils';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { jsx } from '@emotion/react';
4
7
  import { useModal } from '@atlaskit/modal-dialog';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  /** @jsxFrag */
3
6
  import React from 'react';
4
7
 
@@ -1,5 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
7
  import { jsx } from '@emotion/react';
5
8
  import { FormattedMessage } from 'react-intl-next';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { jsx } from '@emotion/react';
4
7
  import { FormattedMessage, injectIntl } from 'react-intl-next';
@@ -1,9 +1,12 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- /** @jsx jsx */
2
+ /**
3
+ * @jsxRuntime classic
4
+ * @jsx jsx
5
+ */
3
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
7
  import { jsx } from '@emotion/react';
5
8
  import { FormattedMessage } from 'react-intl-next';
6
- import { addInlineComment, addLink, alignCenter, alignLeft, alignRight, clearFormatting, decreaseMediaSize, focusTableResizer, increaseMediaSize, insertRule, navToEditorToolbar, navToFloatingToolbar, pastePlainText, redo, setNormalText, toggleBlockQuote, toggleBold, toggleBulletList, toggleCode, toggleHeading1, toggleHeading2, toggleHeading3, toggleHeading4, toggleHeading5, toggleHeading6, toggleHighlightPalette, toggleItalic, toggleOrderedList, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleTaskItemCheckbox, toggleUnderline, undo } from '@atlaskit/editor-common/keymaps';
9
+ import { addInlineComment, addLink, alignCenter, alignLeft, alignRight, clearFormatting, decreaseMediaSize, focusTableResizer, focusToContextMenuTrigger, increaseMediaSize, insertRule, navToEditorToolbar, navToFloatingToolbar, pastePlainText, redo, setNormalText, toggleBlockQuote, toggleBold, toggleBulletList, toggleCode, toggleHeading1, toggleHeading2, toggleHeading3, toggleHeading4, toggleHeading5, toggleHeading6, toggleHighlightPalette, toggleItalic, toggleOrderedList, toggleStrikethrough, toggleSubscript, toggleSuperscript, toggleTaskItemCheckbox, toggleUnderline, undo } from '@atlaskit/editor-common/keymaps';
7
10
  import { alignmentMessages, annotationMessages, blockTypeMessages, listMessages, helpDialogMessages as messages, toolbarInsertBlockMessages, toolbarMessages, undoRedoMessages } from '@atlaskit/editor-common/messages';
8
11
  import { browser } from '@atlaskit/editor-common/utils';
9
12
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -389,7 +392,7 @@ var otherFormatting = function otherFormatting(_ref3) {
389
392
  }, "\u2193")))
390
393
  );
391
394
  }
392
- }].concat(_toConsumableArray(fg('platform.editor.a11y-help-dialog-shortcut-keys-position_aghfg') ? [{
395
+ }].concat([{
393
396
  name: formatMessage(messages.InsertTableColumn),
394
397
  type: 'table',
395
398
  autoFormatting: function autoFormatting() {
@@ -435,53 +438,7 @@ var otherFormatting = function otherFormatting(_ref3) {
435
438
  }, "[")))
436
439
  );
437
440
  }
438
- }] : [{
439
- name: formatMessage(messages.InsertTableColumn),
440
- type: 'table',
441
- autoFormatting: function autoFormatting() {
442
- return (
443
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
444
- jsx("span", {
445
- css: shortcutsArray
446
- }, jsx("span", null, jsx("span", {
447
- css: codeSm
448
- }, browser.mac ? '⌃' : 'Ctrl'), ' + ', jsx("span", {
449
- css: codeMd
450
- }, browser.mac ? 'Opt' : 'Alt'), ' + ', jsx("span", {
451
- css: codeSm
452
- }, "\u2192")), jsx("span", null, jsx("span", {
453
- css: codeSm
454
- }, browser.mac ? '⌃' : 'Ctrl'), ' + ', jsx("span", {
455
- css: codeMd
456
- }, browser.mac ? 'Opt' : 'Alt'), ' + ', jsx("span", {
457
- css: codeSm
458
- }, "\u2190")))
459
- );
460
- }
461
- }, {
462
- name: formatMessage(messages.InsertTableRow),
463
- type: 'table',
464
- autoFormatting: function autoFormatting() {
465
- return (
466
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
467
- jsx("span", {
468
- css: shortcutsArray
469
- }, jsx("span", null, jsx("span", {
470
- css: codeSm
471
- }, browser.mac ? '⌃' : 'Ctrl'), ' + ', jsx("span", {
472
- css: codeMd
473
- }, browser.mac ? 'Opt' : 'Alt'), ' + ', jsx("span", {
474
- css: codeSm
475
- }, "\u2193")), jsx("span", null, jsx("span", {
476
- css: codeSm
477
- }, browser.mac ? '⌃' : 'Ctrl'), ' + ', jsx("span", {
478
- css: codeMd
479
- }, browser.mac ? 'Opt' : 'Alt'), ' + ', jsx("span", {
480
- css: codeSm
481
- }, "\u2191")))
482
- );
483
- }
484
- }]), [{
441
+ }], [{
485
442
  name: formatMessage(messages.selectColumnResize),
486
443
  type: 'table',
487
444
  autoFormatting: function autoFormatting() {
@@ -534,6 +491,16 @@ var focusTableResizeHandleFormatting = function focusTableResizeHandleFormatting
534
491
  }
535
492
  }];
536
493
  };
494
+ var openCellOptionsFormattingtoFormat = function openCellOptionsFormattingtoFormat(_ref6) {
495
+ var formatMessage = _ref6.formatMessage;
496
+ return [{
497
+ name: formatMessage(messages.openCellOptions),
498
+ type: 'image',
499
+ keymap: function keymap() {
500
+ return focusToContextMenuTrigger;
501
+ }
502
+ }];
503
+ };
537
504
  var imageAutoFormat = {
538
505
  name: 'Image',
539
506
  type: 'image',
@@ -543,8 +510,8 @@ var imageAutoFormat = {
543
510
  }, "![", jsx(FormattedMessage, messages.altText), "](http://www.image.com)"));
544
511
  }
545
512
  };
546
- var quickInsertAutoFormat = function quickInsertAutoFormat(_ref6) {
547
- var formatMessage = _ref6.formatMessage;
513
+ var quickInsertAutoFormat = function quickInsertAutoFormat(_ref7) {
514
+ var formatMessage = _ref7.formatMessage;
548
515
  return {
549
516
  name: formatMessage(messages.quickInsert),
550
517
  type: 'quickInsert',
@@ -559,5 +526,5 @@ export var getSupportedFormatting = function getSupportedFormatting(schema, intl
559
526
  var supportedBySchema = formatting(intl).filter(function (format) {
560
527
  return schema.nodes[format.type] || schema.marks[format.type];
561
528
  });
562
- return [].concat(_toConsumableArray(navigationKeymaps(intl)), _toConsumableArray(otherFormatting(intl)), _toConsumableArray(supportedBySchema), _toConsumableArray(imageEnabled ? [imageAutoFormat] : []), _toConsumableArray(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), _toConsumableArray(focusTableResizeHandleFormatting(intl)), _toConsumableArray(resizeInformationFormatting(intl)));
529
+ return fg('platform_editor_a11y_table_context_menu') ? [].concat(_toConsumableArray(navigationKeymaps(intl)), _toConsumableArray(otherFormatting(intl)), _toConsumableArray(supportedBySchema), _toConsumableArray(imageEnabled ? [imageAutoFormat] : []), _toConsumableArray(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), _toConsumableArray(focusTableResizeHandleFormatting(intl)), _toConsumableArray(resizeInformationFormatting(intl)), _toConsumableArray(openCellOptionsFormattingtoFormat(intl))) : [].concat(_toConsumableArray(navigationKeymaps(intl)), _toConsumableArray(otherFormatting(intl)), _toConsumableArray(supportedBySchema), _toConsumableArray(imageEnabled ? [imageAutoFormat] : []), _toConsumableArray(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), _toConsumableArray(focusTableResizeHandleFormatting(intl)), _toConsumableArray(resizeInformationFormatting(intl)));
563
530
  };
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { useCallback, useEffect } from 'react';
3
6
 
4
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
6
  import { jsx } from '@emotion/react';
4
7
  import { browser } from '@atlaskit/editor-common/utils';
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { Format } from './Format';
4
7
  interface ModalProps {
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  declare const ModalFooter: () => jsx.JSX.Element;
4
7
  export default ModalFooter;
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { Keymap } from '@atlaskit/editor-common/keymaps';
4
7
  export declare const shortcutNamesWithoutKeymap: string[];
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { Format } from './Format';
4
7
  interface ModalProps {
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  declare const ModalFooter: () => jsx.JSX.Element;
4
7
  export default ModalFooter;
@@ -1,4 +1,7 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import { jsx } from '@emotion/react';
3
6
  import type { Keymap } from '@atlaskit/editor-common/keymaps';
4
7
  export declare const shortcutNamesWithoutKeymap: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-help-dialog",
3
- "version": "1.2.15",
3
+ "version": "1.3.1",
4
4
  "description": "Help Dialog plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,16 +32,16 @@
32
32
  ".": "./src/index.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/editor-common": "^86.0.0",
35
+ "@atlaskit/editor-common": "^86.5.0",
36
36
  "@atlaskit/editor-plugin-analytics": "^1.4.0",
37
37
  "@atlaskit/editor-plugin-quick-insert": "^1.1.0",
38
38
  "@atlaskit/editor-prosemirror": "4.0.1",
39
39
  "@atlaskit/editor-shared-styles": "^2.13.0",
40
- "@atlaskit/icon": "^22.6.0",
40
+ "@atlaskit/icon": "^22.7.0",
41
41
  "@atlaskit/modal-dialog": "^12.14.0",
42
42
  "@atlaskit/platform-feature-flags": "^0.3.0",
43
43
  "@atlaskit/theme": "^12.11.0",
44
- "@atlaskit/tokens": "^1.55.0",
44
+ "@atlaskit/tokens": "^1.56.0",
45
45
  "@babel/runtime": "^7.0.0",
46
46
  "@emotion/react": "^11.7.1",
47
47
  "react-intl-next": "npm:react-intl@^5.18.1",
@@ -84,7 +84,7 @@
84
84
  }
85
85
  },
86
86
  "platform-feature-flags": {
87
- "platform.editor.a11y-help-dialog-shortcut-keys-position_aghfg": {
87
+ "platform_editor_a11y_table_context_menu": {
88
88
  "type": "boolean"
89
89
  }
90
90
  }