@atlaskit/editor-plugin-code-block 5.0.2 → 5.0.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-code-block
|
|
2
2
|
|
|
3
|
+
## 5.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#185723](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/185723)
|
|
8
|
+
[`751aeb4580469`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/751aeb4580469) -
|
|
9
|
+
ED-28315 clean up fg platform_editor_controls_patch_13
|
|
10
|
+
|
|
3
11
|
## 5.0.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -103,7 +103,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig() {
|
|
|
103
103
|
tabIndex: null
|
|
104
104
|
}, separator];
|
|
105
105
|
var copyAndDeleteButtonMenuItems = [];
|
|
106
|
-
if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1')
|
|
106
|
+
if ((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1')) {
|
|
107
107
|
var overflowMenuOptions = [{
|
|
108
108
|
title: formatMessage(_messages.default.delete),
|
|
109
109
|
icon: (0, _delete.default)({
|
|
@@ -173,7 +173,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig() {
|
|
|
173
173
|
return (0, _utils.findDomRefAtPos)(pos, view.domAtPos.bind(view));
|
|
174
174
|
},
|
|
175
175
|
nodeType: nodeType,
|
|
176
|
-
items: [languageSelect].concat((0, _toConsumableArray2.default)((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1')
|
|
176
|
+
items: [languageSelect].concat((0, _toConsumableArray2.default)((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_controls', 'cohort', 'variant1') ? [] : [separator]), [codeBlockWrapButton], (0, _toConsumableArray2.default)(copyAndDeleteButtonMenuItems)),
|
|
177
177
|
scrollable: true
|
|
178
178
|
};
|
|
179
179
|
};
|
|
@@ -79,7 +79,7 @@ export const getToolbarConfig = (allowCopyToClipboard = false, api, overrideLang
|
|
|
79
79
|
tabIndex: null
|
|
80
80
|
}, separator];
|
|
81
81
|
let copyAndDeleteButtonMenuItems = [];
|
|
82
|
-
if (expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1')
|
|
82
|
+
if (expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1')) {
|
|
83
83
|
const overflowMenuOptions = [{
|
|
84
84
|
title: formatMessage(commonMessages.delete),
|
|
85
85
|
icon: DeleteIcon({
|
|
@@ -147,7 +147,7 @@ export const getToolbarConfig = (allowCopyToClipboard = false, api, overrideLang
|
|
|
147
147
|
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
148
148
|
getDomRef: view => findDomRefAtPos(pos, view.domAtPos.bind(view)),
|
|
149
149
|
nodeType,
|
|
150
|
-
items: [languageSelect, ...(expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1')
|
|
150
|
+
items: [languageSelect, ...(expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') ? [] : [separator]), codeBlockWrapButton, ...copyAndDeleteButtonMenuItems],
|
|
151
151
|
scrollable: true
|
|
152
152
|
};
|
|
153
153
|
};
|
|
@@ -94,7 +94,7 @@ export var getToolbarConfig = function getToolbarConfig() {
|
|
|
94
94
|
tabIndex: null
|
|
95
95
|
}, separator];
|
|
96
96
|
var copyAndDeleteButtonMenuItems = [];
|
|
97
|
-
if (expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1')
|
|
97
|
+
if (expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1')) {
|
|
98
98
|
var overflowMenuOptions = [{
|
|
99
99
|
title: formatMessage(commonMessages.delete),
|
|
100
100
|
icon: DeleteIcon({
|
|
@@ -164,7 +164,7 @@ export var getToolbarConfig = function getToolbarConfig() {
|
|
|
164
164
|
return findDomRefAtPos(pos, view.domAtPos.bind(view));
|
|
165
165
|
},
|
|
166
166
|
nodeType: nodeType,
|
|
167
|
-
items: [languageSelect].concat(_toConsumableArray(expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1')
|
|
167
|
+
items: [languageSelect].concat(_toConsumableArray(expValEqualsNoExposure('platform_editor_controls', 'cohort', 'variant1') ? [] : [separator]), [codeBlockWrapButton], _toConsumableArray(copyAndDeleteButtonMenuItems)),
|
|
168
168
|
scrollable: true
|
|
169
169
|
};
|
|
170
170
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-block",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "Code block plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/icon": "^27.3.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
44
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^9.
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^9.8.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
@@ -103,9 +103,6 @@
|
|
|
103
103
|
},
|
|
104
104
|
"editor_a11y_remove_unwrap_button": {
|
|
105
105
|
"type": "boolean"
|
|
106
|
-
},
|
|
107
|
-
"platform_editor_controls_patch_13": {
|
|
108
|
-
"type": "boolean"
|
|
109
106
|
}
|
|
110
107
|
}
|
|
111
108
|
}
|