@atlaskit/editor-plugin-placeholder 7.4.2 → 7.4.3
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 +8 -0
- package/dist/cjs/pm-plugins/main.js +1 -1
- package/dist/cjs/pm-plugins/utils.js +4 -4
- package/dist/es2019/pm-plugins/main.js +1 -1
- package/dist/es2019/pm-plugins/utils.js +4 -4
- package/dist/esm/pm-plugins/main.js +1 -1
- package/dist/esm/pm-plugins/utils.js +4 -4
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-placeholder
|
|
2
2
|
|
|
3
|
+
## 7.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1fd2b267eb592`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1fd2b267eb592) -
|
|
8
|
+
Cleanup `platform_editor_ai_aifc_patch_ga` flag
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 7.4.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -66,7 +66,7 @@ function createPlugin(intl, defaultPlaceholderText, bracketPlaceholderText, empt
|
|
|
66
66
|
var isCreateWithRovoOverride = !!meta.placeholderText && (0, _expVal.expVal)('cwr_blank_object_experiment', 'isEnabled', false);
|
|
67
67
|
// Only update defaultPlaceholderText from meta if we're not using ADF placeholder
|
|
68
68
|
// OR when the create-with-rovo experiment is active to allow intentional non-empty placeholder overrides
|
|
69
|
-
if (!
|
|
69
|
+
if (!placeholderADF || isCreateWithRovoOverride) {
|
|
70
70
|
defaultPlaceholderText = meta.placeholderText;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -199,8 +199,8 @@ function createPlaceHolderStateFrom(_ref3) {
|
|
|
199
199
|
var isFirstCell = (table === null || table === void 0 || (_table$node$firstChil = table.node.firstChild) === null || _table$node$firstChil === void 0 ? void 0 : _table$node$firstChil.content.firstChild) === parentNode;
|
|
200
200
|
if (isFirstCell) {
|
|
201
201
|
return setPlaceHolderState({
|
|
202
|
-
placeholderText:
|
|
203
|
-
contextPlaceholderADF: (0,
|
|
202
|
+
placeholderText: undefined,
|
|
203
|
+
contextPlaceholderADF: (0, _adfBuilders.createShortEmptyNodePlaceholderADF)(intl),
|
|
204
204
|
pos: $from.pos,
|
|
205
205
|
placeholderPrompts: placeholderPrompts,
|
|
206
206
|
typedAndDeleted: typedAndDeleted,
|
|
@@ -210,8 +210,8 @@ function createPlaceHolderStateFrom(_ref3) {
|
|
|
210
210
|
}
|
|
211
211
|
if (_constants.nodeTypesWithLongPlaceholderText.includes(parentType) && isEmptyNode) {
|
|
212
212
|
return setPlaceHolderState({
|
|
213
|
-
placeholderText:
|
|
214
|
-
contextPlaceholderADF: (0,
|
|
213
|
+
placeholderText: undefined,
|
|
214
|
+
contextPlaceholderADF: (0, _adfBuilders.createLongEmptyNodePlaceholderADF)(intl),
|
|
215
215
|
pos: $from.pos,
|
|
216
216
|
placeholderPrompts: placeholderPrompts,
|
|
217
217
|
typedAndDeleted: typedAndDeleted,
|
|
@@ -59,7 +59,7 @@ export default function createPlugin(intl, defaultPlaceholderText, bracketPlaceh
|
|
|
59
59
|
const isCreateWithRovoOverride = !!meta.placeholderText && expVal('cwr_blank_object_experiment', 'isEnabled', false);
|
|
60
60
|
// Only update defaultPlaceholderText from meta if we're not using ADF placeholder
|
|
61
61
|
// OR when the create-with-rovo experiment is active to allow intentional non-empty placeholder overrides
|
|
62
|
-
if (!
|
|
62
|
+
if (!placeholderADF || isCreateWithRovoOverride) {
|
|
63
63
|
defaultPlaceholderText = meta.placeholderText;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
@@ -187,8 +187,8 @@ export function createPlaceHolderStateFrom({
|
|
|
187
187
|
const isFirstCell = (table === null || table === void 0 ? void 0 : (_table$node$firstChil = table.node.firstChild) === null || _table$node$firstChil === void 0 ? void 0 : _table$node$firstChil.content.firstChild) === parentNode;
|
|
188
188
|
if (isFirstCell) {
|
|
189
189
|
return setPlaceHolderState({
|
|
190
|
-
placeholderText:
|
|
191
|
-
contextPlaceholderADF:
|
|
190
|
+
placeholderText: undefined,
|
|
191
|
+
contextPlaceholderADF: createShortEmptyNodePlaceholderADF(intl),
|
|
192
192
|
pos: $from.pos,
|
|
193
193
|
placeholderPrompts,
|
|
194
194
|
typedAndDeleted,
|
|
@@ -198,8 +198,8 @@ export function createPlaceHolderStateFrom({
|
|
|
198
198
|
}
|
|
199
199
|
if (nodeTypesWithLongPlaceholderText.includes(parentType) && isEmptyNode) {
|
|
200
200
|
return setPlaceHolderState({
|
|
201
|
-
placeholderText:
|
|
202
|
-
contextPlaceholderADF:
|
|
201
|
+
placeholderText: undefined,
|
|
202
|
+
contextPlaceholderADF: createLongEmptyNodePlaceholderADF(intl),
|
|
203
203
|
pos: $from.pos,
|
|
204
204
|
placeholderPrompts,
|
|
205
205
|
typedAndDeleted,
|
|
@@ -60,7 +60,7 @@ export default function createPlugin(intl, defaultPlaceholderText, bracketPlaceh
|
|
|
60
60
|
var isCreateWithRovoOverride = !!meta.placeholderText && expVal('cwr_blank_object_experiment', 'isEnabled', false);
|
|
61
61
|
// Only update defaultPlaceholderText from meta if we're not using ADF placeholder
|
|
62
62
|
// OR when the create-with-rovo experiment is active to allow intentional non-empty placeholder overrides
|
|
63
|
-
if (!
|
|
63
|
+
if (!placeholderADF || isCreateWithRovoOverride) {
|
|
64
64
|
defaultPlaceholderText = meta.placeholderText;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -188,8 +188,8 @@ export function createPlaceHolderStateFrom(_ref3) {
|
|
|
188
188
|
var isFirstCell = (table === null || table === void 0 || (_table$node$firstChil = table.node.firstChild) === null || _table$node$firstChil === void 0 ? void 0 : _table$node$firstChil.content.firstChild) === parentNode;
|
|
189
189
|
if (isFirstCell) {
|
|
190
190
|
return setPlaceHolderState({
|
|
191
|
-
placeholderText:
|
|
192
|
-
contextPlaceholderADF:
|
|
191
|
+
placeholderText: undefined,
|
|
192
|
+
contextPlaceholderADF: createShortEmptyNodePlaceholderADF(intl),
|
|
193
193
|
pos: $from.pos,
|
|
194
194
|
placeholderPrompts: placeholderPrompts,
|
|
195
195
|
typedAndDeleted: typedAndDeleted,
|
|
@@ -199,8 +199,8 @@ export function createPlaceHolderStateFrom(_ref3) {
|
|
|
199
199
|
}
|
|
200
200
|
if (nodeTypesWithLongPlaceholderText.includes(parentType) && isEmptyNode) {
|
|
201
201
|
return setPlaceHolderState({
|
|
202
|
-
placeholderText:
|
|
203
|
-
contextPlaceholderADF:
|
|
202
|
+
placeholderText: undefined,
|
|
203
|
+
contextPlaceholderADF: createLongEmptyNodePlaceholderADF(intl),
|
|
204
204
|
pos: $from.pos,
|
|
205
205
|
placeholderPrompts: placeholderPrompts,
|
|
206
206
|
typedAndDeleted: typedAndDeleted,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-placeholder",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.3",
|
|
4
4
|
"description": "Placeholder plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
38
|
"@atlaskit/primitives": "^18.0.0",
|
|
39
39
|
"@atlaskit/spinner": "^19.0.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^35.
|
|
41
|
-
"@atlaskit/tokens": "^11.
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^35.5.0",
|
|
41
|
+
"@atlaskit/tokens": "^11.1.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@atlaskit/editor-common": "^111.
|
|
45
|
+
"@atlaskit/editor-common": "^111.32.0",
|
|
46
46
|
"react": "^18.2.0",
|
|
47
47
|
"react-dom": "^18.2.0",
|
|
48
48
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -51,9 +51,6 @@
|
|
|
51
51
|
"@testing-library/react": "^16.3.0"
|
|
52
52
|
},
|
|
53
53
|
"platform-feature-flags": {
|
|
54
|
-
"platform_editor_ai_aifc_patch_ga": {
|
|
55
|
-
"type": "boolean"
|
|
56
|
-
},
|
|
57
54
|
"platform_editor_ai_aifc_patch_ga_blockers": {
|
|
58
55
|
"type": "boolean"
|
|
59
56
|
},
|