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

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,21 @@
1
1
  # @atlaskit/editor-plugin-help-dialog
2
2
 
3
+ ## 1.2.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.2.14
10
+
11
+ ### Patch Changes
12
+
13
+ - [#119412](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119412)
14
+ [`a714be7c47d68`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a714be7c47d68) -
15
+ [ux] [ED-23047] Remove FF platform.editor.text-alignment-keyboard-shortcuts and make feature
16
+ flagged functionality default
17
+ - Updated dependencies
18
+
3
19
  ## 1.2.13
4
20
 
5
21
  ### Patch Changes
@@ -291,7 +291,7 @@ var formatting = exports.formatting = function formatting(_ref2) {
291
291
  keymap: function keymap() {
292
292
  return _keymaps.alignLeft;
293
293
  }
294
- }].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.getBooleanFF)('platform.editor.text-alignment-keyboard-shortcuts') ? [{
294
+ }, {
295
295
  name: formatMessage(_messages.alignmentMessages.alignCenter),
296
296
  type: 'alignment',
297
297
  keymap: function keymap() {
@@ -303,7 +303,7 @@ var formatting = exports.formatting = function formatting(_ref2) {
303
303
  keymap: function keymap() {
304
304
  return _keymaps.alignRight;
305
305
  }
306
- }] : []));
306
+ }];
307
307
  };
308
308
  var otherFormatting = function otherFormatting(_ref3) {
309
309
  var formatMessage = _ref3.formatMessage;
@@ -397,7 +397,7 @@ var otherFormatting = function otherFormatting(_ref3) {
397
397
  }, "\u2193")))
398
398
  );
399
399
  }
400
- }].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-help-dialog-shortcut-keys-position_aghfg') ? [{
400
+ }].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform.editor.a11y-help-dialog-shortcut-keys-position_aghfg') ? [{
401
401
  name: formatMessage(_messages.helpDialogMessages.InsertTableColumn),
402
402
  type: 'table',
403
403
  autoFormatting: function autoFormatting() {
@@ -5,7 +5,7 @@ import { FormattedMessage } from 'react-intl-next';
5
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';
6
6
  import { alignmentMessages, annotationMessages, blockTypeMessages, listMessages, helpDialogMessages as messages, toolbarInsertBlockMessages, toolbarMessages, undoRedoMessages } from '@atlaskit/editor-common/messages';
7
7
  import { browser } from '@atlaskit/editor-common/utils';
8
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { codeLg, codeMd, codeSm, shortcutsArray } from './styles';
10
10
  const navigationKeymaps = ({
11
11
  formatMessage
@@ -197,7 +197,7 @@ export const formatting = ({
197
197
  name: formatMessage(alignmentMessages.alignLeft),
198
198
  type: 'alignment',
199
199
  keymap: () => alignLeft
200
- }, ...(getBooleanFF('platform.editor.text-alignment-keyboard-shortcuts') ? [{
200
+ }, {
201
201
  name: formatMessage(alignmentMessages.alignCenter),
202
202
  type: 'alignment',
203
203
  keymap: () => alignCenter
@@ -205,7 +205,7 @@ export const formatting = ({
205
205
  name: formatMessage(alignmentMessages.alignRight),
206
206
  type: 'alignment',
207
207
  keymap: () => alignRight
208
- }] : [])];
208
+ }];
209
209
  const otherFormatting = ({
210
210
  formatMessage
211
211
  }) => [{
@@ -280,7 +280,7 @@ const otherFormatting = ({
280
280
  }, "Shift"), ' + ', jsx("span", {
281
281
  css: codeSm
282
282
  }, "\u2193")))
283
- }, ...(getBooleanFF('platform.editor.a11y-help-dialog-shortcut-keys-position_aghfg') ? [{
283
+ }, ...(fg('platform.editor.a11y-help-dialog-shortcut-keys-position_aghfg') ? [{
284
284
  name: formatMessage(messages.InsertTableColumn),
285
285
  type: 'table',
286
286
  autoFormatting: () =>
@@ -6,7 +6,7 @@ import { FormattedMessage } from 'react-intl-next';
6
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';
7
7
  import { alignmentMessages, annotationMessages, blockTypeMessages, listMessages, helpDialogMessages as messages, toolbarInsertBlockMessages, toolbarMessages, undoRedoMessages } from '@atlaskit/editor-common/messages';
8
8
  import { browser } from '@atlaskit/editor-common/utils';
9
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
10
10
  import { codeLg, codeMd, codeSm, shortcutsArray } from './styles';
11
11
  var navigationKeymaps = function navigationKeymaps(_ref) {
12
12
  var formatMessage = _ref.formatMessage;
@@ -283,7 +283,7 @@ export var formatting = function formatting(_ref2) {
283
283
  keymap: function keymap() {
284
284
  return alignLeft;
285
285
  }
286
- }].concat(_toConsumableArray(getBooleanFF('platform.editor.text-alignment-keyboard-shortcuts') ? [{
286
+ }, {
287
287
  name: formatMessage(alignmentMessages.alignCenter),
288
288
  type: 'alignment',
289
289
  keymap: function keymap() {
@@ -295,7 +295,7 @@ export var formatting = function formatting(_ref2) {
295
295
  keymap: function keymap() {
296
296
  return alignRight;
297
297
  }
298
- }] : []));
298
+ }];
299
299
  };
300
300
  var otherFormatting = function otherFormatting(_ref3) {
301
301
  var formatMessage = _ref3.formatMessage;
@@ -389,7 +389,7 @@ var otherFormatting = function otherFormatting(_ref3) {
389
389
  }, "\u2193")))
390
390
  );
391
391
  }
392
- }].concat(_toConsumableArray(getBooleanFF('platform.editor.a11y-help-dialog-shortcut-keys-position_aghfg') ? [{
392
+ }].concat(_toConsumableArray(fg('platform.editor.a11y-help-dialog-shortcut-keys-position_aghfg') ? [{
393
393
  name: formatMessage(messages.InsertTableColumn),
394
394
  type: 'table',
395
395
  autoFormatting: function autoFormatting() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-help-dialog",
3
- "version": "1.2.13",
3
+ "version": "1.2.15",
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": "^84.2.0",
35
+ "@atlaskit/editor-common": "^86.0.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
- "@atlaskit/editor-shared-styles": "^2.12.0",
39
+ "@atlaskit/editor-shared-styles": "^2.13.0",
40
40
  "@atlaskit/icon": "^22.6.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.53.0",
44
+ "@atlaskit/tokens": "^1.55.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,9 +84,6 @@
84
84
  }
85
85
  },
86
86
  "platform-feature-flags": {
87
- "platform.editor.text-alignment-keyboard-shortcuts": {
88
- "type": "boolean"
89
- },
90
87
  "platform.editor.a11y-help-dialog-shortcut-keys-position_aghfg": {
91
88
  "type": "boolean"
92
89
  }