@atlaskit/editor-core 179.1.0 → 179.1.1
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 +6 -0
- package/dist/cjs/plugins/placeholder/index.js +1 -0
- package/dist/cjs/plugins/placeholder/styles.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/placeholder/index.js +1 -0
- package/dist/es2019/plugins/placeholder/styles.js +7 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/placeholder/index.js +1 -0
- package/dist/esm/plugins/placeholder/styles.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +7 -8
package/CHANGELOG.md
CHANGED
|
@@ -43,6 +43,7 @@ function createPlaceholderDecoration(editorState, placeholderText) {
|
|
|
43
43
|
// when backspace in GBoard composition
|
|
44
44
|
if (_utils.browser.android && _utils.browser.chrome) {
|
|
45
45
|
var buffNode = document.createElement('span');
|
|
46
|
+
buffNode.setAttribute('class', 'placeholder-android');
|
|
46
47
|
buffNode.setAttribute('contenteditable', 'true');
|
|
47
48
|
buffNode.textContent = ' ';
|
|
48
49
|
placeholderDecoration.appendChild(buffNode);
|
|
@@ -9,5 +9,5 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
var _templateObject;
|
|
12
|
-
var placeholderStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror .placeholder-decoration {\n color: ", ";\n width: 100%;\n pointer-events: none;\n user-select: none;\n }\n"])), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"));
|
|
12
|
+
var placeholderStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror .placeholder-decoration {\n color: ", ";\n width: 100%;\n pointer-events: none;\n user-select: none;\n\n .placeholder-android {\n pointer-events: none;\n outline: none;\n user-select: none;\n position: absolute;\n }\n }\n"])), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"));
|
|
13
13
|
exports.placeholderStyles = placeholderStyles;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = "@atlaskit/editor-core";
|
|
8
8
|
exports.name = name;
|
|
9
|
-
var version = "179.1.
|
|
9
|
+
var version = "179.1.1";
|
|
10
10
|
exports.version = version;
|
|
11
11
|
var nextMajorVersion = function nextMajorVersion() {
|
|
12
12
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
package/dist/cjs/version.json
CHANGED
|
@@ -32,6 +32,7 @@ export function createPlaceholderDecoration(editorState, placeholderText, pos =
|
|
|
32
32
|
// when backspace in GBoard composition
|
|
33
33
|
if (browser.android && browser.chrome) {
|
|
34
34
|
const buffNode = document.createElement('span');
|
|
35
|
+
buffNode.setAttribute('class', 'placeholder-android');
|
|
35
36
|
buffNode.setAttribute('contenteditable', 'true');
|
|
36
37
|
buffNode.textContent = ' ';
|
|
37
38
|
placeholderDecoration.appendChild(buffNode);
|
package/dist/es2019/version.json
CHANGED
|
@@ -33,6 +33,7 @@ export function createPlaceholderDecoration(editorState, placeholderText) {
|
|
|
33
33
|
// when backspace in GBoard composition
|
|
34
34
|
if (browser.android && browser.chrome) {
|
|
35
35
|
var buffNode = document.createElement('span');
|
|
36
|
+
buffNode.setAttribute('class', 'placeholder-android');
|
|
36
37
|
buffNode.setAttribute('contenteditable', 'true');
|
|
37
38
|
buffNode.textContent = ' ';
|
|
38
39
|
placeholderDecoration.appendChild(buffNode);
|
|
@@ -2,4 +2,4 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
var _templateObject;
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { N200 } from '@atlaskit/theme/colors';
|
|
5
|
-
export var placeholderStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror .placeholder-decoration {\n color: ", ";\n width: 100%;\n pointer-events: none;\n user-select: none;\n }\n"])), "var(--ds-text-subtlest, ".concat(N200, ")"));
|
|
5
|
+
export var placeholderStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror .placeholder-decoration {\n color: ", ";\n width: 100%;\n pointer-events: none;\n user-select: none;\n\n .placeholder-android {\n pointer-events: none;\n outline: none;\n user-select: none;\n position: absolute;\n }\n }\n"])), "var(--ds-text-subtlest, ".concat(N200, ")"));
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "179.1.
|
|
3
|
+
"version": "179.1.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
"@atlaskit/media-ui": "^22.3.0",
|
|
63
63
|
"@atlaskit/media-viewer": "^47.4.0",
|
|
64
64
|
"@atlaskit/mention": "^21.0.0",
|
|
65
|
-
"@atlaskit/menu": "^1.
|
|
65
|
+
"@atlaskit/menu": "^1.5.0",
|
|
66
66
|
"@atlaskit/modal-dialog": "^12.4.0",
|
|
67
67
|
"@atlaskit/prosemirror-collab": "^0.1.0",
|
|
68
68
|
"@atlaskit/prosemirror-input-rules": "^2.1.0",
|
|
69
69
|
"@atlaskit/radio": "^5.4.0",
|
|
70
70
|
"@atlaskit/section-message": "^6.3.0",
|
|
71
71
|
"@atlaskit/select": "^16.1.0",
|
|
72
|
-
"@atlaskit/smart-card": "^24.
|
|
72
|
+
"@atlaskit/smart-card": "^24.3.0",
|
|
73
73
|
"@atlaskit/smart-user-picker": "^6.0.0",
|
|
74
74
|
"@atlaskit/spinner": "^15.3.0",
|
|
75
75
|
"@atlaskit/status": "^1.2.0",
|
|
@@ -137,8 +137,7 @@
|
|
|
137
137
|
"@atlaskit/collab-provider": "8.2.0",
|
|
138
138
|
"@atlaskit/docs": "*",
|
|
139
139
|
"@atlaskit/drawer": "^7.4.0",
|
|
140
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
141
|
-
"@atlaskit/droplist": "^11.0.0",
|
|
140
|
+
"@atlaskit/dropdown-menu": "^11.6.0",
|
|
142
141
|
"@atlaskit/editor-bitbucket-transformer": "^8.0.0",
|
|
143
142
|
"@atlaskit/editor-extension-dropbox": "^0.3.0",
|
|
144
143
|
"@atlaskit/editor-plugin-table": "^1.1.0",
|
|
@@ -151,7 +150,7 @@
|
|
|
151
150
|
"@atlaskit/media-core": "^34.0.0",
|
|
152
151
|
"@atlaskit/media-integration-test-helpers": "^2.6.0",
|
|
153
152
|
"@atlaskit/media-test-helpers": "^30.1.0",
|
|
154
|
-
"@atlaskit/menu": "^1.
|
|
153
|
+
"@atlaskit/menu": "^1.5.0",
|
|
155
154
|
"@atlaskit/page-layout": "^1.3.0",
|
|
156
155
|
"@atlaskit/profilecard": "^18.2.0",
|
|
157
156
|
"@atlaskit/pubsub": "^6.2.0",
|
|
@@ -168,8 +167,8 @@
|
|
|
168
167
|
"@atlaskit/webdriver-runner": "*",
|
|
169
168
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
170
169
|
"@atlassian/link-picker-atlassian-plugin": "^26.1.0",
|
|
171
|
-
"@atlassian/link-picker-plugins": "^15.
|
|
172
|
-
"@atlassian/search-provider": "2.3.
|
|
170
|
+
"@atlassian/link-picker-plugins": "^15.1.0",
|
|
171
|
+
"@atlassian/search-provider": "2.3.11",
|
|
173
172
|
"@atlassian/ufo": "^0.1.0",
|
|
174
173
|
"@emotion/jest": "^11.8.0",
|
|
175
174
|
"@storybook/addon-knobs": "^5.3.18",
|