@atlaskit/editor-common 87.3.1 → 87.3.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 +15 -0
- package/dist/cjs/keymaps/index.js +4 -0
- package/dist/cjs/messages/block-controls.js +10 -0
- package/dist/cjs/messages/insert-block.js +10 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/keymaps/index.js +4 -0
- package/dist/es2019/messages/block-controls.js +10 -0
- package/dist/es2019/messages/insert-block.js +10 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/keymaps/index.js +4 -0
- package/dist/esm/messages/block-controls.js +10 -0
- package/dist/esm/messages/insert-block.js +10 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/messages/block-controls.d.ts +10 -0
- package/dist/types/messages/insert-block.d.ts +10 -0
- package/dist/types/provider-factory/quick-insert-provider.d.ts +1 -1
- package/dist/types-ts4.5/messages/block-controls.d.ts +10 -0
- package/dist/types-ts4.5/messages/insert-block.d.ts +10 -0
- package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 87.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#126568](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/126568)
|
|
8
|
+
[`ce40c0ff7852f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ce40c0ff7852f) -
|
|
9
|
+
Add menu item and typeahead for Upload image from URL
|
|
10
|
+
|
|
11
|
+
## 87.3.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`63d659eb3e73d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/63d659eb3e73d) -
|
|
16
|
+
ED-24315 improve a11y for block controls
|
|
17
|
+
|
|
3
18
|
## 87.3.1
|
|
4
19
|
|
|
5
20
|
### Patch 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
|
});
|
|
@@ -36,6 +36,16 @@ var toolbarInsertBlockMessages = exports.toolbarInsertBlockMessages = (0, _react
|
|
|
36
36
|
defaultMessage: 'Add image, video, or file',
|
|
37
37
|
description: 'Insert one or more files, videos or images'
|
|
38
38
|
},
|
|
39
|
+
insertMediaFromUrl: {
|
|
40
|
+
id: 'fabric.editor.insertMediaFromUrl',
|
|
41
|
+
defaultMessage: 'Image from link',
|
|
42
|
+
description: 'Upload image from URL'
|
|
43
|
+
},
|
|
44
|
+
insertMediaFromUrlDescription: {
|
|
45
|
+
id: 'fabric.editor.insertMediaFromUrlDescription',
|
|
46
|
+
defaultMessage: 'Add an image or video from a link',
|
|
47
|
+
description: 'Upload a image to your page from external URL'
|
|
48
|
+
},
|
|
39
49
|
mediaFilesDescription: {
|
|
40
50
|
id: 'fabric.editor.mediaFiles.description',
|
|
41
51
|
defaultMessage: 'Add images and other files to your page',
|
|
@@ -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.3";
|
|
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.3";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -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
|
});
|
|
@@ -30,6 +30,16 @@ export const toolbarInsertBlockMessages = defineMessages({
|
|
|
30
30
|
defaultMessage: 'Add image, video, or file',
|
|
31
31
|
description: 'Insert one or more files, videos or images'
|
|
32
32
|
},
|
|
33
|
+
insertMediaFromUrl: {
|
|
34
|
+
id: 'fabric.editor.insertMediaFromUrl',
|
|
35
|
+
defaultMessage: 'Image from link',
|
|
36
|
+
description: 'Upload image from URL'
|
|
37
|
+
},
|
|
38
|
+
insertMediaFromUrlDescription: {
|
|
39
|
+
id: 'fabric.editor.insertMediaFromUrlDescription',
|
|
40
|
+
defaultMessage: 'Add an image or video from a link',
|
|
41
|
+
description: 'Upload a image to your page from external URL'
|
|
42
|
+
},
|
|
33
43
|
mediaFilesDescription: {
|
|
34
44
|
id: 'fabric.editor.mediaFiles.description',
|
|
35
45
|
defaultMessage: 'Add images and other files to your page',
|
|
@@ -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.3";
|
|
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.3";
|
|
16
16
|
const halfFocusRing = 1;
|
|
17
17
|
const dropOffset = '0, 8';
|
|
18
18
|
class DropList extends Component {
|
|
@@ -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
|
});
|
|
@@ -30,6 +30,16 @@ export var toolbarInsertBlockMessages = defineMessages({
|
|
|
30
30
|
defaultMessage: 'Add image, video, or file',
|
|
31
31
|
description: 'Insert one or more files, videos or images'
|
|
32
32
|
},
|
|
33
|
+
insertMediaFromUrl: {
|
|
34
|
+
id: 'fabric.editor.insertMediaFromUrl',
|
|
35
|
+
defaultMessage: 'Image from link',
|
|
36
|
+
description: 'Upload image from URL'
|
|
37
|
+
},
|
|
38
|
+
insertMediaFromUrlDescription: {
|
|
39
|
+
id: 'fabric.editor.insertMediaFromUrlDescription',
|
|
40
|
+
defaultMessage: 'Add an image or video from a link',
|
|
41
|
+
description: 'Upload a image to your page from external URL'
|
|
42
|
+
},
|
|
33
43
|
mediaFilesDescription: {
|
|
34
44
|
id: 'fabric.editor.mediaFiles.description',
|
|
35
45
|
defaultMessage: 'Add images and other files to your page',
|
|
@@ -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.3";
|
|
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.3";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -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
|
};
|
|
@@ -29,6 +29,16 @@ export declare const toolbarInsertBlockMessages: {
|
|
|
29
29
|
defaultMessage: string;
|
|
30
30
|
description: string;
|
|
31
31
|
};
|
|
32
|
+
insertMediaFromUrl: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
insertMediaFromUrlDescription: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
32
42
|
mediaFilesDescription: {
|
|
33
43
|
id: string;
|
|
34
44
|
defaultMessage: string;
|
|
@@ -5,7 +5,7 @@ import type { TypeAheadItem } from '../types/type-ahead';
|
|
|
5
5
|
export type QuickInsertActionInsert = (node?: Node | Record<string, any> | string, opts?: {
|
|
6
6
|
selectInlineNode?: boolean;
|
|
7
7
|
}) => Transaction;
|
|
8
|
-
export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText' | 'datasource' | 'loom';
|
|
8
|
+
export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'media-insert' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText' | 'datasource' | 'loom';
|
|
9
9
|
export type QuickInsertItem = TypeAheadItem & {
|
|
10
10
|
/** other names used to find the item */
|
|
11
11
|
keywords?: Array<string>;
|
|
@@ -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
|
};
|
|
@@ -29,6 +29,16 @@ export declare const toolbarInsertBlockMessages: {
|
|
|
29
29
|
defaultMessage: string;
|
|
30
30
|
description: string;
|
|
31
31
|
};
|
|
32
|
+
insertMediaFromUrl: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
insertMediaFromUrlDescription: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
32
42
|
mediaFilesDescription: {
|
|
33
43
|
id: string;
|
|
34
44
|
defaultMessage: string;
|
|
@@ -5,7 +5,7 @@ import type { TypeAheadItem } from '../types/type-ahead';
|
|
|
5
5
|
export type QuickInsertActionInsert = (node?: Node | Record<string, any> | string, opts?: {
|
|
6
6
|
selectInlineNode?: boolean;
|
|
7
7
|
}) => Transaction;
|
|
8
|
-
export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText' | 'datasource' | 'loom';
|
|
8
|
+
export type QuickInsertItemId = 'hyperlink' | 'table' | 'helpdialog' | 'date' | 'media' | 'media-insert' | 'blockquote' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'codeblock' | 'unorderedList' | 'feedbackdialog' | 'orderedList' | 'rule' | 'status' | 'mention' | 'emoji' | 'action' | 'decision' | 'infopanel' | 'notepanel' | 'successpanel' | 'warningpanel' | 'errorpanel' | 'custompanel' | 'layout' | 'expand' | 'placeholderText' | 'datasource' | 'loom';
|
|
9
9
|
export type QuickInsertItem = TypeAheadItem & {
|
|
10
10
|
/** other names used to find the item */
|
|
11
11
|
keywords?: Array<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "87.3.
|
|
3
|
+
"version": "87.3.3",
|
|
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/"
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
117
117
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
118
118
|
"@atlaskit/emoji": "^67.7.0",
|
|
119
|
-
"@atlaskit/icon": "^22.
|
|
119
|
+
"@atlaskit/icon": "^22.10.0",
|
|
120
120
|
"@atlaskit/icon-object": "^6.4.0",
|
|
121
121
|
"@atlaskit/link-datasource": "^2.9.0",
|
|
122
122
|
"@atlaskit/link-picker": "^1.41.0",
|