@atlaskit/editor-plugin-placeholder-text 1.4.2 → 1.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
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-placeholder-text
|
|
2
2
|
|
|
3
|
+
## 1.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#117973](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117973)
|
|
8
|
+
[`6e37bac62083f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6e37bac62083f) -
|
|
9
|
+
moved one const, added new entry point for other and deprecated
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 1.4.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -8,6 +8,7 @@ exports.PlaceholderTextNodeView = void 0;
|
|
|
8
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
11
|
+
var _whitespace = require("@atlaskit/editor-common/whitespace");
|
|
11
12
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
12
13
|
var serializePlaceholderNode = function serializePlaceholderNode(node) {
|
|
13
14
|
var element = document.createElement('span');
|
|
@@ -15,14 +16,14 @@ var serializePlaceholderNode = function serializePlaceholderNode(node) {
|
|
|
15
16
|
|
|
16
17
|
// the inline node api test suite requires the following class name
|
|
17
18
|
element.classList.add('placeholderView-content-wrap');
|
|
18
|
-
element.innerText =
|
|
19
|
+
element.innerText = _whitespace.ZERO_WIDTH_SPACE;
|
|
19
20
|
var elementChildren = document.createElement('span');
|
|
20
21
|
elementChildren.classList.add('pm-placeholder__text');
|
|
21
22
|
elementChildren.dataset.placeholder = node.attrs.text;
|
|
22
23
|
elementChildren.setAttribute('contenteditable', 'false');
|
|
23
24
|
element.appendChild(elementChildren);
|
|
24
25
|
if (_utils.browser.safari) {
|
|
25
|
-
element.appendChild(document.createTextNode(
|
|
26
|
+
element.appendChild(document.createTextNode(_whitespace.ZERO_WIDTH_SPACE));
|
|
26
27
|
} else {
|
|
27
28
|
element.appendChild(document.createElement('wbr'));
|
|
28
29
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { browser
|
|
1
|
+
import { browser } from '@atlaskit/editor-common/utils';
|
|
2
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
2
3
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
4
|
const serializePlaceholderNode = node => {
|
|
4
5
|
const element = document.createElement('span');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import { browser
|
|
3
|
+
import { browser } from '@atlaskit/editor-common/utils';
|
|
4
|
+
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
4
5
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
5
6
|
var serializePlaceholderNode = function serializePlaceholderNode(node) {
|
|
6
7
|
var element = document.createElement('span');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-placeholder-text",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "placeholder text plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"atlaskit:src": "src/index.ts",
|
|
17
17
|
"atlassian": {
|
|
18
|
-
"team": "Editor:
|
|
18
|
+
"team": "Editor: Core Experiences",
|
|
19
19
|
"singleton": true,
|
|
20
20
|
"inPublicMirror": false,
|
|
21
21
|
"releaseModel": "continuous",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/adf-schema": "^39.0.3",
|
|
32
|
-
"@atlaskit/editor-common": "^84.
|
|
32
|
+
"@atlaskit/editor-common": "^84.3.0",
|
|
33
33
|
"@atlaskit/editor-plugin-analytics": "^1.4.0",
|
|
34
34
|
"@atlaskit/editor-plugin-type-ahead": "^1.4.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
36
36
|
"@atlaskit/editor-shared-styles": "^2.12.0",
|
|
37
|
-
"@atlaskit/icon": "^22.
|
|
37
|
+
"@atlaskit/icon": "^22.6.0",
|
|
38
38
|
"@atlaskit/theme": "^12.11.0",
|
|
39
39
|
"@atlaskit/tokens": "^1.53.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|