@atlaskit/editor-plugin-placeholder 12.0.37 → 12.0.39
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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-placeholder
|
|
2
2
|
|
|
3
|
+
## 12.0.39
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d9e8a63a60b63`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d9e8a63a60b63) -
|
|
8
|
+
Keep the placeholder visible in empty source synced blocks for the sync block activation treatment
|
|
9
|
+
while preserving the existing placeholder behavior in the control.
|
|
10
|
+
|
|
11
|
+
## 12.0.38
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 12.0.37
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -199,7 +199,7 @@ function createPlaceHolderStateFrom(_ref3) {
|
|
|
199
199
|
userHadTyped: userHadTyped
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
|
-
if (_constants.nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode && (0, _experiments.editorExperiment)('platform_synced_block', true)) {
|
|
202
|
+
if (_constants.nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode && (0, _experiments.editorExperiment)('platform_synced_block', true) && !(0, _expValEquals.expValEquals)('platform_editor_sync_block_activation', 'isEnabled', true)) {
|
|
203
203
|
return setPlaceHolderState({
|
|
204
204
|
placeholderText: intl.formatMessage(_messages.placeholderTextMessages.sourceSyncBlockPlaceholderText),
|
|
205
205
|
pos: $from.pos,
|
|
@@ -187,7 +187,7 @@ export function createPlaceHolderStateFrom({
|
|
|
187
187
|
userHadTyped
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
|
-
if (nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode && editorExperiment('platform_synced_block', true)) {
|
|
190
|
+
if (nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode && editorExperiment('platform_synced_block', true) && !expValEquals('platform_editor_sync_block_activation', 'isEnabled', true)) {
|
|
191
191
|
return setPlaceHolderState({
|
|
192
192
|
placeholderText: intl.formatMessage(messages.sourceSyncBlockPlaceholderText),
|
|
193
193
|
pos: $from.pos,
|
|
@@ -188,7 +188,7 @@ export function createPlaceHolderStateFrom(_ref3) {
|
|
|
188
188
|
userHadTyped: userHadTyped
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
if (nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode && editorExperiment('platform_synced_block', true)) {
|
|
191
|
+
if (nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode && editorExperiment('platform_synced_block', true) && !expValEquals('platform_editor_sync_block_activation', 'isEnabled', true)) {
|
|
192
192
|
return setPlaceHolderState({
|
|
193
193
|
placeholderText: intl.formatMessage(messages.sourceSyncBlockPlaceholderText),
|
|
194
194
|
pos: $from.pos,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-placeholder",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.39",
|
|
4
4
|
"description": "Placeholder plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
30
30
|
"@atlaskit/primitives": "^22.2.0",
|
|
31
31
|
"@atlaskit/spinner": "^20.1.0",
|
|
32
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
32
|
+
"@atlaskit/tmp-editor-statsig": "^135.2.0",
|
|
33
33
|
"@atlaskit/tokens": "^16.3.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@atlaskit/editor-common": "^116.
|
|
37
|
+
"@atlaskit/editor-common": "^116.43.0",
|
|
38
38
|
"react": "^18.2.0",
|
|
39
39
|
"react-dom": "^18.2.0",
|
|
40
40
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|