@atlaskit/editor-common 76.25.3 → 76.25.5
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 +12 -0
- package/dist/cjs/keymaps/index.js +4 -2
- package/dist/cjs/messages/card.js +25 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/keymaps/index.js +2 -0
- package/dist/es2019/messages/card.js +25 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/keymaps/index.js +2 -0
- package/dist/esm/messages/card.js +25 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/media-events.d.ts +3 -0
- package/dist/types/analytics/types/type-ahead.d.ts +1 -0
- package/dist/types/keymaps/index.d.ts +2 -0
- package/dist/types/messages/card.d.ts +25 -0
- package/dist/types-ts4.5/analytics/types/media-events.d.ts +3 -0
- package/dist/types-ts4.5/analytics/types/type-ahead.d.ts +1 -0
- package/dist/types-ts4.5/keymaps/index.d.ts +2 -0
- package/dist/types-ts4.5/messages/card.d.ts +25 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 76.25.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#57192](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/57192) [`cb7776f514cb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cb7776f514cb) - Fix issue like table and assets editor plugin card not translated issue
|
|
8
|
+
|
|
9
|
+
## 76.25.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#56827](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/56827) [`9966463429c6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/9966463429c6) - ECA11Y-86: Added ability to resize media via keyboard and added announcer
|
|
14
|
+
|
|
3
15
|
## 76.25.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -81,14 +81,14 @@ Object.defineProperty(exports, "UP", {
|
|
|
81
81
|
exports.backspace = exports.altPaste = exports.alignLeft = exports.addRowBefore = exports.addRowAfter = exports.addLink = exports.addInlineComment = exports.addColumnBefore = exports.addColumnAfter = exports.addAltText = void 0;
|
|
82
82
|
exports.bindKeymapWithCommand = bindKeymapWithCommand;
|
|
83
83
|
exports.bindKeymapWithEditorCommand = bindKeymapWithEditorCommand;
|
|
84
|
-
exports.find = exports.escape = exports.enter = exports.deleteKey = exports.cut = exports.ctrlBackSpace = exports.copy = exports.clearFormatting = void 0;
|
|
84
|
+
exports.find = exports.escape = exports.enter = exports.deleteKey = exports.decreaseMediaSize = exports.cut = exports.ctrlBackSpace = exports.copy = exports.clearFormatting = void 0;
|
|
85
85
|
exports.findKeyMapForBrowser = findKeyMapForBrowser;
|
|
86
86
|
exports.findKeymapByDescription = findKeymapByDescription;
|
|
87
87
|
exports.findShortcutByDescription = findShortcutByDescription;
|
|
88
88
|
exports.findShortcutByKeymap = findShortcutByKeymap;
|
|
89
89
|
exports.forwardDelete = void 0;
|
|
90
90
|
exports.getAriaKeyshortcuts = getAriaKeyshortcuts;
|
|
91
|
-
exports.insertRule = exports.insertNewLine = exports.indentList = exports.indent = void 0;
|
|
91
|
+
exports.insertRule = exports.insertNewLine = exports.indentList = exports.indent = exports.increaseMediaSize = void 0;
|
|
92
92
|
exports.isCapsLockOnAndModifyKeyboardEvent = isCapsLockOnAndModifyKeyboardEvent;
|
|
93
93
|
Object.defineProperty(exports, "keymap", {
|
|
94
94
|
enumerable: true,
|
|
@@ -181,6 +181,8 @@ var altPaste = exports.altPaste = makeKeyMapWithCommon('Paste', 'Mod-Shift-v');
|
|
|
181
181
|
var find = exports.find = makeKeyMapWithCommon('Find', 'Mod-f');
|
|
182
182
|
var alignLeft = exports.alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
|
|
183
183
|
var toggleTaskItemCheckbox = exports.toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
|
|
184
|
+
var increaseMediaSize = exports.increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-]');
|
|
185
|
+
var decreaseMediaSize = exports.decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
|
|
184
186
|
var arrowKeysMap = {
|
|
185
187
|
// for reference: https://wincent.com/wiki/Unicode_representations_of_modifier_keys
|
|
186
188
|
ARROWLEFT: "\u2190",
|
|
@@ -90,5 +90,30 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
90
90
|
id: 'fabric.editor.datasourceTitle',
|
|
91
91
|
defaultMessage: 'Edit search query',
|
|
92
92
|
description: 'Tooltip of button to edit a card into a datasource'
|
|
93
|
+
},
|
|
94
|
+
datasourceJiraIssue: {
|
|
95
|
+
id: 'fabric.editor.datasource.jiraIssue',
|
|
96
|
+
defaultMessage: 'Jira Issues',
|
|
97
|
+
description: 'Insert a jira datasource table'
|
|
98
|
+
},
|
|
99
|
+
datasourceJiraIssueDescription: {
|
|
100
|
+
id: 'fabric.editor.datasource.jiraIssue.description',
|
|
101
|
+
defaultMessage: 'Insert Jira issues from Jira Cloud with enhanced search, filtering, and configuration.',
|
|
102
|
+
description: 'Insert a jira datasource table'
|
|
103
|
+
},
|
|
104
|
+
datasourceAssetsObjects: {
|
|
105
|
+
id: 'fabric.editor.datasource.assetsObjects',
|
|
106
|
+
defaultMessage: 'Assets (Beta)',
|
|
107
|
+
description: 'Text displayed when selecting the type of data to include onto the page, in this case: JSM Assets objects. This feature is currently in Beta release, so we also include messaging for that.'
|
|
108
|
+
},
|
|
109
|
+
datasourceAssetsObjectsDescription: {
|
|
110
|
+
id: 'fabric.editor.datasource.assetsObjects.description',
|
|
111
|
+
defaultMessage: 'Insert objects from Assets in Jira Service Management with search and filtering',
|
|
112
|
+
description: 'Description text displayed when selecting the type of data to include onto the page, in this case: JSM Assets objects'
|
|
113
|
+
},
|
|
114
|
+
inlineOverlay: {
|
|
115
|
+
id: 'fabric.editor.inlineOverlay',
|
|
116
|
+
defaultMessage: 'Change view',
|
|
117
|
+
description: 'An overlay shown when hover over inline smart link to inform user that they can change link view to card and/or embed.'
|
|
93
118
|
}
|
|
94
119
|
});
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
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 = "76.25.
|
|
19
|
+
var packageVersion = "76.25.5";
|
|
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
|
|
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
24
24
|
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); }; }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "76.25.
|
|
27
|
+
var packageVersion = "76.25.5";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -71,6 +71,8 @@ export const altPaste = makeKeyMapWithCommon('Paste', 'Mod-Shift-v');
|
|
|
71
71
|
export const find = makeKeyMapWithCommon('Find', 'Mod-f');
|
|
72
72
|
export const alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
|
|
73
73
|
export const toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
|
|
74
|
+
export const increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-]');
|
|
75
|
+
export const decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
|
|
74
76
|
const arrowKeysMap = {
|
|
75
77
|
// for reference: https://wincent.com/wiki/Unicode_representations_of_modifier_keys
|
|
76
78
|
ARROWLEFT: '\u2190',
|
|
@@ -84,5 +84,30 @@ export const messages = defineMessages({
|
|
|
84
84
|
id: 'fabric.editor.datasourceTitle',
|
|
85
85
|
defaultMessage: 'Edit search query',
|
|
86
86
|
description: 'Tooltip of button to edit a card into a datasource'
|
|
87
|
+
},
|
|
88
|
+
datasourceJiraIssue: {
|
|
89
|
+
id: 'fabric.editor.datasource.jiraIssue',
|
|
90
|
+
defaultMessage: 'Jira Issues',
|
|
91
|
+
description: 'Insert a jira datasource table'
|
|
92
|
+
},
|
|
93
|
+
datasourceJiraIssueDescription: {
|
|
94
|
+
id: 'fabric.editor.datasource.jiraIssue.description',
|
|
95
|
+
defaultMessage: 'Insert Jira issues from Jira Cloud with enhanced search, filtering, and configuration.',
|
|
96
|
+
description: 'Insert a jira datasource table'
|
|
97
|
+
},
|
|
98
|
+
datasourceAssetsObjects: {
|
|
99
|
+
id: 'fabric.editor.datasource.assetsObjects',
|
|
100
|
+
defaultMessage: 'Assets (Beta)',
|
|
101
|
+
description: 'Text displayed when selecting the type of data to include onto the page, in this case: JSM Assets objects. This feature is currently in Beta release, so we also include messaging for that.'
|
|
102
|
+
},
|
|
103
|
+
datasourceAssetsObjectsDescription: {
|
|
104
|
+
id: 'fabric.editor.datasource.assetsObjects.description',
|
|
105
|
+
defaultMessage: 'Insert objects from Assets in Jira Service Management with search and filtering',
|
|
106
|
+
description: 'Description text displayed when selecting the type of data to include onto the page, in this case: JSM Assets objects'
|
|
107
|
+
},
|
|
108
|
+
inlineOverlay: {
|
|
109
|
+
id: 'fabric.editor.inlineOverlay',
|
|
110
|
+
defaultMessage: 'Change view',
|
|
111
|
+
description: 'An overlay shown when hover over inline smart link to inform user that they can change link view to card and/or embed.'
|
|
87
112
|
}
|
|
88
113
|
});
|
|
@@ -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 = "76.25.
|
|
3
|
+
const packageVersion = "76.25.5";
|
|
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
|
|
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
9
9
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
10
10
|
import Layer from '../Layer';
|
|
11
11
|
const packageName = "@atlaskit/editor-common";
|
|
12
|
-
const packageVersion = "76.25.
|
|
12
|
+
const packageVersion = "76.25.5";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = '0, 8';
|
|
15
15
|
class DropList extends Component {
|
|
@@ -74,6 +74,8 @@ export var altPaste = makeKeyMapWithCommon('Paste', 'Mod-Shift-v');
|
|
|
74
74
|
export var find = makeKeyMapWithCommon('Find', 'Mod-f');
|
|
75
75
|
export var alignLeft = makeKeyMapWithCommon('Align Left', 'Mod-Shift-l');
|
|
76
76
|
export var toggleTaskItemCheckbox = makeKeyMapWithCommon('Toggles task item', 'Mod-Alt-Enter');
|
|
77
|
+
export var increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-]');
|
|
78
|
+
export var decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
|
|
77
79
|
var arrowKeysMap = {
|
|
78
80
|
// for reference: https://wincent.com/wiki/Unicode_representations_of_modifier_keys
|
|
79
81
|
ARROWLEFT: "\u2190",
|
|
@@ -84,5 +84,30 @@ export var messages = defineMessages({
|
|
|
84
84
|
id: 'fabric.editor.datasourceTitle',
|
|
85
85
|
defaultMessage: 'Edit search query',
|
|
86
86
|
description: 'Tooltip of button to edit a card into a datasource'
|
|
87
|
+
},
|
|
88
|
+
datasourceJiraIssue: {
|
|
89
|
+
id: 'fabric.editor.datasource.jiraIssue',
|
|
90
|
+
defaultMessage: 'Jira Issues',
|
|
91
|
+
description: 'Insert a jira datasource table'
|
|
92
|
+
},
|
|
93
|
+
datasourceJiraIssueDescription: {
|
|
94
|
+
id: 'fabric.editor.datasource.jiraIssue.description',
|
|
95
|
+
defaultMessage: 'Insert Jira issues from Jira Cloud with enhanced search, filtering, and configuration.',
|
|
96
|
+
description: 'Insert a jira datasource table'
|
|
97
|
+
},
|
|
98
|
+
datasourceAssetsObjects: {
|
|
99
|
+
id: 'fabric.editor.datasource.assetsObjects',
|
|
100
|
+
defaultMessage: 'Assets (Beta)',
|
|
101
|
+
description: 'Text displayed when selecting the type of data to include onto the page, in this case: JSM Assets objects. This feature is currently in Beta release, so we also include messaging for that.'
|
|
102
|
+
},
|
|
103
|
+
datasourceAssetsObjectsDescription: {
|
|
104
|
+
id: 'fabric.editor.datasource.assetsObjects.description',
|
|
105
|
+
defaultMessage: 'Insert objects from Assets in Jira Service Management with search and filtering',
|
|
106
|
+
description: 'Description text displayed when selecting the type of data to include onto the page, in this case: JSM Assets objects'
|
|
107
|
+
},
|
|
108
|
+
inlineOverlay: {
|
|
109
|
+
id: 'fabric.editor.inlineOverlay',
|
|
110
|
+
defaultMessage: 'Change view',
|
|
111
|
+
description: 'An overlay shown when hover over inline smart link to inform user that they can change link view to card and/or embed.'
|
|
87
112
|
}
|
|
88
113
|
});
|
|
@@ -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 = "76.25.
|
|
9
|
+
var packageVersion = "76.25.5";
|
|
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
|
|
@@ -19,7 +19,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
19
19
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
20
20
|
import Layer from '../Layer';
|
|
21
21
|
var packageName = "@atlaskit/editor-common";
|
|
22
|
-
var packageVersion = "76.25.
|
|
22
|
+
var packageVersion = "76.25.5";
|
|
23
23
|
var halfFocusRing = 1;
|
|
24
24
|
var dropOffset = '0, 8';
|
|
25
25
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { GuidelineTypes, WidthTypes } from '../../guideline/types';
|
|
3
3
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
4
|
+
import type { EventInput } from './type-ahead';
|
|
4
5
|
import type { TrackAEP, UIAEP } from './utils';
|
|
5
6
|
type MediaBorderActionType = ACTION.UPDATED | ACTION.ADDED | ACTION.DELETED;
|
|
6
7
|
export type MediaBorderTrackAction = TrackAEP<MediaBorderActionType, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.BORDER, any, undefined>;
|
|
@@ -16,6 +17,7 @@ type MediaResizeAttributes = {
|
|
|
16
17
|
layout: string;
|
|
17
18
|
snapType: GuidelineTypes;
|
|
18
19
|
parentNode?: string;
|
|
20
|
+
inputMethod: EventInput;
|
|
19
21
|
};
|
|
20
22
|
export type MediaResizeTrackAction = UIAEP<ACTION.EDITED, ACTION_SUBJECT.MEDIA_SINGLE | ACTION_SUBJECT.EMBEDS, ACTION_SUBJECT_ID.RESIZED, MediaResizeAttributes, undefined>;
|
|
21
23
|
type MediaInputResizeAttributes = {
|
|
@@ -23,6 +25,7 @@ type MediaInputResizeAttributes = {
|
|
|
23
25
|
layout: RichMediaLayout;
|
|
24
26
|
validation: 'valid' | 'greater-than-max' | 'less-than-min';
|
|
25
27
|
parentNode?: string;
|
|
28
|
+
inputMethod: EventInput;
|
|
26
29
|
};
|
|
27
30
|
export type MediaInputResizeTrackAction = UIAEP<ACTION.EDITED, ACTION_SUBJECT.MEDIA_SINGLE | ACTION_SUBJECT.EMBEDS, ACTION_SUBJECT_ID.RESIZED, MediaInputResizeAttributes, undefined>;
|
|
28
31
|
type MediaSwitchType = ACTION_SUBJECT_ID.MEDIA_INLINE | ACTION_SUBJECT_ID.MEDIA_GROUP;
|
|
@@ -24,4 +24,5 @@ type TypeAheadQuickInsertAEP = TypeAheadAEP<ACTION_SUBJECT_ID.TYPEAHEAD_QUICK_IN
|
|
|
24
24
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.KEYBOARD;
|
|
25
25
|
}>;
|
|
26
26
|
export type TypeAheadPayload = TypeAheadEmojiAEP | TypeAheadLinkAEP | TypeAheadMentionAEP | TypeAheadQuickInsertAEP | TypeAheadRenderedAEP | TypeAheadItemViewedAEP;
|
|
27
|
+
export type EventInput = 'keyboard' | 'mouse' | 'floatingToolBar';
|
|
27
28
|
export {};
|
|
@@ -69,6 +69,8 @@ export declare const altPaste: Keymap;
|
|
|
69
69
|
export declare const find: Keymap;
|
|
70
70
|
export declare const alignLeft: Keymap;
|
|
71
71
|
export declare const toggleTaskItemCheckbox: Keymap;
|
|
72
|
+
export declare const increaseMediaSize: Keymap;
|
|
73
|
+
export declare const decreaseMediaSize: Keymap;
|
|
72
74
|
export declare function tooltip(keymap?: Keymap, description?: string): string | undefined;
|
|
73
75
|
export declare const ToolTipContent: React.MemoExoticComponent<({ description, shortcutOverride, keymap, }: {
|
|
74
76
|
description?: string | React.ReactNode;
|
|
@@ -84,4 +84,29 @@ export declare const messages: {
|
|
|
84
84
|
defaultMessage: string;
|
|
85
85
|
description: string;
|
|
86
86
|
};
|
|
87
|
+
datasourceJiraIssue: {
|
|
88
|
+
id: string;
|
|
89
|
+
defaultMessage: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
datasourceJiraIssueDescription: {
|
|
93
|
+
id: string;
|
|
94
|
+
defaultMessage: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
datasourceAssetsObjects: {
|
|
98
|
+
id: string;
|
|
99
|
+
defaultMessage: string;
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
datasourceAssetsObjectsDescription: {
|
|
103
|
+
id: string;
|
|
104
|
+
defaultMessage: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
inlineOverlay: {
|
|
108
|
+
id: string;
|
|
109
|
+
defaultMessage: string;
|
|
110
|
+
description: string;
|
|
111
|
+
};
|
|
87
112
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { GuidelineTypes, WidthTypes } from '../../guideline/types';
|
|
3
3
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
4
|
+
import type { EventInput } from './type-ahead';
|
|
4
5
|
import type { TrackAEP, UIAEP } from './utils';
|
|
5
6
|
type MediaBorderActionType = ACTION.UPDATED | ACTION.ADDED | ACTION.DELETED;
|
|
6
7
|
export type MediaBorderTrackAction = TrackAEP<MediaBorderActionType, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.BORDER, any, undefined>;
|
|
@@ -16,6 +17,7 @@ type MediaResizeAttributes = {
|
|
|
16
17
|
layout: string;
|
|
17
18
|
snapType: GuidelineTypes;
|
|
18
19
|
parentNode?: string;
|
|
20
|
+
inputMethod: EventInput;
|
|
19
21
|
};
|
|
20
22
|
export type MediaResizeTrackAction = UIAEP<ACTION.EDITED, ACTION_SUBJECT.MEDIA_SINGLE | ACTION_SUBJECT.EMBEDS, ACTION_SUBJECT_ID.RESIZED, MediaResizeAttributes, undefined>;
|
|
21
23
|
type MediaInputResizeAttributes = {
|
|
@@ -23,6 +25,7 @@ type MediaInputResizeAttributes = {
|
|
|
23
25
|
layout: RichMediaLayout;
|
|
24
26
|
validation: 'valid' | 'greater-than-max' | 'less-than-min';
|
|
25
27
|
parentNode?: string;
|
|
28
|
+
inputMethod: EventInput;
|
|
26
29
|
};
|
|
27
30
|
export type MediaInputResizeTrackAction = UIAEP<ACTION.EDITED, ACTION_SUBJECT.MEDIA_SINGLE | ACTION_SUBJECT.EMBEDS, ACTION_SUBJECT_ID.RESIZED, MediaInputResizeAttributes, undefined>;
|
|
28
31
|
type MediaSwitchType = ACTION_SUBJECT_ID.MEDIA_INLINE | ACTION_SUBJECT_ID.MEDIA_GROUP;
|
|
@@ -24,4 +24,5 @@ type TypeAheadQuickInsertAEP = TypeAheadAEP<ACTION_SUBJECT_ID.TYPEAHEAD_QUICK_IN
|
|
|
24
24
|
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.KEYBOARD;
|
|
25
25
|
}>;
|
|
26
26
|
export type TypeAheadPayload = TypeAheadEmojiAEP | TypeAheadLinkAEP | TypeAheadMentionAEP | TypeAheadQuickInsertAEP | TypeAheadRenderedAEP | TypeAheadItemViewedAEP;
|
|
27
|
+
export type EventInput = 'keyboard' | 'mouse' | 'floatingToolBar';
|
|
27
28
|
export {};
|
|
@@ -69,6 +69,8 @@ export declare const altPaste: Keymap;
|
|
|
69
69
|
export declare const find: Keymap;
|
|
70
70
|
export declare const alignLeft: Keymap;
|
|
71
71
|
export declare const toggleTaskItemCheckbox: Keymap;
|
|
72
|
+
export declare const increaseMediaSize: Keymap;
|
|
73
|
+
export declare const decreaseMediaSize: Keymap;
|
|
72
74
|
export declare function tooltip(keymap?: Keymap, description?: string): string | undefined;
|
|
73
75
|
export declare const ToolTipContent: React.MemoExoticComponent<({ description, shortcutOverride, keymap, }: {
|
|
74
76
|
description?: string | React.ReactNode;
|
|
@@ -84,4 +84,29 @@ export declare const messages: {
|
|
|
84
84
|
defaultMessage: string;
|
|
85
85
|
description: string;
|
|
86
86
|
};
|
|
87
|
+
datasourceJiraIssue: {
|
|
88
|
+
id: string;
|
|
89
|
+
defaultMessage: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
datasourceJiraIssueDescription: {
|
|
93
|
+
id: string;
|
|
94
|
+
defaultMessage: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
datasourceAssetsObjects: {
|
|
98
|
+
id: string;
|
|
99
|
+
defaultMessage: string;
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
datasourceAssetsObjectsDescription: {
|
|
103
|
+
id: string;
|
|
104
|
+
defaultMessage: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
inlineOverlay: {
|
|
108
|
+
id: string;
|
|
109
|
+
defaultMessage: string;
|
|
110
|
+
description: string;
|
|
111
|
+
};
|
|
87
112
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "76.25.
|
|
3
|
+
"version": "76.25.5",
|
|
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/"
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@atlaskit/analytics-namespaced-context": "^6.7.0",
|
|
95
95
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
96
96
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
97
|
-
"@atlaskit/button": "^16.
|
|
97
|
+
"@atlaskit/button": "^16.18.0",
|
|
98
98
|
"@atlaskit/code": "^15.1.0",
|
|
99
99
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
100
100
|
"@atlaskit/custom-steps": "^0.0.7",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"@atlaskit/menu": "^2.1.0",
|
|
117
117
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
118
118
|
"@atlaskit/profilecard": "^19.7.0",
|
|
119
|
-
"@atlaskit/smart-card": "^26.
|
|
119
|
+
"@atlaskit/smart-card": "^26.43.0",
|
|
120
120
|
"@atlaskit/smart-user-picker": "^6.3.0",
|
|
121
121
|
"@atlaskit/spinner": "^16.0.0",
|
|
122
122
|
"@atlaskit/task-decision": "^17.9.0",
|