@atlaskit/editor-common 76.25.3 → 76.25.4
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/keymaps/index.js +4 -2
- 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/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/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-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/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 76.25.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
3
9
|
## 76.25.3
|
|
4
10
|
|
|
5
11
|
### 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",
|
|
@@ -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.4";
|
|
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.4";
|
|
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',
|
|
@@ -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.4";
|
|
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.4";
|
|
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",
|
|
@@ -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.4";
|
|
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.4";
|
|
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;
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "76.25.
|
|
3
|
+
"version": "76.25.4",
|
|
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",
|