@atlaskit/editor-plugin-text-formatting 7.2.2 → 7.2.3

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,13 @@
1
1
  # @atlaskit/editor-plugin-text-formatting
2
2
 
3
+ ## 7.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3d0b3f8b4d802`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3d0b3f8b4d802) -
8
+ Remove platform_editor_toolbar_aifc_responsive experiment
9
+ - Updated dependencies
10
+
3
11
  ## 7.2.2
4
12
 
5
13
  ### Patch Changes
@@ -10,7 +10,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
10
10
  var _react = _interopRequireDefault(require("react"));
11
11
  var _toolbar = require("@atlaskit/editor-common/toolbar");
12
12
  var _editorToolbar = require("@atlaskit/editor-toolbar");
13
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
14
13
  var _Component = require("./Component");
15
14
  var _utils = require("./utils");
16
15
  var getFormatMenuItems = exports.getFormatMenuItems = function getFormatMenuItems(api) {
@@ -75,12 +74,12 @@ var textFormattingMenuGroup = exports.textFormattingMenuGroup = function textFor
75
74
  type: _toolbar.TEXT_FORMATTING_MENU.type,
76
75
  key: _toolbar.TEXT_FORMATTING_MENU.key,
77
76
  rank: _toolbar.TEXT_FORMAT_MENU_RANK[_toolbar.TEXT_FORMATTING_MENU_SECTION.key]
78
- }].concat((0, _toConsumableArray2.default)((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
77
+ }, {
79
78
  type: _toolbar.TEXT_COLLAPSED_MENU.type,
80
79
  key: _toolbar.TEXT_COLLAPSED_MENU.key,
81
80
  rank: _toolbar.TEXT_COLLAPSED_MENU_RANK[_toolbar.TEXT_FORMATTING_MENU_SECTION.key]
82
- }] : [])),
83
- component: (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? _Component.MenuSection : undefined
81
+ }],
82
+ component: _Component.MenuSection
84
83
  }].concat((0, _toConsumableArray2.default)(getFormatMenuItems(api)), [{
85
84
  type: _toolbar.CLEAR_FORMARTTING_MENU_SECTION.type,
86
85
  key: _toolbar.CLEAR_FORMARTTING_MENU_SECTION.key,
@@ -88,11 +87,11 @@ var textFormattingMenuGroup = exports.textFormattingMenuGroup = function textFor
88
87
  type: _toolbar.TEXT_FORMATTING_MENU.type,
89
88
  key: _toolbar.TEXT_FORMATTING_MENU.key,
90
89
  rank: _toolbar.TEXT_FORMAT_MENU_RANK[_toolbar.CLEAR_FORMARTTING_MENU_SECTION.key]
91
- }].concat((0, _toConsumableArray2.default)((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
90
+ }, {
92
91
  type: _toolbar.TEXT_COLLAPSED_MENU.type,
93
92
  key: _toolbar.TEXT_COLLAPSED_MENU.key,
94
93
  rank: _toolbar.TEXT_COLLAPSED_MENU_RANK[_toolbar.CLEAR_FORMARTTING_MENU_SECTION.key]
95
- }] : [])),
94
+ }],
96
95
  component: function component(_ref5) {
97
96
  var children = _ref5.children;
98
97
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItemSection, {
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { CLEAR_FORMARTTING_MENU_SECTION, CLEAR_FORMATTING_MENU_ITEM, TEXT_FORMATTING_MENU, TEXT_FORMATTING_MENU_SECTION, TEXT_FORMATTING_GROUP, TEXT_FORMATTING_GROUP_COLLAPSED, TEXT_FORMATTING_GROUP_INLINE, TEXT_FORMATTING_HERO_BUTTON, TEXT_FORMAT_GROUP_RANK, TEXT_FORMAT_MENU_RANK, CLEAR_FORMARTTING_MENU_SECTION_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar';
3
3
  import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
  import { ClearFormatMenuItem, MoreFormattingMenu, MenuSection, FormatMenuItem } from './Component';
6
5
  import { formatOptions } from './utils';
7
6
  export const getFormatMenuItems = api => {
@@ -65,12 +64,12 @@ export const textFormattingMenuGroup = api => [{
65
64
  type: TEXT_FORMATTING_MENU.type,
66
65
  key: TEXT_FORMATTING_MENU.key,
67
66
  rank: TEXT_FORMAT_MENU_RANK[TEXT_FORMATTING_MENU_SECTION.key]
68
- }, ...(expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
67
+ }, {
69
68
  type: TEXT_COLLAPSED_MENU.type,
70
69
  key: TEXT_COLLAPSED_MENU.key,
71
70
  rank: TEXT_COLLAPSED_MENU_RANK[TEXT_FORMATTING_MENU_SECTION.key]
72
- }] : [])],
73
- component: expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? MenuSection : undefined
71
+ }],
72
+ component: MenuSection
74
73
  }, ...getFormatMenuItems(api), {
75
74
  type: CLEAR_FORMARTTING_MENU_SECTION.type,
76
75
  key: CLEAR_FORMARTTING_MENU_SECTION.key,
@@ -78,11 +77,11 @@ export const textFormattingMenuGroup = api => [{
78
77
  type: TEXT_FORMATTING_MENU.type,
79
78
  key: TEXT_FORMATTING_MENU.key,
80
79
  rank: TEXT_FORMAT_MENU_RANK[CLEAR_FORMARTTING_MENU_SECTION.key]
81
- }, ...(expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
80
+ }, {
82
81
  type: TEXT_COLLAPSED_MENU.type,
83
82
  key: TEXT_COLLAPSED_MENU.key,
84
83
  rank: TEXT_COLLAPSED_MENU_RANK[CLEAR_FORMARTTING_MENU_SECTION.key]
85
- }] : [])],
84
+ }],
86
85
  component: ({
87
86
  children
88
87
  }) => {
@@ -3,7 +3,6 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import React from 'react';
4
4
  import { CLEAR_FORMARTTING_MENU_SECTION, CLEAR_FORMATTING_MENU_ITEM, TEXT_FORMATTING_MENU, TEXT_FORMATTING_MENU_SECTION, TEXT_FORMATTING_GROUP, TEXT_FORMATTING_GROUP_COLLAPSED, TEXT_FORMATTING_GROUP_INLINE, TEXT_FORMATTING_HERO_BUTTON, TEXT_FORMAT_GROUP_RANK, TEXT_FORMAT_MENU_RANK, CLEAR_FORMARTTING_MENU_SECTION_RANK, TEXT_COLLAPSED_MENU_RANK, TEXT_COLLAPSED_MENU } from '@atlaskit/editor-common/toolbar';
5
5
  import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
6
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
6
  import { ClearFormatMenuItem, MoreFormattingMenu, MenuSection, FormatMenuItem } from './Component';
8
7
  import { formatOptions } from './utils';
9
8
  export var getFormatMenuItems = function getFormatMenuItems(api) {
@@ -68,12 +67,12 @@ export var textFormattingMenuGroup = function textFormattingMenuGroup(api) {
68
67
  type: TEXT_FORMATTING_MENU.type,
69
68
  key: TEXT_FORMATTING_MENU.key,
70
69
  rank: TEXT_FORMAT_MENU_RANK[TEXT_FORMATTING_MENU_SECTION.key]
71
- }].concat(_toConsumableArray(expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
70
+ }, {
72
71
  type: TEXT_COLLAPSED_MENU.type,
73
72
  key: TEXT_COLLAPSED_MENU.key,
74
73
  rank: TEXT_COLLAPSED_MENU_RANK[TEXT_FORMATTING_MENU_SECTION.key]
75
- }] : [])),
76
- component: expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? MenuSection : undefined
74
+ }],
75
+ component: MenuSection
77
76
  }].concat(_toConsumableArray(getFormatMenuItems(api)), [{
78
77
  type: CLEAR_FORMARTTING_MENU_SECTION.type,
79
78
  key: CLEAR_FORMARTTING_MENU_SECTION.key,
@@ -81,11 +80,11 @@ export var textFormattingMenuGroup = function textFormattingMenuGroup(api) {
81
80
  type: TEXT_FORMATTING_MENU.type,
82
81
  key: TEXT_FORMATTING_MENU.key,
83
82
  rank: TEXT_FORMAT_MENU_RANK[CLEAR_FORMARTTING_MENU_SECTION.key]
84
- }].concat(_toConsumableArray(expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true) ? [{
83
+ }, {
85
84
  type: TEXT_COLLAPSED_MENU.type,
86
85
  key: TEXT_COLLAPSED_MENU.key,
87
86
  rank: TEXT_COLLAPSED_MENU_RANK[CLEAR_FORMARTTING_MENU_SECTION.key]
88
- }] : [])),
87
+ }],
89
88
  component: function component(_ref5) {
90
89
  var children = _ref5.children;
91
90
  return /*#__PURE__*/React.createElement(ToolbarDropdownItemSection, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "7.2.2",
3
+ "version": "7.2.3",
4
4
  "description": "Text-formatting plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,14 +43,14 @@
43
43
  "@atlaskit/icon": "^30.0.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
46
- "@atlaskit/tmp-editor-statsig": "^16.30.0",
46
+ "@atlaskit/tmp-editor-statsig": "^16.34.0",
47
47
  "@atlaskit/tokens": "^10.1.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@emotion/react": "^11.7.1",
50
50
  "react-intl-next": "npm:react-intl@^5.18.1"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^111.8.0",
53
+ "@atlaskit/editor-common": "^111.9.0",
54
54
  "react": "^18.2.0"
55
55
  },
56
56
  "devDependencies": {