@atlaskit/editor-common 78.23.8 → 78.23.10
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 +13 -0
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/cjs/keymaps/index.js +4 -3
- package/dist/cjs/media/messages/comments.js +6 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/es2019/keymaps/index.js +1 -0
- package/dist/es2019/media/messages/comments.js +6 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/esm/keymaps/index.js +1 -0
- package/dist/esm/media/messages/comments.js +6 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/keymaps/index.d.ts +1 -0
- package/dist/types/media/messages/comments.d.ts +5 -0
- package/dist/types/types/floating-toolbar.d.ts +8 -0
- package/dist/types-ts4.5/keymaps/index.d.ts +1 -0
- package/dist/types-ts4.5/media/messages/comments.d.ts +5 -0
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +8 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 78.23.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#88137](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88137) [`0a744349d5e6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0a744349d5e6) - [ux] [ED-22833] Change icon used for comment button in media floating toolbar when there are active comments associated with the media. The icon will now be comment icon with a dot at top right corner.
|
|
8
|
+
|
|
9
|
+
## 78.23.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#88354](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88354) [`4c87d9b4f0c2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4c87d9b4f0c2) - The internal composition of this component has changed. There is no expected change in behavior.
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 78.23.8
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -78,7 +78,7 @@ Object.defineProperty(exports, "UP", {
|
|
|
78
78
|
return _consts.UP;
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
|
-
exports.backspace = exports.altPaste = exports.alignRight = exports.alignLeft = exports.alignCenter = exports.addRowBefore = exports.addRowAfter = exports.addLink = exports.addInlineComment = exports.addColumnBefore = exports.addColumnAfter = exports.addAltText = void 0;
|
|
81
|
+
exports.backspace = exports.altPaste = exports.alignRight = exports.alignLeft = exports.alignCenter = exports.addRowBefore = exports.addRowAfter = exports.addLink = exports.addInlineComment = exports.addColumnBefore = exports.addColumnAfter = exports.addAltText = exports.activateVideoControls = void 0;
|
|
82
82
|
exports.bindKeymapArrayWithCommand = bindKeymapArrayWithCommand;
|
|
83
83
|
exports.bindKeymapWithCommand = bindKeymapWithCommand;
|
|
84
84
|
exports.bindKeymapWithEditorCommand = bindKeymapWithEditorCommand;
|
|
@@ -100,8 +100,8 @@ Object.defineProperty(exports, "keymap", {
|
|
|
100
100
|
exports.makeKeyMapArrayWithCommon = makeKeyMapArrayWithCommon;
|
|
101
101
|
exports.makeKeyMapWithCommon = makeKeyMapWithCommon;
|
|
102
102
|
exports.makeKeymap = makeKeymap;
|
|
103
|
-
exports.
|
|
104
|
-
exports.toggleUnderline = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = void 0;
|
|
103
|
+
exports.toggleItalic = exports.toggleHeading6 = exports.toggleHeading5 = exports.toggleHeading4 = exports.toggleHeading3 = exports.toggleHeading2 = exports.toggleHeading1 = exports.toggleCode = exports.toggleBulletList = exports.toggleBold = exports.toggleBlockQuote = exports.tab = exports.submit = exports.startColumnResizing = exports.splitListItem = exports.splitCodeBlock = exports.space = exports.shiftTab = exports.shiftEnter = exports.shiftBackspace = exports.shiftArrowUp = exports.setNormalText = exports.selectTable = exports.selectRow = exports.selectColumn = exports.redo = exports.previousCell = exports.pastePlainText = exports.paste = exports.outdentList = exports.outdent = exports.openHelp = exports.nextCell = exports.navToFloatingToolbar = exports.navToEditorToolbar = exports.moveUp = exports.moveRowUp = exports.moveRowDown = exports.moveRight = exports.moveLeft = exports.moveDown = exports.moveColumnRight = exports.moveColumnLeft = void 0;
|
|
104
|
+
exports.toggleUnderline = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = void 0;
|
|
105
105
|
exports.tooltip = tooltip;
|
|
106
106
|
exports.undo = void 0;
|
|
107
107
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
@@ -198,6 +198,7 @@ var selectColumn = exports.selectColumn = makeKeyMapArrayWithCommon('Select colu
|
|
|
198
198
|
var selectTable = exports.selectTable = makeKeyMapWithCommon('Select table', 'Mod-a');
|
|
199
199
|
var increaseMediaSize = exports.increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-]');
|
|
200
200
|
var decreaseMediaSize = exports.decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
|
|
201
|
+
var activateVideoControls = exports.activateVideoControls = makeKeyMapWithCommon('Activate controls panel on video', 'Shift-F10');
|
|
201
202
|
var arrowKeysMap = {
|
|
202
203
|
// for reference: https://wincent.com/wiki/Unicode_representations_of_modifier_keys
|
|
203
204
|
ARROWLEFT: "\u2190",
|
|
@@ -9,7 +9,12 @@ var commentMessages = exports.commentMessages = (0, _reactIntlNext.defineMessage
|
|
|
9
9
|
addCommentOnMedia: {
|
|
10
10
|
id: 'fabric.editor.addCommentOnMedia',
|
|
11
11
|
defaultMessage: 'Add comment',
|
|
12
|
-
description: 'Add a comment for this image'
|
|
12
|
+
description: 'Add a comment for this media (image/video)'
|
|
13
|
+
},
|
|
14
|
+
viewCommentsOnMedia: {
|
|
15
|
+
id: 'fabric.editor.viewCommentOnMedia',
|
|
16
|
+
defaultMessage: 'View comment',
|
|
17
|
+
description: 'View a existing comment for this media (image/video)'
|
|
13
18
|
},
|
|
14
19
|
viewAndAddCommentsOnMedia: {
|
|
15
20
|
id: 'fabric.editor.viewAndAddCommentsOnMedia',
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
16
16
|
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; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "78.23.
|
|
19
|
+
var packageVersion = "78.23.10";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
23
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "78.23.
|
|
25
|
+
var packageVersion = "78.23.10";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -86,6 +86,7 @@ export const selectColumn = makeKeyMapArrayWithCommon('Select column', ['Mod-Alt
|
|
|
86
86
|
export const selectTable = makeKeyMapWithCommon('Select table', 'Mod-a');
|
|
87
87
|
export const increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-]');
|
|
88
88
|
export const decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
|
|
89
|
+
export const activateVideoControls = makeKeyMapWithCommon('Activate controls panel on video', 'Shift-F10');
|
|
89
90
|
const arrowKeysMap = {
|
|
90
91
|
// for reference: https://wincent.com/wiki/Unicode_representations_of_modifier_keys
|
|
91
92
|
ARROWLEFT: '\u2190',
|
|
@@ -3,7 +3,12 @@ export const commentMessages = defineMessages({
|
|
|
3
3
|
addCommentOnMedia: {
|
|
4
4
|
id: 'fabric.editor.addCommentOnMedia',
|
|
5
5
|
defaultMessage: 'Add comment',
|
|
6
|
-
description: 'Add a comment for this image'
|
|
6
|
+
description: 'Add a comment for this media (image/video)'
|
|
7
|
+
},
|
|
8
|
+
viewCommentsOnMedia: {
|
|
9
|
+
id: 'fabric.editor.viewCommentOnMedia',
|
|
10
|
+
defaultMessage: 'View comment',
|
|
11
|
+
description: 'View a existing comment for this media (image/video)'
|
|
7
12
|
},
|
|
8
13
|
viewAndAddCommentsOnMedia: {
|
|
9
14
|
id: 'fabric.editor.viewAndAddCommentsOnMedia',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "78.23.
|
|
3
|
+
const packageVersion = "78.23.10";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
7
7
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import Layer from '../Layer';
|
|
9
9
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "78.23.
|
|
10
|
+
const packageVersion = "78.23.10";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
@@ -87,6 +87,7 @@ export var selectColumn = makeKeyMapArrayWithCommon('Select column', ['Mod-Alt-S
|
|
|
87
87
|
export var selectTable = makeKeyMapWithCommon('Select table', 'Mod-a');
|
|
88
88
|
export var increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-]');
|
|
89
89
|
export var decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
|
|
90
|
+
export var activateVideoControls = makeKeyMapWithCommon('Activate controls panel on video', 'Shift-F10');
|
|
90
91
|
var arrowKeysMap = {
|
|
91
92
|
// for reference: https://wincent.com/wiki/Unicode_representations_of_modifier_keys
|
|
92
93
|
ARROWLEFT: "\u2190",
|
|
@@ -3,7 +3,12 @@ export var commentMessages = defineMessages({
|
|
|
3
3
|
addCommentOnMedia: {
|
|
4
4
|
id: 'fabric.editor.addCommentOnMedia',
|
|
5
5
|
defaultMessage: 'Add comment',
|
|
6
|
-
description: 'Add a comment for this image'
|
|
6
|
+
description: 'Add a comment for this media (image/video)'
|
|
7
|
+
},
|
|
8
|
+
viewCommentsOnMedia: {
|
|
9
|
+
id: 'fabric.editor.viewCommentOnMedia',
|
|
10
|
+
defaultMessage: 'View comment',
|
|
11
|
+
description: 'View a existing comment for this media (image/video)'
|
|
7
12
|
},
|
|
8
13
|
viewAndAddCommentsOnMedia: {
|
|
9
14
|
id: 'fabric.editor.viewAndAddCommentsOnMedia',
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "78.23.
|
|
9
|
+
var packageVersion = "78.23.10";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
17
17
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
18
18
|
import Layer from '../Layer';
|
|
19
19
|
var packageName = "@atlaskit/editor-common";
|
|
20
|
-
var packageVersion = "78.23.
|
|
20
|
+
var packageVersion = "78.23.10";
|
|
21
21
|
var halfFocusRing = 1;
|
|
22
22
|
var dropOffset = '0, 8';
|
|
23
23
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -84,6 +84,7 @@ export declare const selectColumn: Keymap[];
|
|
|
84
84
|
export declare const selectTable: Keymap;
|
|
85
85
|
export declare const increaseMediaSize: Keymap;
|
|
86
86
|
export declare const decreaseMediaSize: Keymap;
|
|
87
|
+
export declare const activateVideoControls: Keymap;
|
|
87
88
|
export declare function tooltip(keymap?: Keymap, description?: string): string | undefined;
|
|
88
89
|
export declare const ToolTipContent: React.MemoExoticComponent<({ description, shortcutOverride, keymap, }: {
|
|
89
90
|
description?: string | React.ReactNode;
|
|
@@ -4,6 +4,11 @@ export declare const commentMessages: {
|
|
|
4
4
|
defaultMessage: string;
|
|
5
5
|
description: string;
|
|
6
6
|
};
|
|
7
|
+
viewCommentsOnMedia: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
7
12
|
viewAndAddCommentsOnMedia: {
|
|
8
13
|
id: string;
|
|
9
14
|
defaultMessage: string;
|
|
@@ -27,10 +27,18 @@ export interface DropdownOptionT<T extends {}> {
|
|
|
27
27
|
selected?: boolean;
|
|
28
28
|
disabled?: boolean;
|
|
29
29
|
hidden?: boolean;
|
|
30
|
+
domItemOptions?: {
|
|
31
|
+
type: typeOption;
|
|
32
|
+
};
|
|
30
33
|
testId?: string;
|
|
31
34
|
tooltip?: string;
|
|
32
35
|
elemAfter?: React.ReactNode;
|
|
33
36
|
}
|
|
37
|
+
export type typeOption =
|
|
38
|
+
/** Dropdown menu item type
|
|
39
|
+
* @default 'item'
|
|
40
|
+
*/
|
|
41
|
+
'item' | 'item-checkbox';
|
|
34
42
|
export type DropdownOptions<T extends {}> = Array<DropdownOptionT<T>> | {
|
|
35
43
|
render: (props: RenderOptionsPropsT<T>) => React.ReactElement<any> | null;
|
|
36
44
|
height: number;
|
|
@@ -84,6 +84,7 @@ export declare const selectColumn: Keymap[];
|
|
|
84
84
|
export declare const selectTable: Keymap;
|
|
85
85
|
export declare const increaseMediaSize: Keymap;
|
|
86
86
|
export declare const decreaseMediaSize: Keymap;
|
|
87
|
+
export declare const activateVideoControls: Keymap;
|
|
87
88
|
export declare function tooltip(keymap?: Keymap, description?: string): string | undefined;
|
|
88
89
|
export declare const ToolTipContent: React.MemoExoticComponent<({ description, shortcutOverride, keymap, }: {
|
|
89
90
|
description?: string | React.ReactNode;
|
|
@@ -4,6 +4,11 @@ export declare const commentMessages: {
|
|
|
4
4
|
defaultMessage: string;
|
|
5
5
|
description: string;
|
|
6
6
|
};
|
|
7
|
+
viewCommentsOnMedia: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
7
12
|
viewAndAddCommentsOnMedia: {
|
|
8
13
|
id: string;
|
|
9
14
|
defaultMessage: string;
|
|
@@ -27,10 +27,18 @@ export interface DropdownOptionT<T extends {}> {
|
|
|
27
27
|
selected?: boolean;
|
|
28
28
|
disabled?: boolean;
|
|
29
29
|
hidden?: boolean;
|
|
30
|
+
domItemOptions?: {
|
|
31
|
+
type: typeOption;
|
|
32
|
+
};
|
|
30
33
|
testId?: string;
|
|
31
34
|
tooltip?: string;
|
|
32
35
|
elemAfter?: React.ReactNode;
|
|
33
36
|
}
|
|
37
|
+
export type typeOption =
|
|
38
|
+
/** Dropdown menu item type
|
|
39
|
+
* @default 'item'
|
|
40
|
+
*/
|
|
41
|
+
'item' | 'item-checkbox';
|
|
34
42
|
export type DropdownOptions<T extends {}> = Array<DropdownOptionT<T>> | {
|
|
35
43
|
render: (props: RenderOptionsPropsT<T>) => React.ReactElement<any> | null;
|
|
36
44
|
height: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "78.23.
|
|
3
|
+
"version": "78.23.10",
|
|
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/"
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
101
101
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
102
102
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
103
|
-
"@atlaskit/button": "^17.
|
|
103
|
+
"@atlaskit/button": "^17.11.0",
|
|
104
104
|
"@atlaskit/code": "^15.1.0",
|
|
105
105
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
106
106
|
"@atlaskit/custom-steps": "^0.0.17",
|
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
"@atlaskit/media-common": "^11.1.0",
|
|
122
122
|
"@atlaskit/media-file-preview": "^0.5.0",
|
|
123
123
|
"@atlaskit/media-picker": "^66.4.0",
|
|
124
|
-
"@atlaskit/media-ui": "^25.
|
|
125
|
-
"@atlaskit/media-viewer": "48.4.
|
|
124
|
+
"@atlaskit/media-ui": "^25.6.0",
|
|
125
|
+
"@atlaskit/media-viewer": "48.4.4",
|
|
126
126
|
"@atlaskit/mention": "^23.0.0",
|
|
127
127
|
"@atlaskit/menu": "^2.1.0",
|
|
128
128
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|