@atlaskit/editor-plugin-placeholder 2.0.6 → 2.0.7
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,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-placeholder
|
|
2
2
|
|
|
3
|
+
## 2.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#127914](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/127914)
|
|
8
|
+
[`1240912e13dd0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1240912e13dd0) -
|
|
9
|
+
[ux] ED-27097 Update empty line placeholder to only show when editor is focussed (not in live
|
|
10
|
+
view)
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 2.0.6
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -74,7 +74,7 @@ function createPlaceHolderStateFrom(isEditorFocused, editorState, isTypeAheadOpe
|
|
|
74
74
|
if (defaultPlaceholderText && (0, _utils.isEmptyDocument)(editorState.doc)) {
|
|
75
75
|
return setPlaceHolderState(defaultPlaceholderText);
|
|
76
76
|
}
|
|
77
|
-
if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
77
|
+
if (isEditorFocused && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
78
78
|
var _parentNode$firstChil;
|
|
79
79
|
var _editorState$selectio = editorState.selection,
|
|
80
80
|
$from = _editorState$selectio.$from,
|
|
@@ -63,7 +63,7 @@ function createPlaceHolderStateFrom(isEditorFocused, editorState, isTypeAheadOpe
|
|
|
63
63
|
if (defaultPlaceholderText && isEmptyDocument(editorState.doc)) {
|
|
64
64
|
return setPlaceHolderState(defaultPlaceholderText);
|
|
65
65
|
}
|
|
66
|
-
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
66
|
+
if (isEditorFocused && editorExperiment('platform_editor_controls', 'variant1')) {
|
|
67
67
|
var _parentNode$firstChil;
|
|
68
68
|
const {
|
|
69
69
|
$from,
|
|
@@ -66,7 +66,7 @@ function createPlaceHolderStateFrom(isEditorFocused, editorState, isTypeAheadOpe
|
|
|
66
66
|
if (defaultPlaceholderText && isEmptyDocument(editorState.doc)) {
|
|
67
67
|
return setPlaceHolderState(defaultPlaceholderText);
|
|
68
68
|
}
|
|
69
|
-
if (editorExperiment('platform_editor_controls', 'variant1')) {
|
|
69
|
+
if (isEditorFocused && editorExperiment('platform_editor_controls', 'variant1')) {
|
|
70
70
|
var _parentNode$firstChil;
|
|
71
71
|
var _editorState$selectio = editorState.selection,
|
|
72
72
|
$from = _editorState$selectio.$from,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-placeholder",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "Placeholder plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/editor-common": "^102.
|
|
34
|
+
"@atlaskit/editor-common": "^102.10.0",
|
|
35
35
|
"@atlaskit/editor-plugin-composition": "^1.3.0",
|
|
36
36
|
"@atlaskit/editor-plugin-focus": "^1.5.0",
|
|
37
37
|
"@atlaskit/editor-plugin-type-ahead": "^2.1.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
39
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
39
|
+
"@atlaskit/tmp-editor-statsig": "^4.1.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|