@atlaskit/editor-core 185.4.0 → 185.4.2
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/compass.yml +52 -0
- package/dist/cjs/utils/clipboard.js +8 -5
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/utils/clipboard.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/utils/clipboard.js +6 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 185.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a9350cf3831`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a9350cf3831) - Check existence of window and document variable for confluence SSR to work
|
|
8
|
+
|
|
3
9
|
## 185.4.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/compass.yml
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Editor
|
|
2
|
+
id: 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/3d05b1c1-0470-426d-9d4c-4983c298f65d'
|
|
3
|
+
description: A package contains Atlassian editor core functionality
|
|
4
|
+
configVersion: 1
|
|
5
|
+
typeId: UI_ELEMENT
|
|
6
|
+
ownerId: 'ari:cloud:teams::team/cf6a670b-5252-4c68-a769-9207de366beb'
|
|
7
|
+
fields:
|
|
8
|
+
tier: 2
|
|
9
|
+
links:
|
|
10
|
+
- name: null
|
|
11
|
+
type: REPOSITORY
|
|
12
|
+
url: 'https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-core/'
|
|
13
|
+
- name: '#team-cc-editor-services'
|
|
14
|
+
type: CHAT_CHANNEL
|
|
15
|
+
url: 'https://atlassian.slack.com/app_redirect?channel=team-cc-editor-services'
|
|
16
|
+
- name: ''
|
|
17
|
+
type: ON_CALL
|
|
18
|
+
url: 'https://atlassian.app.opsgenie.com/settings/schedule/detail/b2599bc4-2eec-4364-963c-a52b0fea279b'
|
|
19
|
+
- name: ''
|
|
20
|
+
type: PROJECT
|
|
21
|
+
url: 'https://product-fabric.atlassian.net/jira/software/c/projects/ED/boards/2107'
|
|
22
|
+
- name: ''
|
|
23
|
+
type: DASHBOARD
|
|
24
|
+
url: 'https://atlassian.signalfx.com/#/dashboard/EzEdH3ZA0AA?groupId=EzEdHB6A4AA&configId=EzEdILZAwAE'
|
|
25
|
+
- name: ''
|
|
26
|
+
type: DASHBOARD
|
|
27
|
+
url: 'https://atlassian.signalfx.com/#/dashboard/E1UTo1cAwAE?groupId=E1UTovfA0AI&configId=E1UTo82A4AE'
|
|
28
|
+
- name: ''
|
|
29
|
+
type: DOCUMENT
|
|
30
|
+
url: 'https://hello.atlassian.net/wiki/spaces/EDITOR/overview'
|
|
31
|
+
- name: '#help-editor'
|
|
32
|
+
type: CHAT_CHANNEL
|
|
33
|
+
url: 'https://atlassian.slack.com/app_redirect?channel=help-editor'
|
|
34
|
+
relationships:
|
|
35
|
+
DEPENDS_ON:
|
|
36
|
+
- 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/75a52084-b8d0-49ca-bd36-d185348854d5'
|
|
37
|
+
- 'ari:cloud:compass:a436116f-02ce-4520-8fbb-7301462a1674:component/c5751cc6-3513-4070-9deb-af31e86aed34/3aa89c97-0733-451b-bbe9-073e1e7353e2'
|
|
38
|
+
labels:
|
|
39
|
+
- atlassian-platform
|
|
40
|
+
customFields:
|
|
41
|
+
- name: Dev Owner
|
|
42
|
+
type: user
|
|
43
|
+
value: null
|
|
44
|
+
- name: Product
|
|
45
|
+
type: text
|
|
46
|
+
value: null
|
|
47
|
+
- name: Test
|
|
48
|
+
type: text
|
|
49
|
+
value: null
|
|
50
|
+
|
|
51
|
+
# Learn more about formatting compass.yml:
|
|
52
|
+
# https://go.atlassian.com/compass-yml-format
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var
|
|
4
|
+
var _typeof3 = require("@babel/runtime/helpers/typeof");
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
@@ -9,10 +9,11 @@ exports.checkClipboardTypes = checkClipboardTypes;
|
|
|
9
9
|
exports.copyToClipboard = exports.copyHTMLToClipboardPolyfill = exports.copyHTMLToClipboard = void 0;
|
|
10
10
|
exports.isPastedFile = isPastedFile;
|
|
11
11
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
12
|
+
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
12
13
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
13
14
|
var clipboard = _interopRequireWildcard(require("clipboard-polyfill"));
|
|
14
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null ||
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
17
|
function checkClipboardTypes(type, item) {
|
|
17
18
|
var isDOMStringList = function isDOMStringList(t) {
|
|
18
19
|
return !t.indexOf && !!t.contains;
|
|
@@ -118,9 +119,11 @@ var copyHTMLToClipboard = /*#__PURE__*/function () {
|
|
|
118
119
|
_context2.next = 13;
|
|
119
120
|
break;
|
|
120
121
|
case 12:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
if ((typeof document === "undefined" ? "undefined" : (0, _typeof2.default)(document)) !== undefined) {
|
|
123
|
+
// ED-17083 extension copy seems have issue with ClipboardItem API
|
|
124
|
+
// Hence of use of this polyfill
|
|
125
|
+
copyHTMLToClipboardPolyfill(elementToCopy, plainTextToCopy);
|
|
126
|
+
}
|
|
124
127
|
case 13:
|
|
125
128
|
case "end":
|
|
126
129
|
return _context2.stop();
|
|
@@ -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 = "185.4.
|
|
9
|
+
var version = "185.4.2";
|
|
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
|
@@ -48,7 +48,7 @@ export const copyHTMLToClipboard = async (elementToCopy, plainTextToCopy) => {
|
|
|
48
48
|
} catch (error) {
|
|
49
49
|
throw new Error('Clipboard api is not supported');
|
|
50
50
|
}
|
|
51
|
-
} else {
|
|
51
|
+
} else if (typeof document !== undefined) {
|
|
52
52
|
// ED-17083 extension copy seems have issue with ClipboardItem API
|
|
53
53
|
// Hence of use of this polyfill
|
|
54
54
|
copyHTMLToClipboardPolyfill(elementToCopy, plainTextToCopy);
|
package/dist/es2019/version.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/typeof";
|
|
1
2
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
3
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
4
|
import * as clipboard from 'clipboard-polyfill';
|
|
@@ -105,9 +106,11 @@ export var copyHTMLToClipboard = /*#__PURE__*/function () {
|
|
|
105
106
|
_context2.next = 13;
|
|
106
107
|
break;
|
|
107
108
|
case 12:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
if ((typeof document === "undefined" ? "undefined" : _typeof(document)) !== undefined) {
|
|
110
|
+
// ED-17083 extension copy seems have issue with ClipboardItem API
|
|
111
|
+
// Hence of use of this polyfill
|
|
112
|
+
copyHTMLToClipboardPolyfill(elementToCopy, plainTextToCopy);
|
|
113
|
+
}
|
|
111
114
|
case 13:
|
|
112
115
|
case "end":
|
|
113
116
|
return _context2.stop();
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "185.4.
|
|
3
|
+
"version": "185.4.2",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"@atlaskit/atlassian-navigation": "^2.6.0",
|
|
153
153
|
"@atlaskit/breadcrumbs": "11.10.4",
|
|
154
154
|
"@atlaskit/code": "^14.6.0",
|
|
155
|
-
"@atlaskit/collab-provider": "9.3.
|
|
155
|
+
"@atlaskit/collab-provider": "9.3.1",
|
|
156
156
|
"@atlaskit/docs": "*",
|
|
157
157
|
"@atlaskit/drawer": "^7.5.0",
|
|
158
158
|
"@atlaskit/dropdown-menu": "^11.10.0",
|