@atlaskit/editor-common 88.2.0 → 88.3.0
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 +20 -0
- package/dist/cjs/analytics/types/enums.js +1 -1
- package/dist/cjs/messages/media-insert.js +24 -4
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -1
- package/dist/es2019/messages/media-insert.js +24 -4
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -1
- package/dist/esm/messages/media-insert.js +24 -4
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +1 -1
- package/dist/types/analytics/types/general-events.d.ts +1 -1
- package/dist/types/analytics/types/upload-media-events.d.ts +7 -4
- package/dist/types/messages/media-insert.d.ts +22 -2
- package/dist/types-ts4.5/analytics/types/enums.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/general-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/upload-media-events.d.ts +7 -4
- package/dist/types-ts4.5/messages/media-insert.d.ts +22 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 88.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#134463](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134463)
|
|
8
|
+
[`d20ae898369bc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d20ae898369bc) -
|
|
9
|
+
[ux] [ED-24326] Add local file upload tab to media insert popup
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 88.2.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#134213](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/134213)
|
|
20
|
+
[`93bd7032842ec`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/93bd7032842ec) -
|
|
21
|
+
[ux] [ED-24636] Bump ADF Schema package
|
|
22
|
+
|
|
3
23
|
## 88.2.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -382,7 +382,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
|
|
|
382
382
|
ACTION_SUBJECT_ID["ON_UNSUPPORTED_INLINE"] = "onUnsupportedInline";
|
|
383
383
|
ACTION_SUBJECT_ID["ON_UNSUPPORTED_BLOCK"] = "onUnsupportedBlock";
|
|
384
384
|
ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
|
|
385
|
-
ACTION_SUBJECT_ID["
|
|
385
|
+
ACTION_SUBJECT_ID["UPLOAD_MEDIA"] = "uploadMedia";
|
|
386
386
|
return ACTION_SUBJECT_ID;
|
|
387
387
|
}({});
|
|
388
388
|
var FLOATING_CONTROLS_TITLE = exports.FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
|
|
@@ -26,26 +26,46 @@ var mediaInsertMessages = exports.mediaInsertMessages = (0, _reactIntlNext.defin
|
|
|
26
26
|
defaultMessage: 'Cancel',
|
|
27
27
|
description: 'Text on the modal action button that cancels the media file insertion and closes the modal'
|
|
28
28
|
},
|
|
29
|
-
|
|
30
|
-
id: 'fabric.editor.media.insert.
|
|
29
|
+
fromUrlErrorMessage: {
|
|
30
|
+
id: 'fabric.editor.media.insert.fromUrlErrorMessage',
|
|
31
31
|
defaultMessage: 'Unfortunately, we can’t add this image link. Download the image, then drag and drop onto the page.',
|
|
32
32
|
description: 'Error message displayed when a user tries to insert an image from a URL that cannot be loaded. This may be because the URL is invalid, there is a network error or any other reason the preview upload does not succeed. When this occurs the suggestion is to attempt downloading the linked file manually and using a local upload instead.'
|
|
33
33
|
},
|
|
34
|
-
|
|
35
|
-
id: 'fabric.editor.media.insert.
|
|
34
|
+
fromUrlWarning: {
|
|
35
|
+
id: 'fabric.editor.media.insert.fromUrlErrorMessage',
|
|
36
36
|
defaultMessage: 'This image might not be visible to others due to source restrictions. Consider uploading the file instead.',
|
|
37
37
|
description: 'Warning message displayed when a user tries to insert an image from a URL that may not be visible to others due to source restrictions such as not having permissions/authentication to load the image. The suggestion is to upload the file instead.'
|
|
38
38
|
},
|
|
39
|
+
localFileNetworkErrorMessage: {
|
|
40
|
+
id: 'fabric.editor.media.insert.localFileNetworkErrorMessage',
|
|
41
|
+
defaultMessage: 'File upload error. Check file path or network.',
|
|
42
|
+
description: 'Error message displayed when a network error occurs during file upload'
|
|
43
|
+
},
|
|
44
|
+
localFileErrorMessage: {
|
|
45
|
+
id: 'fabric.editor.media.insert.localFileErrorMessage',
|
|
46
|
+
defaultMessage: 'This file couldn’t be uploaded.',
|
|
47
|
+
description: 'Generic catch-all error message displayed when file upload fails'
|
|
48
|
+
},
|
|
39
49
|
mediaAlt: {
|
|
40
50
|
id: 'fabric.editor.media.insert.mediaAlt',
|
|
41
51
|
defaultMessage: 'Preview for uploaded image or video file',
|
|
42
52
|
description: 'Alt text describing a preview of an image uploaded.'
|
|
43
53
|
},
|
|
54
|
+
upload: {
|
|
55
|
+
id: 'fabric.editor.media.insert.upload',
|
|
56
|
+
defaultMessage: 'Upload',
|
|
57
|
+
description: 'Text on a button that opens a file picker dialog to upload a media file'
|
|
58
|
+
},
|
|
44
59
|
linkTabTitle: {
|
|
45
60
|
id: 'fabric.editor.media.insert.linkTabTitle',
|
|
46
61
|
defaultMessage: 'Link',
|
|
47
62
|
description: 'Title of the navigation tab that allows users to insert media from a URL or link'
|
|
48
63
|
},
|
|
64
|
+
fileTabTitle: {
|
|
65
|
+
id: 'fabric.editor.media.insert.fileTabTitle',
|
|
66
|
+
defaultMessage: 'File',
|
|
67
|
+
description: 'Title of the navigation tab that allows users to upload local media files'
|
|
68
|
+
},
|
|
49
69
|
mediaPickerPopupAriaLabel: {
|
|
50
70
|
id: 'fabric.editor.media.insert.mediaPickerPopupAriaLabel',
|
|
51
71
|
defaultMessage: 'Media picker',
|
|
@@ -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 = "88.
|
|
20
|
+
var packageVersion = "88.3.0";
|
|
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 = "88.
|
|
26
|
+
var packageVersion = "88.3.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -376,7 +376,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
376
376
|
ACTION_SUBJECT_ID["ON_UNSUPPORTED_INLINE"] = "onUnsupportedInline";
|
|
377
377
|
ACTION_SUBJECT_ID["ON_UNSUPPORTED_BLOCK"] = "onUnsupportedBlock";
|
|
378
378
|
ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
|
|
379
|
-
ACTION_SUBJECT_ID["
|
|
379
|
+
ACTION_SUBJECT_ID["UPLOAD_MEDIA"] = "uploadMedia";
|
|
380
380
|
return ACTION_SUBJECT_ID;
|
|
381
381
|
}({});
|
|
382
382
|
export let FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
|
|
@@ -20,26 +20,46 @@ export const mediaInsertMessages = defineMessages({
|
|
|
20
20
|
defaultMessage: 'Cancel',
|
|
21
21
|
description: 'Text on the modal action button that cancels the media file insertion and closes the modal'
|
|
22
22
|
},
|
|
23
|
-
|
|
24
|
-
id: 'fabric.editor.media.insert.
|
|
23
|
+
fromUrlErrorMessage: {
|
|
24
|
+
id: 'fabric.editor.media.insert.fromUrlErrorMessage',
|
|
25
25
|
defaultMessage: 'Unfortunately, we can’t add this image link. Download the image, then drag and drop onto the page.',
|
|
26
26
|
description: 'Error message displayed when a user tries to insert an image from a URL that cannot be loaded. This may be because the URL is invalid, there is a network error or any other reason the preview upload does not succeed. When this occurs the suggestion is to attempt downloading the linked file manually and using a local upload instead.'
|
|
27
27
|
},
|
|
28
|
-
|
|
29
|
-
id: 'fabric.editor.media.insert.
|
|
28
|
+
fromUrlWarning: {
|
|
29
|
+
id: 'fabric.editor.media.insert.fromUrlErrorMessage',
|
|
30
30
|
defaultMessage: 'This image might not be visible to others due to source restrictions. Consider uploading the file instead.',
|
|
31
31
|
description: 'Warning message displayed when a user tries to insert an image from a URL that may not be visible to others due to source restrictions such as not having permissions/authentication to load the image. The suggestion is to upload the file instead.'
|
|
32
32
|
},
|
|
33
|
+
localFileNetworkErrorMessage: {
|
|
34
|
+
id: 'fabric.editor.media.insert.localFileNetworkErrorMessage',
|
|
35
|
+
defaultMessage: 'File upload error. Check file path or network.',
|
|
36
|
+
description: 'Error message displayed when a network error occurs during file upload'
|
|
37
|
+
},
|
|
38
|
+
localFileErrorMessage: {
|
|
39
|
+
id: 'fabric.editor.media.insert.localFileErrorMessage',
|
|
40
|
+
defaultMessage: 'This file couldn’t be uploaded.',
|
|
41
|
+
description: 'Generic catch-all error message displayed when file upload fails'
|
|
42
|
+
},
|
|
33
43
|
mediaAlt: {
|
|
34
44
|
id: 'fabric.editor.media.insert.mediaAlt',
|
|
35
45
|
defaultMessage: 'Preview for uploaded image or video file',
|
|
36
46
|
description: 'Alt text describing a preview of an image uploaded.'
|
|
37
47
|
},
|
|
48
|
+
upload: {
|
|
49
|
+
id: 'fabric.editor.media.insert.upload',
|
|
50
|
+
defaultMessage: 'Upload',
|
|
51
|
+
description: 'Text on a button that opens a file picker dialog to upload a media file'
|
|
52
|
+
},
|
|
38
53
|
linkTabTitle: {
|
|
39
54
|
id: 'fabric.editor.media.insert.linkTabTitle',
|
|
40
55
|
defaultMessage: 'Link',
|
|
41
56
|
description: 'Title of the navigation tab that allows users to insert media from a URL or link'
|
|
42
57
|
},
|
|
58
|
+
fileTabTitle: {
|
|
59
|
+
id: 'fabric.editor.media.insert.fileTabTitle',
|
|
60
|
+
defaultMessage: 'File',
|
|
61
|
+
description: 'Title of the navigation tab that allows users to upload local media files'
|
|
62
|
+
},
|
|
43
63
|
mediaPickerPopupAriaLabel: {
|
|
44
64
|
id: 'fabric.editor.media.insert.mediaPickerPopupAriaLabel',
|
|
45
65
|
defaultMessage: 'Media picker',
|
|
@@ -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 = "88.
|
|
4
|
+
const packageVersion = "88.3.0";
|
|
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 = "88.
|
|
15
|
+
const packageVersion = "88.3.0";
|
|
16
16
|
const halfFocusRing = 1;
|
|
17
17
|
const dropOffset = '0, 8';
|
|
18
18
|
class DropList extends Component {
|
|
@@ -376,7 +376,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
376
376
|
ACTION_SUBJECT_ID["ON_UNSUPPORTED_INLINE"] = "onUnsupportedInline";
|
|
377
377
|
ACTION_SUBJECT_ID["ON_UNSUPPORTED_BLOCK"] = "onUnsupportedBlock";
|
|
378
378
|
ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
|
|
379
|
-
ACTION_SUBJECT_ID["
|
|
379
|
+
ACTION_SUBJECT_ID["UPLOAD_MEDIA"] = "uploadMedia";
|
|
380
380
|
return ACTION_SUBJECT_ID;
|
|
381
381
|
}({});
|
|
382
382
|
export var FLOATING_CONTROLS_TITLE = /*#__PURE__*/function (FLOATING_CONTROLS_TITLE) {
|
|
@@ -20,26 +20,46 @@ export var mediaInsertMessages = defineMessages({
|
|
|
20
20
|
defaultMessage: 'Cancel',
|
|
21
21
|
description: 'Text on the modal action button that cancels the media file insertion and closes the modal'
|
|
22
22
|
},
|
|
23
|
-
|
|
24
|
-
id: 'fabric.editor.media.insert.
|
|
23
|
+
fromUrlErrorMessage: {
|
|
24
|
+
id: 'fabric.editor.media.insert.fromUrlErrorMessage',
|
|
25
25
|
defaultMessage: 'Unfortunately, we can’t add this image link. Download the image, then drag and drop onto the page.',
|
|
26
26
|
description: 'Error message displayed when a user tries to insert an image from a URL that cannot be loaded. This may be because the URL is invalid, there is a network error or any other reason the preview upload does not succeed. When this occurs the suggestion is to attempt downloading the linked file manually and using a local upload instead.'
|
|
27
27
|
},
|
|
28
|
-
|
|
29
|
-
id: 'fabric.editor.media.insert.
|
|
28
|
+
fromUrlWarning: {
|
|
29
|
+
id: 'fabric.editor.media.insert.fromUrlErrorMessage',
|
|
30
30
|
defaultMessage: 'This image might not be visible to others due to source restrictions. Consider uploading the file instead.',
|
|
31
31
|
description: 'Warning message displayed when a user tries to insert an image from a URL that may not be visible to others due to source restrictions such as not having permissions/authentication to load the image. The suggestion is to upload the file instead.'
|
|
32
32
|
},
|
|
33
|
+
localFileNetworkErrorMessage: {
|
|
34
|
+
id: 'fabric.editor.media.insert.localFileNetworkErrorMessage',
|
|
35
|
+
defaultMessage: 'File upload error. Check file path or network.',
|
|
36
|
+
description: 'Error message displayed when a network error occurs during file upload'
|
|
37
|
+
},
|
|
38
|
+
localFileErrorMessage: {
|
|
39
|
+
id: 'fabric.editor.media.insert.localFileErrorMessage',
|
|
40
|
+
defaultMessage: 'This file couldn’t be uploaded.',
|
|
41
|
+
description: 'Generic catch-all error message displayed when file upload fails'
|
|
42
|
+
},
|
|
33
43
|
mediaAlt: {
|
|
34
44
|
id: 'fabric.editor.media.insert.mediaAlt',
|
|
35
45
|
defaultMessage: 'Preview for uploaded image or video file',
|
|
36
46
|
description: 'Alt text describing a preview of an image uploaded.'
|
|
37
47
|
},
|
|
48
|
+
upload: {
|
|
49
|
+
id: 'fabric.editor.media.insert.upload',
|
|
50
|
+
defaultMessage: 'Upload',
|
|
51
|
+
description: 'Text on a button that opens a file picker dialog to upload a media file'
|
|
52
|
+
},
|
|
38
53
|
linkTabTitle: {
|
|
39
54
|
id: 'fabric.editor.media.insert.linkTabTitle',
|
|
40
55
|
defaultMessage: 'Link',
|
|
41
56
|
description: 'Title of the navigation tab that allows users to insert media from a URL or link'
|
|
42
57
|
},
|
|
58
|
+
fileTabTitle: {
|
|
59
|
+
id: 'fabric.editor.media.insert.fileTabTitle',
|
|
60
|
+
defaultMessage: 'File',
|
|
61
|
+
description: 'Title of the navigation tab that allows users to upload local media files'
|
|
62
|
+
},
|
|
43
63
|
mediaPickerPopupAriaLabel: {
|
|
44
64
|
id: 'fabric.editor.media.insert.mediaPickerPopupAriaLabel',
|
|
45
65
|
defaultMessage: 'Media picker',
|
|
@@ -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 = "88.
|
|
10
|
+
var packageVersion = "88.3.0";
|
|
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 = "88.
|
|
23
|
+
var packageVersion = "88.3.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -379,7 +379,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
379
379
|
ON_UNSUPPORTED_INLINE = "onUnsupportedInline",
|
|
380
380
|
ON_UNSUPPORTED_BLOCK = "onUnsupportedBlock",
|
|
381
381
|
MULTI_BODIED_EXTENSION = "multiBodiedExtension",
|
|
382
|
-
|
|
382
|
+
UPLOAD_MEDIA = "uploadMedia"
|
|
383
383
|
}
|
|
384
384
|
export declare enum FLOATING_CONTROLS_TITLE {
|
|
385
385
|
CODE_BLOCK = "codeBlockFloatingControls",
|
|
@@ -129,7 +129,7 @@ type ButtonHelpAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_HELP, {
|
|
|
129
129
|
inputMethod: INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR;
|
|
130
130
|
}>;
|
|
131
131
|
type ButtonFeedbackAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_FEEDBACK, undefined>;
|
|
132
|
-
type ButtonUploadMediaAEP = ButtonAEP<ACTION_SUBJECT_ID.
|
|
132
|
+
type ButtonUploadMediaAEP = ButtonAEP<ACTION_SUBJECT_ID.UPLOAD_MEDIA, undefined>;
|
|
133
133
|
type PickerEmojiAEP = PickerAEP<ACTION_SUBJECT_ID.PICKER_EMOJI, {
|
|
134
134
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD;
|
|
135
135
|
}>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
|
|
2
2
|
import type { OperationalAEP } from './utils';
|
|
3
|
-
type MediaUploadAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
type MediaUploadAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.UPLOAD_MEDIA, Attributes>;
|
|
4
|
+
type SourceAttrs = {
|
|
5
|
+
mediaUploadSource: 'local' | 'url';
|
|
6
|
+
};
|
|
7
|
+
type MediaUploadCommencedAEP = MediaUploadAEP<ACTION.UPLOAD_COMMENCED, SourceAttrs>;
|
|
8
|
+
type MediaUploadSuccessAEP = MediaUploadAEP<ACTION.UPLOAD_SUCCEEDED, SourceAttrs>;
|
|
9
|
+
type MediaUploadFailAEP = MediaUploadAEP<ACTION.UPLOAD_FAILED, SourceAttrs & {
|
|
7
10
|
reason: string;
|
|
8
11
|
}>;
|
|
9
12
|
export type MediaUploadEventPayload = MediaUploadCommencedAEP | MediaUploadSuccessAEP | MediaUploadFailAEP;
|
|
@@ -19,12 +19,22 @@ export declare const mediaInsertMessages: {
|
|
|
19
19
|
defaultMessage: string;
|
|
20
20
|
description: string;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
fromUrlErrorMessage: {
|
|
23
23
|
id: string;
|
|
24
24
|
defaultMessage: string;
|
|
25
25
|
description: string;
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
fromUrlWarning: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
localFileNetworkErrorMessage: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
localFileErrorMessage: {
|
|
28
38
|
id: string;
|
|
29
39
|
defaultMessage: string;
|
|
30
40
|
description: string;
|
|
@@ -34,11 +44,21 @@ export declare const mediaInsertMessages: {
|
|
|
34
44
|
defaultMessage: string;
|
|
35
45
|
description: string;
|
|
36
46
|
};
|
|
47
|
+
upload: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
37
52
|
linkTabTitle: {
|
|
38
53
|
id: string;
|
|
39
54
|
defaultMessage: string;
|
|
40
55
|
description: string;
|
|
41
56
|
};
|
|
57
|
+
fileTabTitle: {
|
|
58
|
+
id: string;
|
|
59
|
+
defaultMessage: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
42
62
|
mediaPickerPopupAriaLabel: {
|
|
43
63
|
id: string;
|
|
44
64
|
defaultMessage: string;
|
|
@@ -379,7 +379,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
379
379
|
ON_UNSUPPORTED_INLINE = "onUnsupportedInline",
|
|
380
380
|
ON_UNSUPPORTED_BLOCK = "onUnsupportedBlock",
|
|
381
381
|
MULTI_BODIED_EXTENSION = "multiBodiedExtension",
|
|
382
|
-
|
|
382
|
+
UPLOAD_MEDIA = "uploadMedia"
|
|
383
383
|
}
|
|
384
384
|
export declare enum FLOATING_CONTROLS_TITLE {
|
|
385
385
|
CODE_BLOCK = "codeBlockFloatingControls",
|
|
@@ -129,7 +129,7 @@ type ButtonHelpAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_HELP, {
|
|
|
129
129
|
inputMethod: INPUT_METHOD.SHORTCUT | INPUT_METHOD.TOOLBAR;
|
|
130
130
|
}>;
|
|
131
131
|
type ButtonFeedbackAEP = ButtonAEP<ACTION_SUBJECT_ID.BUTTON_FEEDBACK, undefined>;
|
|
132
|
-
type ButtonUploadMediaAEP = ButtonAEP<ACTION_SUBJECT_ID.
|
|
132
|
+
type ButtonUploadMediaAEP = ButtonAEP<ACTION_SUBJECT_ID.UPLOAD_MEDIA, undefined>;
|
|
133
133
|
type PickerEmojiAEP = PickerAEP<ACTION_SUBJECT_ID.PICKER_EMOJI, {
|
|
134
134
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD;
|
|
135
135
|
}>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
|
|
2
2
|
import type { OperationalAEP } from './utils';
|
|
3
|
-
type MediaUploadAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
type MediaUploadAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.UPLOAD_MEDIA, Attributes>;
|
|
4
|
+
type SourceAttrs = {
|
|
5
|
+
mediaUploadSource: 'local' | 'url';
|
|
6
|
+
};
|
|
7
|
+
type MediaUploadCommencedAEP = MediaUploadAEP<ACTION.UPLOAD_COMMENCED, SourceAttrs>;
|
|
8
|
+
type MediaUploadSuccessAEP = MediaUploadAEP<ACTION.UPLOAD_SUCCEEDED, SourceAttrs>;
|
|
9
|
+
type MediaUploadFailAEP = MediaUploadAEP<ACTION.UPLOAD_FAILED, SourceAttrs & {
|
|
7
10
|
reason: string;
|
|
8
11
|
}>;
|
|
9
12
|
export type MediaUploadEventPayload = MediaUploadCommencedAEP | MediaUploadSuccessAEP | MediaUploadFailAEP;
|
|
@@ -19,12 +19,22 @@ export declare const mediaInsertMessages: {
|
|
|
19
19
|
defaultMessage: string;
|
|
20
20
|
description: string;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
fromUrlErrorMessage: {
|
|
23
23
|
id: string;
|
|
24
24
|
defaultMessage: string;
|
|
25
25
|
description: string;
|
|
26
26
|
};
|
|
27
|
-
|
|
27
|
+
fromUrlWarning: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
localFileNetworkErrorMessage: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
localFileErrorMessage: {
|
|
28
38
|
id: string;
|
|
29
39
|
defaultMessage: string;
|
|
30
40
|
description: string;
|
|
@@ -34,11 +44,21 @@ export declare const mediaInsertMessages: {
|
|
|
34
44
|
defaultMessage: string;
|
|
35
45
|
description: string;
|
|
36
46
|
};
|
|
47
|
+
upload: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
37
52
|
linkTabTitle: {
|
|
38
53
|
id: string;
|
|
39
54
|
defaultMessage: string;
|
|
40
55
|
description: string;
|
|
41
56
|
};
|
|
57
|
+
fileTabTitle: {
|
|
58
|
+
id: string;
|
|
59
|
+
defaultMessage: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
42
62
|
mediaPickerPopupAriaLabel: {
|
|
43
63
|
id: string;
|
|
44
64
|
defaultMessage: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "88.
|
|
3
|
+
"version": "88.3.0",
|
|
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/"
|
|
@@ -99,17 +99,17 @@
|
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
101
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
102
|
-
"@atlaskit/adf-schema": "^40.
|
|
102
|
+
"@atlaskit/adf-schema": "^40.9.0",
|
|
103
103
|
"@atlaskit/adf-utils": "^19.8.0",
|
|
104
104
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
105
105
|
"@atlaskit/analytics-namespaced-context": "^6.11.0",
|
|
106
106
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
107
107
|
"@atlaskit/atlassian-context": "^0.0.1",
|
|
108
108
|
"@atlaskit/button": "^20.1.0",
|
|
109
|
-
"@atlaskit/code": "^15.
|
|
109
|
+
"@atlaskit/code": "^15.6.0",
|
|
110
110
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
111
111
|
"@atlaskit/custom-steps": "^0.7.0",
|
|
112
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
112
|
+
"@atlaskit/dropdown-menu": "^12.18.0",
|
|
113
113
|
"@atlaskit/editor-json-transformer": "^8.18.0",
|
|
114
114
|
"@atlaskit/editor-palette": "1.6.0",
|
|
115
115
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
@@ -132,9 +132,9 @@
|
|
|
132
132
|
"@atlaskit/menu": "^2.12.0",
|
|
133
133
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
134
134
|
"@atlaskit/primitives": "^12.0.0",
|
|
135
|
-
"@atlaskit/profilecard": "^19.
|
|
135
|
+
"@atlaskit/profilecard": "^19.22.0",
|
|
136
136
|
"@atlaskit/section-message": "^6.6.0",
|
|
137
|
-
"@atlaskit/smart-card": "^27.
|
|
137
|
+
"@atlaskit/smart-card": "^27.19.0",
|
|
138
138
|
"@atlaskit/smart-user-picker": "^6.10.0",
|
|
139
139
|
"@atlaskit/spinner": "^16.3.0",
|
|
140
140
|
"@atlaskit/task-decision": "^17.10.0",
|