@atlaskit/editor-plugin-block-type 29.0.2 → 30.0.0

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,26 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 30.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`92fc57a354c33`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/92fc57a354c33) -
8
+ Clean up feature gate `platform_editor_toolbar_responsive_fixes`. The responsive toolbar behaviour
9
+ is now permanently enabled. Remove the obsolete `ToolbarWidths` and `ToolbarWidthsFullPage`
10
+ exports; consumers should use `ToolbarWidthsNext` and `ToolbarWidthsFullPageNext`. Also remove the
11
+ unread `BlockTypePluginOptions.isUndoRedoButtonsEnabled` option, which no longer affects toolbar
12
+ sizing.
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
18
+ ## 29.0.3
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies
23
+
3
24
  ## 29.0.2
4
25
 
5
26
  ### Patch Changes
@@ -119,10 +119,7 @@ var blockTypePlugin = exports.blockTypePlugin = function blockTypePlugin(_ref3)
119
119
  toolbarSize = _ref4.toolbarSize,
120
120
  disabled = _ref4.disabled,
121
121
  isToolbarReducedSpacing = _ref4.isToolbarReducedSpacing;
122
- var isSmall = options && options.isUndoRedoButtonsEnabled ? toolbarSize < _types.ToolbarSize.XXL : toolbarSize < _types.ToolbarSize.XL;
123
- if ((0, _fg.fg)('platform_editor_toolbar_responsive_fixes')) {
124
- isSmall = toolbarSize < _types.ToolbarSize.XXL;
125
- }
122
+ var isSmall = toolbarSize < _types.ToolbarSize.XXL;
126
123
  return /*#__PURE__*/_react.default.createElement(_PrimaryToolbarComponent.PrimaryToolbarComponent, {
127
124
  isSmall: isSmall,
128
125
  disabled: disabled,
@@ -108,10 +108,7 @@ const blockTypePlugin = ({
108
108
  disabled,
109
109
  isToolbarReducedSpacing
110
110
  }) => {
111
- let isSmall = options && options.isUndoRedoButtonsEnabled ? toolbarSize < ToolbarSize.XXL : toolbarSize < ToolbarSize.XL;
112
- if (fg('platform_editor_toolbar_responsive_fixes')) {
113
- isSmall = toolbarSize < ToolbarSize.XXL;
114
- }
111
+ const isSmall = toolbarSize < ToolbarSize.XXL;
115
112
  return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
116
113
  isSmall: isSmall,
117
114
  disabled: disabled,
@@ -112,10 +112,7 @@ var blockTypePlugin = function blockTypePlugin(_ref3) {
112
112
  toolbarSize = _ref4.toolbarSize,
113
113
  disabled = _ref4.disabled,
114
114
  isToolbarReducedSpacing = _ref4.isToolbarReducedSpacing;
115
- var isSmall = options && options.isUndoRedoButtonsEnabled ? toolbarSize < ToolbarSize.XXL : toolbarSize < ToolbarSize.XL;
116
- if (fg('platform_editor_toolbar_responsive_fixes')) {
117
- isSmall = toolbarSize < ToolbarSize.XXL;
118
- }
115
+ var isSmall = toolbarSize < ToolbarSize.XXL;
119
116
  return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
120
117
  isSmall: isSmall,
121
118
  disabled: disabled,
@@ -34,6 +34,5 @@ export interface BlockTypePluginOptions {
34
34
  */
35
35
  allowFontSize?: boolean;
36
36
  includeBlockQuoteAsTextstyleOption?: boolean;
37
- isUndoRedoButtonsEnabled?: boolean;
38
37
  lastNodeMustBeParagraph?: boolean;
39
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "29.0.2",
3
+ "version": "30.0.0",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,14 +23,14 @@
23
23
  "dependencies": {
24
24
  "@atlaskit/adf-schema": "^57.7.0",
25
25
  "@atlaskit/css": "^1.1.0",
26
- "@atlaskit/editor-plugin-analytics": "^25.0.0",
27
- "@atlaskit/editor-plugin-block-menu": "^24.0.0",
28
- "@atlaskit/editor-plugin-interaction": "^39.0.0",
29
- "@atlaskit/editor-plugin-list": "^27.0.0",
30
- "@atlaskit/editor-plugin-primary-toolbar": "^26.0.0",
31
- "@atlaskit/editor-plugin-selection": "^25.0.0",
32
- "@atlaskit/editor-plugin-selection-toolbar": "^26.0.0",
33
- "@atlaskit/editor-plugin-toolbar": "^22.0.0",
26
+ "@atlaskit/editor-plugin-analytics": "^26.0.0",
27
+ "@atlaskit/editor-plugin-block-menu": "^25.0.0",
28
+ "@atlaskit/editor-plugin-interaction": "^40.0.0",
29
+ "@atlaskit/editor-plugin-list": "^28.0.0",
30
+ "@atlaskit/editor-plugin-primary-toolbar": "^27.0.0",
31
+ "@atlaskit/editor-plugin-selection": "^26.0.0",
32
+ "@atlaskit/editor-plugin-selection-toolbar": "^27.0.0",
33
+ "@atlaskit/editor-plugin-toolbar": "^23.0.0",
34
34
  "@atlaskit/editor-prosemirror": "^9.0.0",
35
35
  "@atlaskit/editor-shared-styles": "^4.3.0",
36
36
  "@atlaskit/editor-tables": "^3.2.0",
@@ -43,14 +43,14 @@
43
43
  "@atlaskit/primitives": "^22.5.0",
44
44
  "@atlaskit/prosemirror-history": "^1.3.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^4.1.0",
46
- "@atlaskit/tmp-editor-statsig": "^226.0.0",
47
- "@atlaskit/tokens": "^20.3.0",
46
+ "@atlaskit/tmp-editor-statsig": "^227.0.0",
47
+ "@atlaskit/tokens": "^20.4.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@compiled/react": "^1.0.2",
50
50
  "@emotion/react": "^11.7.1"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^129.1.0",
53
+ "@atlaskit/editor-common": "^130.0.0",
54
54
  "react": "^18.2.0 || ^19.2.0",
55
55
  "react-dom": "^18.2.0 || ^19.2.0",
56
56
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -64,9 +64,6 @@
64
64
  "wait-for-expect": "^1.2.0"
65
65
  },
66
66
  "platform-feature-flags": {
67
- "platform_editor_toolbar_responsive_fixes": {
68
- "type": "boolean"
69
- },
70
67
  "platform_editor_adf_with_localid": {
71
68
  "type": "boolean"
72
69
  }