@atlaskit/editor-plugin-block-type 5.0.1 → 5.0.2
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-block-type
|
2
2
|
|
3
|
+
## 5.0.2
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#120931](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120931)
|
8
|
+
[`624b97c021fea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/624b97c021fea) -
|
9
|
+
[ux] ED-26676 revert to existing primary toolbar components
|
10
|
+
|
3
11
|
## 5.0.1
|
4
12
|
|
5
13
|
### Patch Changes
|
@@ -107,13 +107,6 @@ var blockTypePlugin = exports.blockTypePlugin = function blockTypePlugin(_ref3)
|
|
107
107
|
toolbarSize = _ref4.toolbarSize,
|
108
108
|
disabled = _ref4.disabled,
|
109
109
|
isToolbarReducedSpacing = _ref4.isToolbarReducedSpacing;
|
110
|
-
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
111
|
-
exposure: true
|
112
|
-
})) {
|
113
|
-
return /*#__PURE__*/_react.default.createElement(_FloatingToolbarComponent.FloatingToolbarComponent, {
|
114
|
-
api: api
|
115
|
-
});
|
116
|
-
}
|
117
110
|
var isSmall = options && options.isUndoRedoButtonsEnabled ? toolbarSize < _types.ToolbarSize.XXL : toolbarSize < _types.ToolbarSize.XL;
|
118
111
|
if ((0, _platformFeatureFlags.fg)('platform_editor_toolbar_responsive_fixes')) {
|
119
112
|
isSmall = toolbarSize < _types.ToolbarSize.XXL;
|
@@ -99,13 +99,6 @@ const blockTypePlugin = ({
|
|
99
99
|
disabled,
|
100
100
|
isToolbarReducedSpacing
|
101
101
|
}) => {
|
102
|
-
if (editorExperiment('platform_editor_controls', 'variant1', {
|
103
|
-
exposure: true
|
104
|
-
})) {
|
105
|
-
return /*#__PURE__*/React.createElement(FloatingToolbarComponent, {
|
106
|
-
api: api
|
107
|
-
});
|
108
|
-
}
|
109
102
|
let isSmall = options && options.isUndoRedoButtonsEnabled ? toolbarSize < ToolbarSize.XXL : toolbarSize < ToolbarSize.XL;
|
110
103
|
if (fg('platform_editor_toolbar_responsive_fixes')) {
|
111
104
|
isSmall = toolbarSize < ToolbarSize.XXL;
|
@@ -100,13 +100,6 @@ var blockTypePlugin = function blockTypePlugin(_ref3) {
|
|
100
100
|
toolbarSize = _ref4.toolbarSize,
|
101
101
|
disabled = _ref4.disabled,
|
102
102
|
isToolbarReducedSpacing = _ref4.isToolbarReducedSpacing;
|
103
|
-
if (editorExperiment('platform_editor_controls', 'variant1', {
|
104
|
-
exposure: true
|
105
|
-
})) {
|
106
|
-
return /*#__PURE__*/React.createElement(FloatingToolbarComponent, {
|
107
|
-
api: api
|
108
|
-
});
|
109
|
-
}
|
110
103
|
var isSmall = options && options.isUndoRedoButtonsEnabled ? toolbarSize < ToolbarSize.XXL : toolbarSize < ToolbarSize.XL;
|
111
104
|
if (fg('platform_editor_toolbar_responsive_fixes')) {
|
112
105
|
isSmall = toolbarSize < ToolbarSize.XXL;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
3
|
-
"version": "5.0.
|
3
|
+
"version": "5.0.2",
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
5
5
|
"author": "Atlassian Pty Ltd",
|
6
6
|
"license": "Apache-2.0",
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
50
50
|
"@atlaskit/theme": "^17.0.0",
|
51
51
|
"@atlaskit/tmp-editor-statsig": "^3.3.0",
|
52
|
-
"@atlaskit/tokens": "^4.
|
52
|
+
"@atlaskit/tokens": "^4.3.0",
|
53
53
|
"@babel/runtime": "^7.0.0",
|
54
54
|
"@emotion/react": "^11.7.1"
|
55
55
|
},
|