@atlaskit/editor-common 103.22.2 → 103.23.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 +18 -0
- package/dist/cjs/analytics/index.js +6 -0
- package/dist/cjs/analytics/linking-utils.js +11 -4
- package/dist/cjs/keymaps/index.js +4 -3
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/index.js +1 -1
- package/dist/es2019/analytics/linking-utils.js +10 -3
- package/dist/es2019/keymaps/index.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/index.js +1 -1
- package/dist/esm/analytics/linking-utils.js +10 -3
- package/dist/esm/keymaps/index.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/index.d.ts +1 -1
- package/dist/types/analytics/linking-utils.d.ts +1 -0
- package/dist/types/analytics/types/node-events.d.ts +1 -1
- package/dist/types/keymaps/index.d.ts +1 -0
- package/dist/types-ts4.5/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/linking-utils.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/node-events.d.ts +1 -1
- package/dist/types-ts4.5/keymaps/index.d.ts +1 -0
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 103.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#140315](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/140315)
|
|
8
|
+
[`e9258b34b7063`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e9258b34b7063) -
|
|
9
|
+
MODES-6284 Add CMD+OPT+Y as yellow text highlight shortcut
|
|
10
|
+
|
|
11
|
+
## 103.22.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#149530](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/149530)
|
|
16
|
+
[`a432884180253`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a432884180253) -
|
|
17
|
+
Sends SmartLink Visited event with additional input methods depending on the way the link was
|
|
18
|
+
opened.
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 103.22.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -291,6 +291,12 @@ Object.defineProperty(exports, "buildVisitedLinkPayload", {
|
|
|
291
291
|
return _linkingUtils.buildVisitedLinkPayload;
|
|
292
292
|
}
|
|
293
293
|
});
|
|
294
|
+
Object.defineProperty(exports, "buildVisitedNonHyperLinkPayload", {
|
|
295
|
+
enumerable: true,
|
|
296
|
+
get: function get() {
|
|
297
|
+
return _linkingUtils.buildVisitedNonHyperLinkPayload;
|
|
298
|
+
}
|
|
299
|
+
});
|
|
294
300
|
Object.defineProperty(exports, "editorAnalyticsChannel", {
|
|
295
301
|
enumerable: true,
|
|
296
302
|
get: function get() {
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.unlinkPayload = exports.buildVisitedLinkPayload = exports.buildOpenedSettingsPayload = exports.buildEditLinkPayload = void 0;
|
|
6
|
+
exports.unlinkPayload = exports.buildVisitedNonHyperLinkPayload = exports.buildVisitedLinkPayload = exports.buildOpenedSettingsPayload = exports.buildEditLinkPayload = void 0;
|
|
7
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
7
8
|
var _enums = require("./types/enums");
|
|
8
9
|
var buildEditLinkPayload = exports.buildEditLinkPayload = function buildEditLinkPayload(type) {
|
|
9
10
|
return {
|
|
@@ -38,7 +39,10 @@ var mapLinkTypeToCardAppearance = function mapLinkTypeToCardAppearance(type) {
|
|
|
38
39
|
}
|
|
39
40
|
};
|
|
40
41
|
var buildVisitedLinkPayload = exports.buildVisitedLinkPayload = function buildVisitedLinkPayload(type) {
|
|
41
|
-
return type === _enums.ACTION_SUBJECT_ID.HYPERLINK ?
|
|
42
|
+
return type === _enums.ACTION_SUBJECT_ID.HYPERLINK ? buildVisitedHyperLinkPayload() : buildVisitedNonHyperLinkPayload(type, _enums.INPUT_METHOD.TOOLBAR);
|
|
43
|
+
};
|
|
44
|
+
var buildVisitedHyperLinkPayload = function buildVisitedHyperLinkPayload() {
|
|
45
|
+
return {
|
|
42
46
|
action: _enums.ACTION.VISITED,
|
|
43
47
|
actionSubject: _enums.ACTION_SUBJECT.HYPERLINK,
|
|
44
48
|
actionSubjectId: undefined,
|
|
@@ -46,12 +50,15 @@ var buildVisitedLinkPayload = exports.buildVisitedLinkPayload = function buildVi
|
|
|
46
50
|
inputMethod: _enums.INPUT_METHOD.TOOLBAR
|
|
47
51
|
},
|
|
48
52
|
eventType: _enums.EVENT_TYPE.TRACK
|
|
49
|
-
}
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
var buildVisitedNonHyperLinkPayload = exports.buildVisitedNonHyperLinkPayload = function buildVisitedNonHyperLinkPayload(type, inputMethod) {
|
|
56
|
+
return {
|
|
50
57
|
action: _enums.ACTION.VISITED,
|
|
51
58
|
actionSubject: _enums.ACTION_SUBJECT.SMART_LINK,
|
|
52
59
|
actionSubjectId: type,
|
|
53
60
|
attributes: {
|
|
54
|
-
inputMethod: _enums.INPUT_METHOD.TOOLBAR
|
|
61
|
+
inputMethod: (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_analytics') ? inputMethod : _enums.INPUT_METHOD.TOOLBAR
|
|
55
62
|
},
|
|
56
63
|
eventType: _enums.EVENT_TYPE.TRACK
|
|
57
64
|
};
|
|
@@ -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.addRowBeforeVO = exports.addRowBefore = exports.addRowAfterVO = exports.addRowAfter = exports.addLink = exports.addInlineComment = exports.addColumnBeforeVO = exports.addColumnBefore = exports.addColumnAfterVO = exports.addColumnAfter = exports.addAltText = exports.activateVideoControls = void 0;
|
|
81
|
+
exports.backspace = exports.applyYellowHighlight = exports.altPaste = exports.alignRight = exports.alignLeft = exports.alignCenter = exports.addRowBeforeVO = exports.addRowBefore = exports.addRowAfterVO = exports.addRowAfter = exports.addLink = exports.addInlineComment = exports.addColumnBeforeVO = exports.addColumnBefore = exports.addColumnAfterVO = exports.addColumnAfter = exports.addAltText = exports.activateVideoControls = void 0;
|
|
82
82
|
exports.bindKeymapArrayWithCommand = bindKeymapArrayWithCommand;
|
|
83
83
|
exports.bindKeymapWithCommand = bindKeymapWithCommand;
|
|
84
84
|
exports.bindKeymapWithEditorCommand = bindKeymapWithEditorCommand;
|
|
@@ -102,8 +102,8 @@ Object.defineProperty(exports, "keymap", {
|
|
|
102
102
|
exports.makeKeyMapArrayWithCommon = makeKeyMapArrayWithCommon;
|
|
103
103
|
exports.makeKeyMapWithCommon = makeKeyMapWithCommon;
|
|
104
104
|
exports.makeKeymap = makeKeymap;
|
|
105
|
-
exports.
|
|
106
|
-
exports.toggleUnderline = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHighlightPalette = 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 = void 0;
|
|
105
|
+
exports.splitCodeBlock = exports.space = exports.showElementDragHandle = exports.shiftTab = exports.shiftEnter = exports.shiftBackspace = exports.shiftArrowUp = exports.setNormalText = exports.selectTable = exports.selectRow = exports.selectColumn = exports.redoAlt = 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;
|
|
106
|
+
exports.toggleUnderline = exports.toggleTaskItemCheckbox = exports.toggleTable = exports.toggleSuperscript = exports.toggleSubscript = exports.toggleStrikethrough = exports.toggleOrderedList = exports.toggleItalic = exports.toggleHighlightPalette = 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 = void 0;
|
|
107
107
|
exports.tooltip = tooltip;
|
|
108
108
|
exports.undo = void 0;
|
|
109
109
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
@@ -212,6 +212,7 @@ var increaseMediaSize = exports.increaseMediaSize = makeKeyMapWithCommon('increa
|
|
|
212
212
|
var decreaseMediaSize = exports.decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
|
|
213
213
|
var activateVideoControls = exports.activateVideoControls = makeKeyMapWithCommon('Activate controls panel on video', 'Shift-F10');
|
|
214
214
|
var toggleHighlightPalette = exports.toggleHighlightPalette = makeKeyMapWithCommon('Toggle Highlight Palette', 'Mod-Alt-b');
|
|
215
|
+
var applyYellowHighlight = exports.applyYellowHighlight = makeKeyMapWithCommon('Apply Yellow Highlight', 'Mod-Alt-y');
|
|
215
216
|
var focusToContextMenuTrigger = exports.focusToContextMenuTrigger = makeKeyMapWithCommon('Focus table context menu trigger', 'Shift-F10');
|
|
216
217
|
var dragToMoveUp = exports.dragToMoveUp = makeKeyMapWithCommon('Move node up in the document', 'Ctrl-Shift-ArrowUp');
|
|
217
218
|
var dragToMoveDown = exports.dragToMoveDown = makeKeyMapWithCommon('Move node down in the document', 'Ctrl-Shift-ArrowDown');
|
|
@@ -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 && {}.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 = "103.
|
|
20
|
+
var packageVersion = "103.23.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -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 = "103.
|
|
26
|
+
var packageVersion = "103.23.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -18,5 +18,5 @@ export { TOOLBAR_ACTION_SUBJECT_ID } from './types/toolbar-button';
|
|
|
18
18
|
export { SELECTION_POSITION, SELECTION_TYPE } from './types/utils';
|
|
19
19
|
export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
|
|
20
20
|
export { getAnalyticsEventsFromTransaction } from './utils';
|
|
21
|
-
export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload } from './linking-utils';
|
|
21
|
+
export { buildEditLinkPayload, buildVisitedLinkPayload, buildVisitedNonHyperLinkPayload, buildOpenedSettingsPayload, unlinkPayload } from './linking-utils';
|
|
22
22
|
export { AI_SUGGESTION_TRIGGERED_FROM } from './types/ai-inline-suggestion-events';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
2
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from './types/enums';
|
|
2
3
|
export const buildEditLinkPayload = type => {
|
|
3
4
|
return {
|
|
@@ -32,7 +33,10 @@ const mapLinkTypeToCardAppearance = type => {
|
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
export const buildVisitedLinkPayload = type => {
|
|
35
|
-
return type === ACTION_SUBJECT_ID.HYPERLINK ?
|
|
36
|
+
return type === ACTION_SUBJECT_ID.HYPERLINK ? buildVisitedHyperLinkPayload() : buildVisitedNonHyperLinkPayload(type, INPUT_METHOD.TOOLBAR);
|
|
37
|
+
};
|
|
38
|
+
const buildVisitedHyperLinkPayload = () => {
|
|
39
|
+
return {
|
|
36
40
|
action: ACTION.VISITED,
|
|
37
41
|
actionSubject: ACTION_SUBJECT.HYPERLINK,
|
|
38
42
|
actionSubjectId: undefined,
|
|
@@ -40,12 +44,15 @@ export const buildVisitedLinkPayload = type => {
|
|
|
40
44
|
inputMethod: INPUT_METHOD.TOOLBAR
|
|
41
45
|
},
|
|
42
46
|
eventType: EVENT_TYPE.TRACK
|
|
43
|
-
}
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export const buildVisitedNonHyperLinkPayload = (type, inputMethod) => {
|
|
50
|
+
return {
|
|
44
51
|
action: ACTION.VISITED,
|
|
45
52
|
actionSubject: ACTION_SUBJECT.SMART_LINK,
|
|
46
53
|
actionSubjectId: type,
|
|
47
54
|
attributes: {
|
|
48
|
-
inputMethod: INPUT_METHOD.TOOLBAR
|
|
55
|
+
inputMethod: fg('platform_editor_controls_patch_analytics') ? inputMethod : INPUT_METHOD.TOOLBAR
|
|
49
56
|
},
|
|
50
57
|
eventType: EVENT_TYPE.TRACK
|
|
51
58
|
};
|
|
@@ -98,6 +98,7 @@ export const increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mo
|
|
|
98
98
|
export const decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
|
|
99
99
|
export const activateVideoControls = makeKeyMapWithCommon('Activate controls panel on video', 'Shift-F10');
|
|
100
100
|
export const toggleHighlightPalette = makeKeyMapWithCommon('Toggle Highlight Palette', 'Mod-Alt-b');
|
|
101
|
+
export const applyYellowHighlight = makeKeyMapWithCommon('Apply Yellow Highlight', 'Mod-Alt-y');
|
|
101
102
|
export const focusToContextMenuTrigger = makeKeyMapWithCommon('Focus table context menu trigger', 'Shift-F10');
|
|
102
103
|
export const dragToMoveUp = makeKeyMapWithCommon('Move node up in the document', 'Ctrl-Shift-ArrowUp');
|
|
103
104
|
export const dragToMoveDown = makeKeyMapWithCommon('Move node down in the document', 'Ctrl-Shift-ArrowDown');
|
|
@@ -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 = "103.
|
|
4
|
+
const packageVersion = "103.23.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "103.
|
|
16
|
+
const packageVersion = "103.23.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -18,5 +18,5 @@ export { TOOLBAR_ACTION_SUBJECT_ID } from './types/toolbar-button';
|
|
|
18
18
|
export { SELECTION_POSITION, SELECTION_TYPE } from './types/utils';
|
|
19
19
|
export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
|
|
20
20
|
export { getAnalyticsEventsFromTransaction } from './utils';
|
|
21
|
-
export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload } from './linking-utils';
|
|
21
|
+
export { buildEditLinkPayload, buildVisitedLinkPayload, buildVisitedNonHyperLinkPayload, buildOpenedSettingsPayload, unlinkPayload } from './linking-utils';
|
|
22
22
|
export { AI_SUGGESTION_TRIGGERED_FROM } from './types/ai-inline-suggestion-events';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
2
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from './types/enums';
|
|
2
3
|
export var buildEditLinkPayload = function buildEditLinkPayload(type) {
|
|
3
4
|
return {
|
|
@@ -32,7 +33,10 @@ var mapLinkTypeToCardAppearance = function mapLinkTypeToCardAppearance(type) {
|
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
export var buildVisitedLinkPayload = function buildVisitedLinkPayload(type) {
|
|
35
|
-
return type === ACTION_SUBJECT_ID.HYPERLINK ?
|
|
36
|
+
return type === ACTION_SUBJECT_ID.HYPERLINK ? buildVisitedHyperLinkPayload() : buildVisitedNonHyperLinkPayload(type, INPUT_METHOD.TOOLBAR);
|
|
37
|
+
};
|
|
38
|
+
var buildVisitedHyperLinkPayload = function buildVisitedHyperLinkPayload() {
|
|
39
|
+
return {
|
|
36
40
|
action: ACTION.VISITED,
|
|
37
41
|
actionSubject: ACTION_SUBJECT.HYPERLINK,
|
|
38
42
|
actionSubjectId: undefined,
|
|
@@ -40,12 +44,15 @@ export var buildVisitedLinkPayload = function buildVisitedLinkPayload(type) {
|
|
|
40
44
|
inputMethod: INPUT_METHOD.TOOLBAR
|
|
41
45
|
},
|
|
42
46
|
eventType: EVENT_TYPE.TRACK
|
|
43
|
-
}
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export var buildVisitedNonHyperLinkPayload = function buildVisitedNonHyperLinkPayload(type, inputMethod) {
|
|
50
|
+
return {
|
|
44
51
|
action: ACTION.VISITED,
|
|
45
52
|
actionSubject: ACTION_SUBJECT.SMART_LINK,
|
|
46
53
|
actionSubjectId: type,
|
|
47
54
|
attributes: {
|
|
48
|
-
inputMethod: INPUT_METHOD.TOOLBAR
|
|
55
|
+
inputMethod: fg('platform_editor_controls_patch_analytics') ? inputMethod : INPUT_METHOD.TOOLBAR
|
|
49
56
|
},
|
|
50
57
|
eventType: EVENT_TYPE.TRACK
|
|
51
58
|
};
|
|
@@ -99,6 +99,7 @@ export var increaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-
|
|
|
99
99
|
export var decreaseMediaSize = makeKeyMapWithCommon('increase image size', 'Mod-Alt-[');
|
|
100
100
|
export var activateVideoControls = makeKeyMapWithCommon('Activate controls panel on video', 'Shift-F10');
|
|
101
101
|
export var toggleHighlightPalette = makeKeyMapWithCommon('Toggle Highlight Palette', 'Mod-Alt-b');
|
|
102
|
+
export var applyYellowHighlight = makeKeyMapWithCommon('Apply Yellow Highlight', 'Mod-Alt-y');
|
|
102
103
|
export var focusToContextMenuTrigger = makeKeyMapWithCommon('Focus table context menu trigger', 'Shift-F10');
|
|
103
104
|
export var dragToMoveUp = makeKeyMapWithCommon('Move node up in the document', 'Ctrl-Shift-ArrowUp');
|
|
104
105
|
export var dragToMoveDown = makeKeyMapWithCommon('Move node down in the document', 'Ctrl-Shift-ArrowDown');
|
|
@@ -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 = "103.
|
|
10
|
+
var packageVersion = "103.23.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "103.
|
|
23
|
+
var packageVersion = "103.23.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -39,7 +39,7 @@ export type { ViewInlineCommentsButtonEventAEP, ViewEventPayload } from './types
|
|
|
39
39
|
export type { EditorAnalyticsAPI } from './api';
|
|
40
40
|
export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
|
|
41
41
|
export { getAnalyticsEventsFromTransaction } from './utils';
|
|
42
|
-
export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
|
|
42
|
+
export { buildEditLinkPayload, buildVisitedLinkPayload, buildVisitedNonHyperLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
|
|
43
43
|
export type { LinkType } from './linking-utils';
|
|
44
44
|
export type { RequestToEditAEP } from './types/general-events';
|
|
45
45
|
export type { AIEventPayload, AIMarkdownConversionErrorCaughtAttributes } from './types/ai-events';
|
|
@@ -3,6 +3,7 @@ import type { AnalyticsEventPayload } from './types/events';
|
|
|
3
3
|
export declare const buildEditLinkPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
4
4
|
export type LinkType = ACTION_SUBJECT_ID.CARD_INLINE | ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.EMBEDS | ACTION_SUBJECT_ID.HYPERLINK;
|
|
5
5
|
export declare const buildVisitedLinkPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
6
|
+
export declare const buildVisitedNonHyperLinkPayload: (type: LinkType, inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.BUTTON | INPUT_METHOD.DOUBLE_CLICK | INPUT_METHOD.FLOATING_TB) => AnalyticsEventPayload;
|
|
6
7
|
export declare const buildOpenedSettingsPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
7
8
|
export declare const unlinkPayload: (type: LinkType) => {
|
|
8
9
|
action: ACTION;
|
|
@@ -28,7 +28,7 @@ type ChangeSmartLinkAEP = ChangeTypeAEP<ACTION_SUBJECT.SMART_LINK, undefined, {
|
|
|
28
28
|
previousType: SMART_LINK_TYPE;
|
|
29
29
|
}, undefined>;
|
|
30
30
|
type VisitedSmartLink = TrackAEP<ACTION.VISITED, ACTION_SUBJECT.SMART_LINK, ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.CARD_INLINE, {
|
|
31
|
-
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.CARD;
|
|
31
|
+
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.BUTTON | INPUT_METHOD.CARD | INPUT_METHOD.DOUBLE_CLICK;
|
|
32
32
|
}, undefined>;
|
|
33
33
|
type VisitedHyperlink = TrackAEP<ACTION.VISITED, ACTION_SUBJECT.HYPERLINK, undefined, {
|
|
34
34
|
inputMethod: INPUT_METHOD.TOOLBAR;
|
|
@@ -94,6 +94,7 @@ export declare const increaseMediaSize: Keymap;
|
|
|
94
94
|
export declare const decreaseMediaSize: Keymap;
|
|
95
95
|
export declare const activateVideoControls: Keymap;
|
|
96
96
|
export declare const toggleHighlightPalette: Keymap;
|
|
97
|
+
export declare const applyYellowHighlight: Keymap;
|
|
97
98
|
export declare const focusToContextMenuTrigger: Keymap;
|
|
98
99
|
export declare const dragToMoveUp: Keymap;
|
|
99
100
|
export declare const dragToMoveDown: Keymap;
|
|
@@ -39,7 +39,7 @@ export type { ViewInlineCommentsButtonEventAEP, ViewEventPayload } from './types
|
|
|
39
39
|
export type { EditorAnalyticsAPI } from './api';
|
|
40
40
|
export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
|
|
41
41
|
export { getAnalyticsEventsFromTransaction } from './utils';
|
|
42
|
-
export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
|
|
42
|
+
export { buildEditLinkPayload, buildVisitedLinkPayload, buildVisitedNonHyperLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
|
|
43
43
|
export type { LinkType } from './linking-utils';
|
|
44
44
|
export type { RequestToEditAEP } from './types/general-events';
|
|
45
45
|
export type { AIEventPayload, AIMarkdownConversionErrorCaughtAttributes } from './types/ai-events';
|
|
@@ -3,6 +3,7 @@ import type { AnalyticsEventPayload } from './types/events';
|
|
|
3
3
|
export declare const buildEditLinkPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
4
4
|
export type LinkType = ACTION_SUBJECT_ID.CARD_INLINE | ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.EMBEDS | ACTION_SUBJECT_ID.HYPERLINK;
|
|
5
5
|
export declare const buildVisitedLinkPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
6
|
+
export declare const buildVisitedNonHyperLinkPayload: (type: LinkType, inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.BUTTON | INPUT_METHOD.DOUBLE_CLICK | INPUT_METHOD.FLOATING_TB) => AnalyticsEventPayload;
|
|
6
7
|
export declare const buildOpenedSettingsPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
7
8
|
export declare const unlinkPayload: (type: LinkType) => {
|
|
8
9
|
action: ACTION;
|
|
@@ -28,7 +28,7 @@ type ChangeSmartLinkAEP = ChangeTypeAEP<ACTION_SUBJECT.SMART_LINK, undefined, {
|
|
|
28
28
|
previousType: SMART_LINK_TYPE;
|
|
29
29
|
}, undefined>;
|
|
30
30
|
type VisitedSmartLink = TrackAEP<ACTION.VISITED, ACTION_SUBJECT.SMART_LINK, ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.CARD_INLINE, {
|
|
31
|
-
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.CARD;
|
|
31
|
+
inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.BUTTON | INPUT_METHOD.CARD | INPUT_METHOD.DOUBLE_CLICK;
|
|
32
32
|
}, undefined>;
|
|
33
33
|
type VisitedHyperlink = TrackAEP<ACTION.VISITED, ACTION_SUBJECT.HYPERLINK, undefined, {
|
|
34
34
|
inputMethod: INPUT_METHOD.TOOLBAR;
|
|
@@ -94,6 +94,7 @@ export declare const increaseMediaSize: Keymap;
|
|
|
94
94
|
export declare const decreaseMediaSize: Keymap;
|
|
95
95
|
export declare const activateVideoControls: Keymap;
|
|
96
96
|
export declare const toggleHighlightPalette: Keymap;
|
|
97
|
+
export declare const applyYellowHighlight: Keymap;
|
|
97
98
|
export declare const focusToContextMenuTrigger: Keymap;
|
|
98
99
|
export declare const dragToMoveUp: Keymap;
|
|
99
100
|
export declare const dragToMoveDown: Keymap;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "103.
|
|
3
|
+
"version": "103.23.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/"
|
|
@@ -155,11 +155,11 @@
|
|
|
155
155
|
"@atlaskit/onboarding": "^14.0.0",
|
|
156
156
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
157
157
|
"@atlaskit/popper": "^7.0.0",
|
|
158
|
-
"@atlaskit/primitives": "^14.
|
|
158
|
+
"@atlaskit/primitives": "^14.7.0",
|
|
159
159
|
"@atlaskit/profilecard": "^23.10.0",
|
|
160
160
|
"@atlaskit/react-ufo": "^3.9.0",
|
|
161
161
|
"@atlaskit/section-message": "^8.2.0",
|
|
162
|
-
"@atlaskit/smart-card": "^36.
|
|
162
|
+
"@atlaskit/smart-card": "^36.14.0",
|
|
163
163
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
164
164
|
"@atlaskit/spinner": "^18.0.0",
|
|
165
165
|
"@atlaskit/task-decision": "^19.2.0",
|
|
@@ -371,6 +371,9 @@
|
|
|
371
371
|
},
|
|
372
372
|
"platform_editor_fix_code_block_bg_color_in_macro": {
|
|
373
373
|
"type": "boolean"
|
|
374
|
+
},
|
|
375
|
+
"platform_editor_controls_patch_analytics": {
|
|
376
|
+
"type": "boolean"
|
|
374
377
|
}
|
|
375
378
|
}
|
|
376
379
|
}
|