@atlaskit/editor-common 78.23.9 → 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 +6 -0
- 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/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/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/media/messages/comments.d.ts +5 -0
- package/dist/types/types/floating-toolbar.d.ts +8 -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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 78.23.9
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -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) {
|
|
@@ -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 {
|
|
@@ -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) {
|
|
@@ -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;
|
|
@@ -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