@atlaskit/editor-plugin-help-dialog 6.0.2 → 6.0.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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/editor-plugin-help-dialog
2
2
 
3
+ ## 6.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`663926469ec70`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/663926469ec70) -
8
+ Switch to use fg() to check feature gate platform_editor_update_modal_close_button
9
+ - Updated dependencies
10
+
11
+ ## 6.0.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [`d24d26320c940`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d24d26320c940) -
16
+ FD-100510 clean up fg platform_editor_breakout_resizing_hello_release
17
+ - Updated dependencies
18
+
3
19
  ## 6.0.2
4
20
 
5
21
  ### Patch Changes
@@ -12,7 +12,7 @@ var _uiMenu = require("@atlaskit/editor-common/ui-menu");
12
12
  var _heading = _interopRequireDefault(require("@atlaskit/heading"));
13
13
  var _cross = _interopRequireDefault(require("@atlaskit/icon/core/migration/cross"));
14
14
  var _modalDialog = require("@atlaskit/modal-dialog");
15
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
15
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
16
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
17
17
  var _styles = require("./styles");
18
18
  /**
@@ -42,7 +42,7 @@ var ModalHeader = (0, _reactIntlNext.injectIntl)(function (_ref) {
42
42
  }, (0, _react.jsx)(_reactIntlNext.FormattedMessage
43
43
  // Ignored via go/ees005
44
44
  // eslint-disable-next-line react/jsx-props-no-spreading
45
- , _messages.helpDialogMessages.editorHelp)), onClose && (0, _expValEquals.expValEquals)('platform_editor_update_modal_close_button', 'isEnabled', true) ? (0, _react.jsx)("div", {
45
+ , _messages.helpDialogMessages.editorHelp)), onClose && (0, _platformFeatureFlags.fg)('platform_editor_update_modal_close_button') ? (0, _react.jsx)("div", {
46
46
  css: toolbarFocusStyles
47
47
  }, (0, _react.jsx)(_tooltip.default, {
48
48
  content: formatMessage(_messages.helpDialogMessages.closeHelpDialog),
@@ -674,5 +674,5 @@ var getSupportedFormatting = exports.getSupportedFormatting = function getSuppor
674
674
  var supportedBySchema = formatting(intl).filter(function (format) {
675
675
  return schema.nodes[format.type] || schema.marks[format.type];
676
676
  });
677
- 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)));
677
+ 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) ? newResizeInformationFormatting(intl) : resizeInformationFormatting(intl)), (0, _toConsumableArray2.default)(openCellOptionsFormattingtoFormat(intl)));
678
678
  };
@@ -10,7 +10,7 @@ import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
10
10
  import Heading from '@atlaskit/heading';
11
11
  import CrossIcon from '@atlaskit/icon/core/migration/cross';
12
12
  import { CloseButton } from '@atlaskit/modal-dialog';
13
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
+ import { fg } from '@atlaskit/platform-feature-flags';
14
14
  import Tooltip from '@atlaskit/tooltip';
15
15
  import { header, toolbarButton } from './styles';
16
16
  const toolbarFocusStyles = css({
@@ -37,7 +37,7 @@ const ModalHeader = injectIntl(({
37
37
  }, jsx(FormattedMessage
38
38
  // Ignored via go/ees005
39
39
  // eslint-disable-next-line react/jsx-props-no-spreading
40
- , messages.editorHelp)), onClose && expValEquals('platform_editor_update_modal_close_button', 'isEnabled', true) ? jsx("div", {
40
+ , messages.editorHelp)), onClose && fg('platform_editor_update_modal_close_button') ? jsx("div", {
41
41
  css: toolbarFocusStyles
42
42
  }, jsx(Tooltip, {
43
43
  content: formatMessage(messages.closeHelpDialog),
@@ -518,5 +518,5 @@ const quickInsertAutoFormat = ({
518
518
  });
519
519
  export const getSupportedFormatting = (schema, intl, imageEnabled, quickInsertEnabled, aiEnabled) => {
520
520
  const supportedBySchema = formatting(intl).filter(format => schema.nodes[format.type] || schema.marks[format.type]);
521
- 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)];
521
+ 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) ? newResizeInformationFormatting(intl) : resizeInformationFormatting(intl)), ...openCellOptionsFormattingtoFormat(intl)];
522
522
  };
@@ -10,7 +10,7 @@ import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
10
10
  import Heading from '@atlaskit/heading';
11
11
  import CrossIcon from '@atlaskit/icon/core/migration/cross';
12
12
  import { CloseButton } from '@atlaskit/modal-dialog';
13
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
+ import { fg } from '@atlaskit/platform-feature-flags';
14
14
  import Tooltip from '@atlaskit/tooltip';
15
15
  import { header, toolbarButton } from './styles';
16
16
  var toolbarFocusStyles = css({
@@ -34,7 +34,7 @@ var ModalHeader = injectIntl(function (_ref) {
34
34
  }, jsx(FormattedMessage
35
35
  // Ignored via go/ees005
36
36
  // eslint-disable-next-line react/jsx-props-no-spreading
37
- , messages.editorHelp)), onClose && expValEquals('platform_editor_update_modal_close_button', 'isEnabled', true) ? jsx("div", {
37
+ , messages.editorHelp)), onClose && fg('platform_editor_update_modal_close_button') ? jsx("div", {
38
38
  css: toolbarFocusStyles
39
39
  }, jsx(Tooltip, {
40
40
  content: formatMessage(messages.closeHelpDialog),
@@ -665,5 +665,5 @@ export var getSupportedFormatting = function getSupportedFormatting(schema, intl
665
665
  var supportedBySchema = formatting(intl).filter(function (format) {
666
666
  return schema.nodes[format.type] || schema.marks[format.type];
667
667
  });
668
- 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)));
668
+ 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) ? newResizeInformationFormatting(intl) : resizeInformationFormatting(intl)), _toConsumableArray(openCellOptionsFormattingtoFormat(intl)));
669
669
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-help-dialog",
3
- "version": "6.0.2",
3
+ "version": "6.0.4",
4
4
  "description": "Help Dialog plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,12 +34,12 @@
34
34
  "@atlaskit/editor-prosemirror": "7.0.0",
35
35
  "@atlaskit/editor-shared-styles": "^3.6.0",
36
36
  "@atlaskit/heading": "^5.2.0",
37
- "@atlaskit/icon": "^28.3.0",
37
+ "@atlaskit/icon": "^28.5.0",
38
38
  "@atlaskit/modal-dialog": "^14.4.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/primitives": "^14.15.0",
41
41
  "@atlaskit/theme": "^21.0.0",
42
- "@atlaskit/tmp-editor-statsig": "^13.0.0",
42
+ "@atlaskit/tmp-editor-statsig": "^13.5.0",
43
43
  "@atlaskit/tokens": "^6.4.0",
44
44
  "@atlaskit/tooltip": "^20.5.0",
45
45
  "@babel/runtime": "^7.0.0",
@@ -51,7 +51,7 @@
51
51
  "@testing-library/react": "^13.4.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "@atlaskit/editor-common": "^110.4.0",
54
+ "@atlaskit/editor-common": "^110.7.0",
55
55
  "react": "^18.2.0"
56
56
  },
57
57
  "techstack": {
@@ -91,10 +91,10 @@
91
91
  "platform_editor_cmd_y_mac_redo_shortcut": {
92
92
  "type": "boolean"
93
93
  },
94
- "platform_editor_breakout_resizing_hello_release": {
94
+ "platform_editor_fix_help_dialog_color_contrast": {
95
95
  "type": "boolean"
96
96
  },
97
- "platform_editor_fix_help_dialog_color_contrast": {
97
+ "platform_editor_update_modal_close_button": {
98
98
  "type": "boolean"
99
99
  }
100
100
  }