@atlaskit/editor-plugin-help-dialog 2.1.8 → 2.1.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @atlaskit/editor-plugin-help-dialog
2
2
 
3
+ ## 2.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#167027](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/167027)
8
+ [`44639aaa2f7ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/44639aaa2f7ae) -
9
+ ED-28191 add new description text for resizing shortcut now it applies to more elements behind
10
+ platform_editor_breakout_resizing experiment
11
+ - Updated dependencies
12
+
3
13
  ## 2.1.8
4
14
 
5
15
  ### Patch Changes
@@ -606,8 +606,24 @@ var resizeInformationFormatting = function resizeInformationFormatting(_ref5) {
606
606
  }
607
607
  }];
608
608
  };
609
- var focusTableResizeHandleFormatting = function focusTableResizeHandleFormatting(_ref6) {
609
+ var newResizeInformationFormatting = function newResizeInformationFormatting(_ref6) {
610
610
  var formatMessage = _ref6.formatMessage;
611
+ return [{
612
+ name: formatMessage(_messages.helpDialogMessages.increaseElementSize),
613
+ type: 'media',
614
+ keymap: function keymap() {
615
+ return _keymaps.increaseMediaSize;
616
+ }
617
+ }, {
618
+ name: formatMessage(_messages.helpDialogMessages.decreaseElementSize),
619
+ type: 'media',
620
+ keymap: function keymap() {
621
+ return _keymaps.decreaseMediaSize;
622
+ }
623
+ }];
624
+ };
625
+ var focusTableResizeHandleFormatting = function focusTableResizeHandleFormatting(_ref7) {
626
+ var formatMessage = _ref7.formatMessage;
611
627
  return [{
612
628
  name: formatMessage(_messages.helpDialogMessages.focusTableResizeHandle),
613
629
  type: 'navigation',
@@ -616,8 +632,8 @@ var focusTableResizeHandleFormatting = function focusTableResizeHandleFormatting
616
632
  }
617
633
  }];
618
634
  };
619
- var openCellOptionsFormattingtoFormat = function openCellOptionsFormattingtoFormat(_ref7) {
620
- var formatMessage = _ref7.formatMessage;
635
+ var openCellOptionsFormattingtoFormat = function openCellOptionsFormattingtoFormat(_ref8) {
636
+ var formatMessage = _ref8.formatMessage;
621
637
  return [{
622
638
  name: formatMessage(_messages.helpDialogMessages.openCellOptions),
623
639
  type: 'image',
@@ -639,8 +655,8 @@ var imageAutoFormat = {
639
655
  , _messages.helpDialogMessages.altText), "](http://www.image.com)"));
640
656
  }
641
657
  };
642
- var quickInsertAutoFormat = function quickInsertAutoFormat(_ref8) {
643
- var formatMessage = _ref8.formatMessage;
658
+ var quickInsertAutoFormat = function quickInsertAutoFormat(_ref9) {
659
+ var formatMessage = _ref9.formatMessage;
644
660
  return {
645
661
  name: formatMessage(_messages.helpDialogMessages.quickInsert),
646
662
  type: 'quickInsert',
@@ -656,5 +672,5 @@ var getSupportedFormatting = exports.getSupportedFormatting = function getSuppor
656
672
  var supportedBySchema = formatting(intl).filter(function (format) {
657
673
  return schema.nodes[format.type] || schema.marks[format.type];
658
674
  });
659
- return [].concat((0, _toConsumableArray2.default)(aiEnabled && (0, _experiments.editorExperiment)('platform_editor_ai_quickstart_command', true) ? [quickInsertAskAI(intl)] : []), (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)));
675
+ return [].concat((0, _toConsumableArray2.default)(aiEnabled && (0, _experiments.editorExperiment)('platform_editor_ai_quickstart_command', true) ? [quickInsertAskAI(intl)] : []), (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)((0, _experiments.editorExperiment)('platform_editor_breakout_resizing', true) && (0, _platformFeatureFlags.fg)('platform_editor_breakout_resizing_hello_release') ? newResizeInformationFormatting(intl) : resizeInformationFormatting(intl)), (0, _toConsumableArray2.default)(openCellOptionsFormattingtoFormat(intl)));
660
676
  };
@@ -469,6 +469,17 @@ const resizeInformationFormatting = ({
469
469
  type: 'media',
470
470
  keymap: () => decreaseMediaSize
471
471
  }];
472
+ const newResizeInformationFormatting = ({
473
+ formatMessage
474
+ }) => [{
475
+ name: formatMessage(messages.increaseElementSize),
476
+ type: 'media',
477
+ keymap: () => increaseMediaSize
478
+ }, {
479
+ name: formatMessage(messages.decreaseElementSize),
480
+ type: 'media',
481
+ keymap: () => decreaseMediaSize
482
+ }];
472
483
  const focusTableResizeHandleFormatting = ({
473
484
  formatMessage
474
485
  }) => [{
@@ -506,5 +517,5 @@ const quickInsertAutoFormat = ({
506
517
  });
507
518
  export const getSupportedFormatting = (schema, intl, imageEnabled, quickInsertEnabled, aiEnabled) => {
508
519
  const supportedBySchema = formatting(intl).filter(format => schema.nodes[format.type] || schema.marks[format.type]);
509
- return [...(aiEnabled && editorExperiment('platform_editor_ai_quickstart_command', true) ? [quickInsertAskAI(intl)] : []), ...navigationKeymaps(intl), ...otherFormatting(intl), ...supportedBySchema, ...(imageEnabled ? [imageAutoFormat] : []), ...(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), ...focusTableResizeHandleFormatting(intl), ...resizeInformationFormatting(intl), ...openCellOptionsFormattingtoFormat(intl)];
520
+ return [...(aiEnabled && editorExperiment('platform_editor_ai_quickstart_command', true) ? [quickInsertAskAI(intl)] : []), ...navigationKeymaps(intl), ...otherFormatting(intl), ...supportedBySchema, ...(imageEnabled ? [imageAutoFormat] : []), ...(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), ...focusTableResizeHandleFormatting(intl), ...(editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release') ? newResizeInformationFormatting(intl) : resizeInformationFormatting(intl)), ...openCellOptionsFormattingtoFormat(intl)];
510
521
  };
@@ -598,8 +598,24 @@ var resizeInformationFormatting = function resizeInformationFormatting(_ref5) {
598
598
  }
599
599
  }];
600
600
  };
601
- var focusTableResizeHandleFormatting = function focusTableResizeHandleFormatting(_ref6) {
601
+ var newResizeInformationFormatting = function newResizeInformationFormatting(_ref6) {
602
602
  var formatMessage = _ref6.formatMessage;
603
+ return [{
604
+ name: formatMessage(messages.increaseElementSize),
605
+ type: 'media',
606
+ keymap: function keymap() {
607
+ return increaseMediaSize;
608
+ }
609
+ }, {
610
+ name: formatMessage(messages.decreaseElementSize),
611
+ type: 'media',
612
+ keymap: function keymap() {
613
+ return decreaseMediaSize;
614
+ }
615
+ }];
616
+ };
617
+ var focusTableResizeHandleFormatting = function focusTableResizeHandleFormatting(_ref7) {
618
+ var formatMessage = _ref7.formatMessage;
603
619
  return [{
604
620
  name: formatMessage(messages.focusTableResizeHandle),
605
621
  type: 'navigation',
@@ -608,8 +624,8 @@ var focusTableResizeHandleFormatting = function focusTableResizeHandleFormatting
608
624
  }
609
625
  }];
610
626
  };
611
- var openCellOptionsFormattingtoFormat = function openCellOptionsFormattingtoFormat(_ref7) {
612
- var formatMessage = _ref7.formatMessage;
627
+ var openCellOptionsFormattingtoFormat = function openCellOptionsFormattingtoFormat(_ref8) {
628
+ var formatMessage = _ref8.formatMessage;
613
629
  return [{
614
630
  name: formatMessage(messages.openCellOptions),
615
631
  type: 'image',
@@ -631,8 +647,8 @@ var imageAutoFormat = {
631
647
  , messages.altText), "](http://www.image.com)"));
632
648
  }
633
649
  };
634
- var quickInsertAutoFormat = function quickInsertAutoFormat(_ref8) {
635
- var formatMessage = _ref8.formatMessage;
650
+ var quickInsertAutoFormat = function quickInsertAutoFormat(_ref9) {
651
+ var formatMessage = _ref9.formatMessage;
636
652
  return {
637
653
  name: formatMessage(messages.quickInsert),
638
654
  type: 'quickInsert',
@@ -648,5 +664,5 @@ export var getSupportedFormatting = function getSupportedFormatting(schema, intl
648
664
  var supportedBySchema = formatting(intl).filter(function (format) {
649
665
  return schema.nodes[format.type] || schema.marks[format.type];
650
666
  });
651
- return [].concat(_toConsumableArray(aiEnabled && editorExperiment('platform_editor_ai_quickstart_command', true) ? [quickInsertAskAI(intl)] : []), _toConsumableArray(navigationKeymaps(intl)), _toConsumableArray(otherFormatting(intl)), _toConsumableArray(supportedBySchema), _toConsumableArray(imageEnabled ? [imageAutoFormat] : []), _toConsumableArray(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), _toConsumableArray(focusTableResizeHandleFormatting(intl)), _toConsumableArray(resizeInformationFormatting(intl)), _toConsumableArray(openCellOptionsFormattingtoFormat(intl)));
667
+ return [].concat(_toConsumableArray(aiEnabled && editorExperiment('platform_editor_ai_quickstart_command', true) ? [quickInsertAskAI(intl)] : []), _toConsumableArray(navigationKeymaps(intl)), _toConsumableArray(otherFormatting(intl)), _toConsumableArray(supportedBySchema), _toConsumableArray(imageEnabled ? [imageAutoFormat] : []), _toConsumableArray(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), _toConsumableArray(focusTableResizeHandleFormatting(intl)), _toConsumableArray(editorExperiment('platform_editor_breakout_resizing', true) && fg('platform_editor_breakout_resizing_hello_release') ? newResizeInformationFormatting(intl) : resizeInformationFormatting(intl)), _toConsumableArray(openCellOptionsFormattingtoFormat(intl)));
652
668
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-help-dialog",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "description": "Help Dialog plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  ".": "./src/index.ts"
34
34
  },
35
35
  "dependencies": {
36
- "@atlaskit/editor-common": "^106.1.0",
36
+ "@atlaskit/editor-common": "^106.3.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^2.3.0",
38
38
  "@atlaskit/editor-plugin-quick-insert": "^2.5.0",
39
39
  "@atlaskit/editor-prosemirror": "7.0.0",
@@ -44,8 +44,8 @@
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/primitives": "^14.8.0",
46
46
  "@atlaskit/theme": "^18.0.0",
47
- "@atlaskit/tmp-editor-statsig": "^5.7.0",
48
- "@atlaskit/tokens": "^5.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^5.13.0",
48
+ "@atlaskit/tokens": "^5.1.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",
51
51
  "react-intl-next": "npm:react-intl@^5.18.1",
@@ -93,6 +93,9 @@
93
93
  "platform-feature-flags": {
94
94
  "platform_editor_cmd_y_mac_redo_shortcut": {
95
95
  "type": "boolean"
96
+ },
97
+ "platform_editor_breakout_resizing_hello_release": {
98
+ "type": "boolean"
96
99
  }
97
100
  }
98
101
  }