@atlaskit/editor-plugin-placeholder 6.0.0 → 6.1.0
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-plugin-placeholder
|
|
2
2
|
|
|
3
|
+
## 6.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`fa2e8ad38d6f7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fa2e8ad38d6f7) -
|
|
8
|
+
[ux] Show hovered prompt in placeholder text input
|
|
9
|
+
|
|
3
10
|
## 6.0.0
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -94,10 +94,10 @@ function createPlaceholderDecoration(editorState, placeholderText, placeholderPr
|
|
|
94
94
|
placeholderDecoration.appendChild(placeholderNode);
|
|
95
95
|
placeholderNodeWithText = placeholderNode;
|
|
96
96
|
}
|
|
97
|
-
if (
|
|
98
|
-
cycleThroughPlaceholderPrompts(placeholderPrompts, activeTypewriterTimeouts, placeholderNodeWithText, initialDelayWhenUserTypedAndDeleted);
|
|
99
|
-
} else {
|
|
97
|
+
if (placeholderText) {
|
|
100
98
|
placeholderNodeWithText.textContent = placeholderText || ' ';
|
|
99
|
+
} else if (placeholderPrompts) {
|
|
100
|
+
cycleThroughPlaceholderPrompts(placeholderPrompts, activeTypewriterTimeouts, placeholderNodeWithText, initialDelayWhenUserTypedAndDeleted);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
// ME-2289 Tapping on backspace in empty editor hides and displays the keyboard
|
|
@@ -81,10 +81,10 @@ export function createPlaceholderDecoration(editorState, placeholderText, placeh
|
|
|
81
81
|
placeholderDecoration.appendChild(placeholderNode);
|
|
82
82
|
placeholderNodeWithText = placeholderNode;
|
|
83
83
|
}
|
|
84
|
-
if (
|
|
85
|
-
cycleThroughPlaceholderPrompts(placeholderPrompts, activeTypewriterTimeouts, placeholderNodeWithText, initialDelayWhenUserTypedAndDeleted);
|
|
86
|
-
} else {
|
|
84
|
+
if (placeholderText) {
|
|
87
85
|
placeholderNodeWithText.textContent = placeholderText || ' ';
|
|
86
|
+
} else if (placeholderPrompts) {
|
|
87
|
+
cycleThroughPlaceholderPrompts(placeholderPrompts, activeTypewriterTimeouts, placeholderNodeWithText, initialDelayWhenUserTypedAndDeleted);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
// ME-2289 Tapping on backspace in empty editor hides and displays the keyboard
|
|
@@ -86,10 +86,10 @@ export function createPlaceholderDecoration(editorState, placeholderText, placeh
|
|
|
86
86
|
placeholderDecoration.appendChild(placeholderNode);
|
|
87
87
|
placeholderNodeWithText = placeholderNode;
|
|
88
88
|
}
|
|
89
|
-
if (
|
|
90
|
-
cycleThroughPlaceholderPrompts(placeholderPrompts, activeTypewriterTimeouts, placeholderNodeWithText, initialDelayWhenUserTypedAndDeleted);
|
|
91
|
-
} else {
|
|
89
|
+
if (placeholderText) {
|
|
92
90
|
placeholderNodeWithText.textContent = placeholderText || ' ';
|
|
91
|
+
} else if (placeholderPrompts) {
|
|
92
|
+
cycleThroughPlaceholderPrompts(placeholderPrompts, activeTypewriterTimeouts, placeholderNodeWithText, initialDelayWhenUserTypedAndDeleted);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
// ME-2289 Tapping on backspace in empty editor hides and displays the keyboard
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-placeholder",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Placeholder plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"@atlaskit/editor-plugin-composition": "^5.0.0",
|
|
31
31
|
"@atlaskit/editor-plugin-focus": "^5.0.0",
|
|
32
32
|
"@atlaskit/editor-plugin-show-diff": "^3.0.0",
|
|
33
|
-
"@atlaskit/editor-plugin-type-ahead": "^6.
|
|
33
|
+
"@atlaskit/editor-plugin-type-ahead": "^6.1.0",
|
|
34
34
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
35
35
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
36
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
36
|
+
"@atlaskit/tmp-editor-statsig": "^12.32.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@atlaskit/editor-common": "^110.
|
|
40
|
+
"@atlaskit/editor-common": "^110.2.0",
|
|
41
41
|
"react": "^18.2.0",
|
|
42
42
|
"react-dom": "^18.2.0",
|
|
43
43
|
"react-intl-next": "npm:react-intl@^5.18.1"
|