@atlaskit/editor-plugin-placeholder-text 1.7.2 → 1.7.4
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,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-placeholder-text
|
|
2
2
|
|
|
3
|
+
## 1.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#136348](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/136348)
|
|
8
|
+
[`fb4fb56f1da7c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fb4fb56f1da7c) -
|
|
9
|
+
Use optimised entry-points on editor-common for browser.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 1.7.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#134213](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134213)
|
|
17
|
+
[`93bd7032842ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/93bd7032842ec) -
|
|
18
|
+
[ux] [ED-24636] Bump ADF Schema package
|
|
19
|
+
|
|
3
20
|
## 1.7.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
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
|
-
var
|
|
10
|
+
var _browser = require("@atlaskit/editor-common/browser");
|
|
11
11
|
var _whitespace = require("@atlaskit/editor-common/whitespace");
|
|
12
12
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
13
13
|
var serializePlaceholderNode = function serializePlaceholderNode(node) {
|
|
@@ -22,7 +22,7 @@ var serializePlaceholderNode = function serializePlaceholderNode(node) {
|
|
|
22
22
|
elementChildren.dataset.placeholder = node.attrs.text;
|
|
23
23
|
elementChildren.setAttribute('contenteditable', 'false');
|
|
24
24
|
element.appendChild(elementChildren);
|
|
25
|
-
if (
|
|
25
|
+
if (_browser.browser.safari) {
|
|
26
26
|
element.appendChild(document.createTextNode(_whitespace.ZERO_WIDTH_SPACE));
|
|
27
27
|
} else {
|
|
28
28
|
element.appendChild(document.createElement('wbr'));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { browser } from '@atlaskit/editor-common/
|
|
1
|
+
import { browser } from '@atlaskit/editor-common/browser';
|
|
2
2
|
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
3
3
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
4
4
|
const serializePlaceholderNode = node => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import { browser } from '@atlaskit/editor-common/
|
|
3
|
+
import { browser } from '@atlaskit/editor-common/browser';
|
|
4
4
|
import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
|
|
5
5
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
var serializePlaceholderNode = function serializePlaceholderNode(node) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-placeholder-text",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "placeholder text plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
"atlassian": {
|
|
18
18
|
"team": "Editor: Core Experiences",
|
|
19
19
|
"singleton": true,
|
|
20
|
-
"inPublicMirror": false,
|
|
21
|
-
"releaseModel": "continuous",
|
|
22
20
|
"runReact18": false,
|
|
23
21
|
"integrationTests": {
|
|
24
22
|
"additionalBrowsers": [
|
|
@@ -28,13 +26,13 @@
|
|
|
28
26
|
}
|
|
29
27
|
},
|
|
30
28
|
"dependencies": {
|
|
31
|
-
"@atlaskit/adf-schema": "^40.
|
|
32
|
-
"@atlaskit/editor-common": "^88.
|
|
29
|
+
"@atlaskit/adf-schema": "^40.9.0",
|
|
30
|
+
"@atlaskit/editor-common": "^88.8.0",
|
|
33
31
|
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
|
34
32
|
"@atlaskit/editor-plugin-type-ahead": "^1.8.0",
|
|
35
33
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
36
34
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
37
|
-
"@atlaskit/icon": "^22.
|
|
35
|
+
"@atlaskit/icon": "^22.15.0",
|
|
38
36
|
"@atlaskit/theme": "^13.0.0",
|
|
39
37
|
"@atlaskit/tokens": "^1.59.0",
|
|
40
38
|
"@babel/runtime": "^7.0.0",
|