@atlaskit/editor-plugin-text-formatting 4.0.3 → 4.0.5

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,23 @@
1
1
  # @atlaskit/editor-plugin-text-formatting
2
2
 
3
+ ## 4.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c0113eeccb2df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c0113eeccb2df) -
8
+ [ux] ED-29120 add a new config option for default editor preset
9
+ (`toolbar.enableNewToolbarExperience`) which allows the new toolbar to be disabled. This is needed
10
+ for editors that can't be excluded at the experiment level.
11
+ - Updated dependencies
12
+
13
+ ## 4.0.4
14
+
15
+ ### Patch Changes
16
+
17
+ - [`555ac8f256674`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/555ac8f256674) -
18
+ Update menu item icon size to small, tweak paddings and font styles
19
+ - Updated dependencies
20
+
3
21
  ## 4.0.3
4
22
 
5
23
  ### Patch Changes
@@ -32,7 +32,7 @@ var textFormattingPlugin = exports.textFormattingPlugin = function textFormattin
32
32
  var _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics0, _api$analytics1, _api$analytics10, _api$analytics11;
33
33
  var options = _ref.config,
34
34
  api = _ref.api;
35
- var isToolbarAIFCEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true);
35
+ var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true);
36
36
  var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
37
37
  var editorView = _ref2.editorView,
38
38
  popupsMountPoint = _ref2.popupsMountPoint,
@@ -43,6 +43,7 @@ var FormatMenuItem = exports.FormatMenuItem = function FormatMenuItem(_ref) {
43
43
  }
44
44
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
45
45
  elemBefore: /*#__PURE__*/_react.default.createElement(Icon, {
46
+ size: "small",
46
47
  label: ""
47
48
  }),
48
49
  elemAfter: shortcutContent && /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarKeyboardShortcutHint, {
@@ -24,7 +24,7 @@ export const textFormattingPlugin = ({
24
24
  api
25
25
  }) => {
26
26
  var _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics0, _api$analytics1, _api$analytics10, _api$analytics11;
27
- const isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true);
27
+ const isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true);
28
28
  const primaryToolbarComponent = ({
29
29
  editorView,
30
30
  popupsMountPoint,
@@ -38,6 +38,7 @@ export const FormatMenuItem = ({
38
38
  }
39
39
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
40
40
  elemBefore: /*#__PURE__*/React.createElement(Icon, {
41
+ size: "small",
41
42
  label: ""
42
43
  }),
43
44
  elemAfter: shortcutContent && /*#__PURE__*/React.createElement(ToolbarKeyboardShortcutHint, {
@@ -26,7 +26,7 @@ export var textFormattingPlugin = function textFormattingPlugin(_ref) {
26
26
  var _api$analytics7, _api$analytics8, _api$analytics9, _api$analytics0, _api$analytics1, _api$analytics10, _api$analytics11;
27
27
  var options = _ref.config,
28
28
  api = _ref.api;
29
- var isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true);
29
+ var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true);
30
30
  var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
31
31
  var editorView = _ref2.editorView,
32
32
  popupsMountPoint = _ref2.popupsMountPoint,
@@ -36,6 +36,7 @@ export var FormatMenuItem = function FormatMenuItem(_ref) {
36
36
  }
37
37
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
38
38
  elemBefore: /*#__PURE__*/React.createElement(Icon, {
39
+ size: "small",
39
40
  label: ""
40
41
  }),
41
42
  elemAfter: shortcutContent && /*#__PURE__*/React.createElement(ToolbarKeyboardShortcutHint, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "description": "Text-formatting plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/editor-plugin-base": "^5.0.0",
35
35
  "@atlaskit/editor-plugin-primary-toolbar": "^5.0.0",
36
36
  "@atlaskit/editor-plugin-selection-toolbar": "^5.0.0",
37
- "@atlaskit/editor-plugin-toolbar": "^1.1.0",
37
+ "@atlaskit/editor-plugin-toolbar": "^1.2.0",
38
38
  "@atlaskit/editor-prosemirror": "7.0.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.6.0",
40
40
  "@atlaskit/editor-tables": "^2.9.0",
@@ -43,14 +43,14 @@
43
43
  "@atlaskit/icon": "^28.1.0",
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^3.4.0",
46
- "@atlaskit/tmp-editor-statsig": "^12.5.0",
47
- "@atlaskit/tokens": "^6.2.0",
46
+ "@atlaskit/tmp-editor-statsig": "^12.8.0",
47
+ "@atlaskit/tokens": "^6.3.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": "^108.3.0",
53
+ "@atlaskit/editor-common": "^108.6.0",
54
54
  "react": "^18.2.0"
55
55
  },
56
56
  "devDependencies": {