@atlaskit/editor-plugin-block-type 5.1.20 → 5.1.21
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,14 @@
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
2
2
|
|
3
|
+
## 5.1.21
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#161023](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/161023)
|
8
|
+
[`e7a5bec40dfc3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e7a5bec40dfc3) -
|
9
|
+
Fix block type icon when disabled.
|
10
|
+
- Updated dependencies
|
11
|
+
|
3
12
|
## 5.1.20
|
4
13
|
|
5
14
|
### Patch Changes
|
@@ -289,7 +289,8 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
|
|
289
289
|
onKeyDown: this.handleTriggerByKeyboard,
|
290
290
|
formatMessage: formatMessage,
|
291
291
|
"aria-expanded": active,
|
292
|
-
blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
|
292
|
+
blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name,
|
293
|
+
blockTypeIcon: (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_10') ? currentIcon || defaultIcon : undefined
|
293
294
|
}), !(api !== null && api !== void 0 && api.primaryToolbar) && (0, _react2.jsx)("span", {
|
294
295
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
295
296
|
css: _styles.separatorStyles
|
@@ -262,7 +262,8 @@ class ToolbarBlockType extends React.PureComponent {
|
|
262
262
|
onKeyDown: this.handleTriggerByKeyboard,
|
263
263
|
formatMessage: formatMessage,
|
264
264
|
"aria-expanded": active,
|
265
|
-
blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
|
265
|
+
blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name,
|
266
|
+
blockTypeIcon: fg('platform_editor_controls_patch_10') ? currentIcon || defaultIcon : undefined
|
266
267
|
}), !(api !== null && api !== void 0 && api.primaryToolbar) && jsx("span", {
|
267
268
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
268
269
|
css: separatorStyles
|
@@ -285,7 +285,8 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
|
|
285
285
|
onKeyDown: this.handleTriggerByKeyboard,
|
286
286
|
formatMessage: formatMessage,
|
287
287
|
"aria-expanded": active,
|
288
|
-
blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
|
288
|
+
blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name,
|
289
|
+
blockTypeIcon: fg('platform_editor_controls_patch_10') ? currentIcon || defaultIcon : undefined
|
289
290
|
}), !(api !== null && api !== void 0 && api.primaryToolbar) && jsx("span", {
|
290
291
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
291
292
|
css: separatorStyles
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
3
|
-
"version": "5.1.
|
3
|
+
"version": "5.1.21",
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
5
5
|
"author": "Atlassian Pty Ltd",
|
6
6
|
"license": "Apache-2.0",
|
@@ -36,7 +36,7 @@
|
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
38
|
"@atlaskit/adf-schema": "^47.6.0",
|
39
|
-
"@atlaskit/editor-common": "^105.
|
39
|
+
"@atlaskit/editor-common": "^105.11.0",
|
40
40
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
41
41
|
"@atlaskit/editor-plugin-primary-toolbar": "^3.2.0",
|
42
42
|
"@atlaskit/editor-plugin-selection-toolbar": "^3.6.0",
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"@atlaskit/primitives": "^14.8.0",
|
50
50
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
51
51
|
"@atlaskit/theme": "^18.0.0",
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^5.1.0",
|
53
53
|
"@atlaskit/tokens": "^4.9.0",
|
54
54
|
"@babel/runtime": "^7.0.0",
|
55
55
|
"@emotion/react": "^11.7.1"
|
@@ -114,6 +114,9 @@
|
|
114
114
|
"platform_editor_nested_dnd_styles_changes": {
|
115
115
|
"type": "boolean"
|
116
116
|
},
|
117
|
+
"platform_editor_controls_patch_10": {
|
118
|
+
"type": "boolean"
|
119
|
+
},
|
117
120
|
"platform_editor_comments_toolbar_responsiveness": {
|
118
121
|
"type": "boolean"
|
119
122
|
},
|