@atlaskit/editor-plugin-placeholder 15.0.0 → 15.0.2
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,35 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-placeholder
|
|
2
2
|
|
|
3
|
+
## 15.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`76e9f6152bf16`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76e9f6152bf16) -
|
|
8
|
+
Enable launched synced block integrations and remove obsolete experiment scaffolding.
|
|
9
|
+
|
|
10
|
+
BREAKING: `@atlaskit/tmp-editor-statsig` no longer defines the `platform_synced_block` editor
|
|
11
|
+
experiment. Consumers that use `editorExperiment('platform_synced_block', ...)` to conditionally
|
|
12
|
+
enable synced-block integrations will no longer be able to look up that experiment; synced-block
|
|
13
|
+
integrations are now enabled by default. Remove each lookup and its conditional branch:
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
// Before
|
|
17
|
+
if (editorExperiment('platform_synced_block', true)) {
|
|
18
|
+
enableSyncedBlocks();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// After
|
|
22
|
+
enableSyncedBlocks();
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
27
|
+
## 15.0.1
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies
|
|
32
|
+
|
|
3
33
|
## 15.0.0
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
|
@@ -199,7 +199,7 @@ function createPlaceHolderStateFrom(_ref3) {
|
|
|
199
199
|
userHadTyped: userHadTyped
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
|
-
if (_constants.nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode &&
|
|
202
|
+
if (_constants.nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode && !(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 &&
|
|
190
|
+
if (nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode && !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 &&
|
|
191
|
+
if (nodeTypesWithSyncBlockPlaceholderText.includes(parentType) && isEmptyNode && !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": "15.0.
|
|
3
|
+
"version": "15.0.2",
|
|
4
4
|
"description": "Placeholder plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,22 +19,22 @@
|
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"atlaskit:src": "src/index.ts",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@atlaskit/adf-utils": "^20.
|
|
22
|
+
"@atlaskit/adf-utils": "^20.6.0",
|
|
23
23
|
"@atlaskit/css": "^1.0.0",
|
|
24
24
|
"@atlaskit/editor-plugin-composition": "^14.0.0",
|
|
25
25
|
"@atlaskit/editor-plugin-focus": "^14.0.0",
|
|
26
26
|
"@atlaskit/editor-plugin-show-diff": "^13.0.0",
|
|
27
|
-
"@atlaskit/editor-plugin-type-ahead": "^16.
|
|
27
|
+
"@atlaskit/editor-plugin-type-ahead": "^16.1.0",
|
|
28
28
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
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": "^149.0.0",
|
|
33
33
|
"@atlaskit/tokens": "^16.7.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@atlaskit/editor-common": "^119.
|
|
37
|
+
"@atlaskit/editor-common": "^119.7.0",
|
|
38
38
|
"react": "^18.2.0 || ^19.2.0",
|
|
39
39
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
40
40
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|