@atlaskit/editor-common 109.11.3 → 109.11.4
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,12 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 109.11.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ef686b3cfdbff`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef686b3cfdbff) -
|
|
8
|
+
ED-29222: Make empty line experiment dependent on block menu
|
|
9
|
+
|
|
3
10
|
## 109.11.3
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -193,7 +193,7 @@ function canMoveUp(state) {
|
|
|
193
193
|
if (selection instanceof _state.NodeSelection && (0, _nodes.isMediaNode)(selection.node)) {
|
|
194
194
|
return true;
|
|
195
195
|
}
|
|
196
|
-
if (!(0, _expValEqualsNoExposure.expValEqualsNoExposure)('
|
|
196
|
+
if (selection instanceof _state.TextSelection && !((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu_empty_line', 'isEnabled', true))) {
|
|
197
197
|
if (!selection.empty) {
|
|
198
198
|
return true;
|
|
199
199
|
}
|
|
@@ -209,7 +209,7 @@ function canMoveDown(state) {
|
|
|
209
209
|
if (selection instanceof _state.NodeSelection && (0, _nodes.isMediaNode)(selection.node)) {
|
|
210
210
|
return true;
|
|
211
211
|
}
|
|
212
|
-
if (!(0, _expValEqualsNoExposure.expValEqualsNoExposure)('
|
|
212
|
+
if (selection instanceof _state.TextSelection && !((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu', 'isEnabled', true) && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_block_menu_empty_line', 'isEnabled', true))) {
|
|
213
213
|
if (!selection.empty) {
|
|
214
214
|
return true;
|
|
215
215
|
}
|
|
@@ -186,7 +186,7 @@ function canMoveUp(state) {
|
|
|
186
186
|
if (selection instanceof NodeSelection && isMediaNode(selection.node)) {
|
|
187
187
|
return true;
|
|
188
188
|
}
|
|
189
|
-
if (!expValEqualsNoExposure('
|
|
189
|
+
if (selection instanceof TextSelection && !(expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) && expValEqualsNoExposure('platform_editor_block_menu_empty_line', 'isEnabled', true))) {
|
|
190
190
|
if (!selection.empty) {
|
|
191
191
|
return true;
|
|
192
192
|
}
|
|
@@ -204,7 +204,7 @@ function canMoveDown(state) {
|
|
|
204
204
|
if (selection instanceof NodeSelection && isMediaNode(selection.node)) {
|
|
205
205
|
return true;
|
|
206
206
|
}
|
|
207
|
-
if (!expValEqualsNoExposure('
|
|
207
|
+
if (selection instanceof TextSelection && !(expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) && expValEqualsNoExposure('platform_editor_block_menu_empty_line', 'isEnabled', true))) {
|
|
208
208
|
if (!selection.empty) {
|
|
209
209
|
return true;
|
|
210
210
|
}
|
|
@@ -180,7 +180,7 @@ function canMoveUp(state) {
|
|
|
180
180
|
if (selection instanceof NodeSelection && isMediaNode(selection.node)) {
|
|
181
181
|
return true;
|
|
182
182
|
}
|
|
183
|
-
if (!expValEqualsNoExposure('
|
|
183
|
+
if (selection instanceof TextSelection && !(expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) && expValEqualsNoExposure('platform_editor_block_menu_empty_line', 'isEnabled', true))) {
|
|
184
184
|
if (!selection.empty) {
|
|
185
185
|
return true;
|
|
186
186
|
}
|
|
@@ -196,7 +196,7 @@ function canMoveDown(state) {
|
|
|
196
196
|
if (selection instanceof NodeSelection && isMediaNode(selection.node)) {
|
|
197
197
|
return true;
|
|
198
198
|
}
|
|
199
|
-
if (!expValEqualsNoExposure('
|
|
199
|
+
if (selection instanceof TextSelection && !(expValEqualsNoExposure('platform_editor_block_menu', 'isEnabled', true) && expValEqualsNoExposure('platform_editor_block_menu_empty_line', 'isEnabled', true))) {
|
|
200
200
|
if (!selection.empty) {
|
|
201
201
|
return true;
|
|
202
202
|
}
|
package/package.json
CHANGED