@atlaskit/editor-plugin-placeholder 8.1.17 → 8.1.19
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,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-placeholder
|
|
2
2
|
|
|
3
|
+
## 8.1.19
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`aad55446552cd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/aad55446552cd) -
|
|
8
|
+
Cleaned up `platform_editor_ai_aifc_adf_placeholder` feature gate. The ADF placeholder is now
|
|
9
|
+
always used when applicable, without requiring a feature gate check. Removed unused imports and
|
|
10
|
+
dead code paths.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 8.1.18
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 8.1.17
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -8,7 +8,6 @@ var _processRawValue = require("@atlaskit/editor-common/process-raw-value");
|
|
|
8
8
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
9
9
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
10
10
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
11
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
11
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
13
12
|
var _animation = require("./animation");
|
|
14
13
|
var _constants = require("./constants");
|
|
@@ -92,7 +91,7 @@ function createPlaceholderDecoration(editorState, placeholderText, placeholderPr
|
|
|
92
91
|
if (isTargetNested && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1')) {
|
|
93
92
|
placeholderDecoration.classList.add('placeholder-decoration-hide-overflow');
|
|
94
93
|
}
|
|
95
|
-
if (placeholderADF && _utils.browser.chrome
|
|
94
|
+
if (placeholderADF && _utils.browser.chrome) {
|
|
96
95
|
var fragment = document.createDocumentFragment();
|
|
97
96
|
// An issue occurs with the caret where it gets bigger when it's next to a non-editable element like a decoration.
|
|
98
97
|
// See: https://discuss.prosemirror.net/t/chrome-caret-cursor-larger-than-the-text-with-inlined-items/5946/2
|
|
@@ -2,7 +2,6 @@ import { processRawValue } from '@atlaskit/editor-common/process-raw-value';
|
|
|
2
2
|
import { browser, ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
6
|
import { cycleThroughPlaceholderPrompts } from './animation';
|
|
8
7
|
import { placeholderTestId } from './constants';
|
|
@@ -82,7 +81,7 @@ export function createPlaceholderDecoration(editorState, placeholderText, placeh
|
|
|
82
81
|
if (isTargetNested && editorExperiment('platform_editor_controls', 'variant1')) {
|
|
83
82
|
placeholderDecoration.classList.add('placeholder-decoration-hide-overflow');
|
|
84
83
|
}
|
|
85
|
-
if (placeholderADF && browser.chrome
|
|
84
|
+
if (placeholderADF && browser.chrome) {
|
|
86
85
|
const fragment = document.createDocumentFragment();
|
|
87
86
|
// An issue occurs with the caret where it gets bigger when it's next to a non-editable element like a decoration.
|
|
88
87
|
// See: https://discuss.prosemirror.net/t/chrome-caret-cursor-larger-than-the-text-with-inlined-items/5946/2
|
|
@@ -2,7 +2,6 @@ import { processRawValue } from '@atlaskit/editor-common/process-raw-value';
|
|
|
2
2
|
import { browser, ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
6
|
import { cycleThroughPlaceholderPrompts } from './animation';
|
|
8
7
|
import { placeholderTestId } from './constants';
|
|
@@ -86,7 +85,7 @@ export function createPlaceholderDecoration(editorState, placeholderText, placeh
|
|
|
86
85
|
if (isTargetNested && editorExperiment('platform_editor_controls', 'variant1')) {
|
|
87
86
|
placeholderDecoration.classList.add('placeholder-decoration-hide-overflow');
|
|
88
87
|
}
|
|
89
|
-
if (placeholderADF && browser.chrome
|
|
88
|
+
if (placeholderADF && browser.chrome) {
|
|
90
89
|
var fragment = document.createDocumentFragment();
|
|
91
90
|
// An issue occurs with the caret where it gets bigger when it's next to a non-editable element like a decoration.
|
|
92
91
|
// See: https://discuss.prosemirror.net/t/chrome-caret-cursor-larger-than-the-text-with-inlined-items/5946/2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-placeholder",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.19",
|
|
4
4
|
"description": "Placeholder plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
"@atlaskit/editor-plugin-composition": "^7.0.0",
|
|
33
33
|
"@atlaskit/editor-plugin-focus": "^7.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-show-diff": "^6.2.0",
|
|
35
|
-
"@atlaskit/editor-plugin-type-ahead": "^8.
|
|
35
|
+
"@atlaskit/editor-plugin-type-ahead": "^8.2.0",
|
|
36
36
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
38
|
"@atlaskit/primitives": "^18.1.0",
|
|
39
39
|
"@atlaskit/spinner": "^19.1.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^58.0.0",
|
|
41
41
|
"@atlaskit/tokens": "^12.0.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@atlaskit/editor-common": "^112.
|
|
45
|
+
"@atlaskit/editor-common": "^112.19.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"
|
|
@@ -50,11 +50,6 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@testing-library/react": "^16.3.0"
|
|
52
52
|
},
|
|
53
|
-
"platform-feature-flags": {
|
|
54
|
-
"platform_editor_ai_aifc_adf_placeholder": {
|
|
55
|
-
"type": "boolean"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
53
|
"techstack": {
|
|
59
54
|
"@atlassian/frontend": {
|
|
60
55
|
"import-structure": [
|