@atlaskit/editor-common 87.3.0 → 87.3.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 +15 -0
- package/dist/cjs/keymaps/index.js +4 -0
- package/dist/cjs/messages/block-controls.js +10 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/page-element-counts.js +5 -0
- package/dist/es2019/keymaps/index.js +4 -0
- package/dist/es2019/messages/block-controls.js +10 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/page-element-counts.js +6 -1
- package/dist/esm/keymaps/index.js +4 -0
- package/dist/esm/messages/block-controls.js +10 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/page-element-counts.js +5 -0
- package/dist/types/messages/block-controls.d.ts +10 -0
- package/dist/types/types/editor-plugin.d.ts +0 -2
- package/dist/types-ts4.5/messages/block-controls.d.ts +10 -0
- package/dist/types-ts4.5/types/editor-plugin.d.ts +0 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 87.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`63d659eb3e73d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/63d659eb3e73d) -
|
|
8
|
+
ED-24315 improve a11y for block controls
|
|
9
|
+
|
|
10
|
+
## 87.3.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`f42945811476f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f42945811476f) -
|
|
15
|
+
[NO-ISSUE] Mapping macro extensionKeys for the pageElementCounts analytics events to remove
|
|
16
|
+
prefixes with UUIDs
|
|
17
|
+
|
|
3
18
|
## 87.3.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -317,6 +317,10 @@ function getAriaKeyshortcuts(keymap) {
|
|
|
317
317
|
return 'Space';
|
|
318
318
|
case 'backspace':
|
|
319
319
|
return 'Backspace';
|
|
320
|
+
case 'arrowup':
|
|
321
|
+
return 'Arrow Up';
|
|
322
|
+
case 'arrowdown':
|
|
323
|
+
return 'Arrow Down';
|
|
320
324
|
default:
|
|
321
325
|
return modifier.split('').join(' ');
|
|
322
326
|
}
|
|
@@ -20,5 +20,15 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
20
20
|
id: 'fabric.editor.blockControlMoveDown',
|
|
21
21
|
defaultMessage: 'Move down',
|
|
22
22
|
description: 'Moves selected content down'
|
|
23
|
+
},
|
|
24
|
+
movedup: {
|
|
25
|
+
id: 'fabric.editor.blockControlMovedUp',
|
|
26
|
+
defaultMessage: 'Content has been moved up',
|
|
27
|
+
description: 'Selected content has been moved down'
|
|
28
|
+
},
|
|
29
|
+
movedDown: {
|
|
30
|
+
id: 'fabric.editor.blockControlMovedDown',
|
|
31
|
+
defaultMessage: 'Content has been moved down',
|
|
32
|
+
description: 'Selected content has been moved down'
|
|
23
33
|
}
|
|
24
34
|
});
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "87.3.
|
|
20
|
+
var packageVersion = "87.3.2";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "87.3.
|
|
26
|
+
var packageVersion = "87.3.2";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -32,6 +32,11 @@ var getPageElementCounts = exports.getPageElementCounts = function getPageElemen
|
|
|
32
32
|
if ('attrs' in node && node.attrs && 'extensionKey' in node.attrs && node.attrs.extensionKey) {
|
|
33
33
|
var _acc$macros$extension;
|
|
34
34
|
var extensionKey = node.attrs.extensionKey;
|
|
35
|
+
// If macros extensionKey has <UUID>/<UUID>/static/ prepended to it, remove the prefix
|
|
36
|
+
if (extensionKey.includes('/static/')) {
|
|
37
|
+
var extensionKeyParts = extensionKey.split('/');
|
|
38
|
+
extensionKey = extensionKeyParts[extensionKeyParts.length - 1];
|
|
39
|
+
}
|
|
35
40
|
acc.macros[extensionKey] = ((_acc$macros$extension = acc.macros[extensionKey]) !== null && _acc$macros$extension !== void 0 ? _acc$macros$extension : 0) + 1;
|
|
36
41
|
}
|
|
37
42
|
} else {
|
|
@@ -203,6 +203,10 @@ export function getAriaKeyshortcuts(keymap) {
|
|
|
203
203
|
return 'Space';
|
|
204
204
|
case 'backspace':
|
|
205
205
|
return 'Backspace';
|
|
206
|
+
case 'arrowup':
|
|
207
|
+
return 'Arrow Up';
|
|
208
|
+
case 'arrowdown':
|
|
209
|
+
return 'Arrow Down';
|
|
206
210
|
default:
|
|
207
211
|
return modifier.split('').join(' ');
|
|
208
212
|
}
|
|
@@ -14,5 +14,15 @@ export const messages = defineMessages({
|
|
|
14
14
|
id: 'fabric.editor.blockControlMoveDown',
|
|
15
15
|
defaultMessage: 'Move down',
|
|
16
16
|
description: 'Moves selected content down'
|
|
17
|
+
},
|
|
18
|
+
movedup: {
|
|
19
|
+
id: 'fabric.editor.blockControlMovedUp',
|
|
20
|
+
defaultMessage: 'Content has been moved up',
|
|
21
|
+
description: 'Selected content has been moved down'
|
|
22
|
+
},
|
|
23
|
+
movedDown: {
|
|
24
|
+
id: 'fabric.editor.blockControlMovedDown',
|
|
25
|
+
defaultMessage: 'Content has been moved down',
|
|
26
|
+
description: 'Selected content has been moved down'
|
|
17
27
|
}
|
|
18
28
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "87.3.
|
|
4
|
+
const packageVersion = "87.3.2";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -12,7 +12,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
12
12
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
13
13
|
import Layer from '../Layer';
|
|
14
14
|
const packageName = "@atlaskit/editor-common";
|
|
15
|
-
const packageVersion = "87.3.
|
|
15
|
+
const packageVersion = "87.3.2";
|
|
16
16
|
const halfFocusRing = 1;
|
|
17
17
|
const dropOffset = '0, 8';
|
|
18
18
|
class DropList extends Component {
|
|
@@ -25,7 +25,12 @@ export const getPageElementCounts = doc => {
|
|
|
25
25
|
else if (node.type === 'extension' || node.type === 'inlineExtension' || node.type === 'bodiedExtension' || node.type === 'multiBodiedExtension' || node.type === 'extensionFrame') {
|
|
26
26
|
if ('attrs' in node && node.attrs && 'extensionKey' in node.attrs && node.attrs.extensionKey) {
|
|
27
27
|
var _acc$macros$extension;
|
|
28
|
-
|
|
28
|
+
let extensionKey = node.attrs.extensionKey;
|
|
29
|
+
// If macros extensionKey has <UUID>/<UUID>/static/ prepended to it, remove the prefix
|
|
30
|
+
if (extensionKey.includes('/static/')) {
|
|
31
|
+
const extensionKeyParts = extensionKey.split('/');
|
|
32
|
+
extensionKey = extensionKeyParts[extensionKeyParts.length - 1];
|
|
33
|
+
}
|
|
29
34
|
acc.macros[extensionKey] = ((_acc$macros$extension = acc.macros[extensionKey]) !== null && _acc$macros$extension !== void 0 ? _acc$macros$extension : 0) + 1;
|
|
30
35
|
}
|
|
31
36
|
} else {
|
|
@@ -206,6 +206,10 @@ export function getAriaKeyshortcuts(keymap) {
|
|
|
206
206
|
return 'Space';
|
|
207
207
|
case 'backspace':
|
|
208
208
|
return 'Backspace';
|
|
209
|
+
case 'arrowup':
|
|
210
|
+
return 'Arrow Up';
|
|
211
|
+
case 'arrowdown':
|
|
212
|
+
return 'Arrow Down';
|
|
209
213
|
default:
|
|
210
214
|
return modifier.split('').join(' ');
|
|
211
215
|
}
|
|
@@ -14,5 +14,15 @@ export var messages = defineMessages({
|
|
|
14
14
|
id: 'fabric.editor.blockControlMoveDown',
|
|
15
15
|
defaultMessage: 'Move down',
|
|
16
16
|
description: 'Moves selected content down'
|
|
17
|
+
},
|
|
18
|
+
movedup: {
|
|
19
|
+
id: 'fabric.editor.blockControlMovedUp',
|
|
20
|
+
defaultMessage: 'Content has been moved up',
|
|
21
|
+
description: 'Selected content has been moved down'
|
|
22
|
+
},
|
|
23
|
+
movedDown: {
|
|
24
|
+
id: 'fabric.editor.blockControlMovedDown',
|
|
25
|
+
defaultMessage: 'Content has been moved down',
|
|
26
|
+
description: 'Selected content has been moved down'
|
|
17
27
|
}
|
|
18
28
|
});
|
|
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "87.3.
|
|
10
|
+
var packageVersion = "87.3.2";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -20,7 +20,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
20
20
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "87.3.
|
|
23
|
+
var packageVersion = "87.3.2";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -26,6 +26,11 @@ export var getPageElementCounts = function getPageElementCounts(doc) {
|
|
|
26
26
|
if ('attrs' in node && node.attrs && 'extensionKey' in node.attrs && node.attrs.extensionKey) {
|
|
27
27
|
var _acc$macros$extension;
|
|
28
28
|
var extensionKey = node.attrs.extensionKey;
|
|
29
|
+
// If macros extensionKey has <UUID>/<UUID>/static/ prepended to it, remove the prefix
|
|
30
|
+
if (extensionKey.includes('/static/')) {
|
|
31
|
+
var extensionKeyParts = extensionKey.split('/');
|
|
32
|
+
extensionKey = extensionKeyParts[extensionKeyParts.length - 1];
|
|
33
|
+
}
|
|
29
34
|
acc.macros[extensionKey] = ((_acc$macros$extension = acc.macros[extensionKey]) !== null && _acc$macros$extension !== void 0 ? _acc$macros$extension : 0) + 1;
|
|
30
35
|
}
|
|
31
36
|
} else {
|
|
@@ -14,4 +14,14 @@ export declare const messages: {
|
|
|
14
14
|
defaultMessage: string;
|
|
15
15
|
description: string;
|
|
16
16
|
};
|
|
17
|
+
movedup: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
movedDown: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
17
27
|
};
|
|
@@ -23,8 +23,6 @@ export type PluginsOptions = {
|
|
|
23
23
|
* The selection toolbar is a floating toolbar that is displayed for
|
|
24
24
|
* range selections when any plugins return a selection toolbar group with
|
|
25
25
|
* items.
|
|
26
|
-
* @private
|
|
27
|
-
* @deprecated Do not use this plugin option, it is for AI purposes only and will be removed soon.
|
|
28
26
|
*/
|
|
29
27
|
selectionToolbar?: SelectionToolbarHandler;
|
|
30
28
|
/**
|
|
@@ -14,4 +14,14 @@ export declare const messages: {
|
|
|
14
14
|
defaultMessage: string;
|
|
15
15
|
description: string;
|
|
16
16
|
};
|
|
17
|
+
movedup: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
movedDown: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
17
27
|
};
|
|
@@ -23,8 +23,6 @@ export type PluginsOptions = {
|
|
|
23
23
|
* The selection toolbar is a floating toolbar that is displayed for
|
|
24
24
|
* range selections when any plugins return a selection toolbar group with
|
|
25
25
|
* items.
|
|
26
|
-
* @private
|
|
27
|
-
* @deprecated Do not use this plugin option, it is for AI purposes only and will be removed soon.
|
|
28
26
|
*/
|
|
29
27
|
selectionToolbar?: SelectionToolbarHandler;
|
|
30
28
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "87.3.
|
|
3
|
+
"version": "87.3.2",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"@atlaskit/primitives": "^11.1.0",
|
|
135
135
|
"@atlaskit/profilecard": "^19.17.0",
|
|
136
136
|
"@atlaskit/section-message": "^6.5.0",
|
|
137
|
-
"@atlaskit/smart-card": "^27.
|
|
137
|
+
"@atlaskit/smart-card": "^27.12.0",
|
|
138
138
|
"@atlaskit/smart-user-picker": "^6.10.0",
|
|
139
139
|
"@atlaskit/spinner": "^16.2.0",
|
|
140
140
|
"@atlaskit/task-decision": "^17.10.0",
|