@atlaskit/editor-common 104.1.3 → 105.0.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 +24 -0
- package/dist/cjs/analytics/types/enums.js +0 -7
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/index.js +30 -11
- package/dist/cjs/styles/shared/smart-card.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +0 -7
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/index.js +30 -11
- package/dist/es2019/styles/shared/smart-card.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/enums.js +0 -7
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/index.js +30 -11
- package/dist/esm/styles/shared/smart-card.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +0 -7
- package/dist/types/analytics/types/general-events.d.ts +3 -16
- package/dist/types-ts4.5/analytics/types/enums.d.ts +0 -7
- package/dist/types-ts4.5/analytics/types/general-events.d.ts +3 -16
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 105.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#152928](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/152928)
|
|
8
|
+
[`085c1eac95c8f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/085c1eac95c8f) -
|
|
9
|
+
[EDITOR-709] Removed unused analytics enums and types
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#153538](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/153538)
|
|
14
|
+
[`5c7cf4707fb42`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5c7cf4707fb42) -
|
|
15
|
+
[ux] Fix Smart Link AvatarGroup padding
|
|
16
|
+
|
|
17
|
+
## 104.1.4
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#149969](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/149969)
|
|
22
|
+
[`42c3f35e57188`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/42c3f35e57188) -
|
|
23
|
+
ED-27882: Get rid of parent offset check in \_handleRef in the react node view. Add metadata to
|
|
24
|
+
these calls in the \_handleRef and \_handleTableRef.
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
3
27
|
## 104.1.3
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -55,7 +55,6 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
55
55
|
ACTION["EDITOR_CRASHED"] = "unhandledErrorCaught";
|
|
56
56
|
ACTION["EDITOR_CRASHED_ADDITIONAL_INFORMATION"] = "unhandledErrorCaughtAdditionalInfov2";
|
|
57
57
|
ACTION["EDITOR_MOUNTED"] = "mounted";
|
|
58
|
-
ACTION["EDITOR_TTI"] = "tti";
|
|
59
58
|
ACTION["EDITOR_CONTENT_RETRIEVAL_PERFORMED"] = "contentRetrievalPerformed";
|
|
60
59
|
ACTION["RE_RENDERED"] = "reRendered";
|
|
61
60
|
ACTION["ENDED"] = "ended";
|
|
@@ -81,10 +80,6 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
81
80
|
ACTION["INITIALISED_FRAGMENT_MARK"] = "initialisedFragmentMark";
|
|
82
81
|
ACTION["INPUT_PERF_SAMPLING"] = "inputPerfSampling";
|
|
83
82
|
ACTION["INPUT_PERF_SAMPLING_AVG"] = "inputPerfSamplingAvg";
|
|
84
|
-
ACTION["INPUT_PERF_SAMPLING_SINGLE_KEYPRESS"] = "inputPerfSamplingSingleKeypress";
|
|
85
|
-
ACTION["INPUT_PERF_SAMPLING_SINGLE_KEYPRESS_AVG"] = "inputPerfSamplingSingleKeypressAvg";
|
|
86
|
-
ACTION["INPUT_PERF_SAMPLING_RENDERED"] = "inputPerfSamplingRendered";
|
|
87
|
-
ACTION["INPUT_PERF_SAMPLING_RENDERED_AVG"] = "inputPerfSamplingRenderedAvg";
|
|
88
83
|
ACTION["INSERTED"] = "inserted";
|
|
89
84
|
ACTION["INVALID_DOCUMENT_ENCOUNTERED"] = "invalidDocumentEncountered";
|
|
90
85
|
ACTION["INVOKED"] = "invoked";
|
|
@@ -124,7 +119,6 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
124
119
|
ACTION["INDENTATION_MARKS_TRANSFORMED"] = "indentationMarksTransformed";
|
|
125
120
|
ACTION["INVALID_MEDIA_CONTENT_TRANSFORMED"] = "invalidMediaContentTransformed";
|
|
126
121
|
ACTION["TOGGLE_EXPAND"] = "toggleExpand";
|
|
127
|
-
ACTION["TRANSACTION_DISPATCHED"] = "transactionDispatched";
|
|
128
122
|
ACTION["TRANSACTION_MUTATED_AFTER_DISPATCH"] = "transactionMutatedAfterDispatched";
|
|
129
123
|
ACTION["TYPING_FINISHED"] = "typingFinished";
|
|
130
124
|
ACTION["TYPING_STARTED"] = "typingStarted";
|
|
@@ -156,7 +150,6 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
156
150
|
ACTION["REMOVE_ICON"] = "removedIcon";
|
|
157
151
|
ACTION["INVALID_PROSEMIRROR_DOCUMENT"] = "invalidProsemirrorDocument";
|
|
158
152
|
ACTION["DOCUMENT_PROCESSING_ERROR"] = "documentProcessingErrorV2";
|
|
159
|
-
ACTION["RENDERER_TTI"] = "tti";
|
|
160
153
|
ACTION["CRASHED"] = "unhandledErrorCaughtV2";
|
|
161
154
|
ACTION["SELECT_ALL_CAUGHT"] = "selectAllCaught";
|
|
162
155
|
ACTION["SELECT_ALL_ESCAPED"] = "selectAllEscaped";
|
|
@@ -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 = "
|
|
20
|
+
var packageVersion = "105.0.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -22,6 +22,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
22
22
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
23
23
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
24
24
|
var _react = _interopRequireDefault(require("react"));
|
|
25
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
25
26
|
var _analytics = require("../analytics");
|
|
26
27
|
var _eventDispatcher = require("../event-dispatcher");
|
|
27
28
|
var _ErrorBoundary = require("../ui/ErrorBoundary");
|
|
@@ -159,13 +160,12 @@ var ReactNodeView = exports.default = /*#__PURE__*/function () {
|
|
|
159
160
|
// Ignored via go/ees005
|
|
160
161
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
161
162
|
var oldIgnoreMutation;
|
|
163
|
+
var parentOffset = 0; // Remove with feature gate: platform_editor_r18_fix_selection_resync
|
|
162
164
|
var selectionBookmark;
|
|
163
|
-
var parentOffset = 0;
|
|
164
165
|
var mutationsIgnored = false;
|
|
165
166
|
|
|
166
167
|
// move the contentDOM node inside the inner reference after rendering
|
|
167
168
|
if (node && contentDOM && !node.contains(contentDOM)) {
|
|
168
|
-
var _this$view$state$sele;
|
|
169
169
|
// @ts-ignore - ignoreMutation may not be declared
|
|
170
170
|
oldIgnoreMutation = this.ignoreMutation; // store ref to previous ignoreMutation
|
|
171
171
|
|
|
@@ -186,21 +186,40 @@ var ReactNodeView = exports.default = /*#__PURE__*/function () {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
// ... and capture parent offset before DOM change
|
|
189
|
-
if ((
|
|
190
|
-
var _this$view$state$
|
|
191
|
-
|
|
189
|
+
if (!(0, _platformFeatureFlags.fg)('platform_editor_r18_fix_selection_resync')) {
|
|
190
|
+
var _this$view$state$sele;
|
|
191
|
+
if (((_this$view$state$sele = this.view.state.selection) === null || _this$view$state$sele === void 0 ? void 0 : _this$view$state$sele.ranges.length) > 0) {
|
|
192
|
+
var _this$view$state$sele2, _this$view$state$sele3;
|
|
193
|
+
parentOffset = (_this$view$state$sele2 = (_this$view$state$sele3 = this.view.state.selection) === null || _this$view$state$sele3 === void 0 || (_this$view$state$sele3 = _this$view$state$sele3.ranges[0].$from) === null || _this$view$state$sele3 === void 0 ? void 0 : _this$view$state$sele3.parentOffset) !== null && _this$view$state$sele2 !== void 0 ? _this$view$state$sele2 : 0;
|
|
194
|
+
}
|
|
192
195
|
}
|
|
193
196
|
node.appendChild(contentDOM);
|
|
197
|
+
|
|
198
|
+
// After the next frame:
|
|
194
199
|
requestAnimationFrame(function () {
|
|
195
|
-
//
|
|
200
|
+
// Restore the original mutation handler
|
|
196
201
|
// @ts-ignore - this may not have been declared by implementing class
|
|
197
202
|
_this4.ignoreMutation = oldIgnoreMutation;
|
|
198
203
|
|
|
199
|
-
//
|
|
200
|
-
//
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
+
// Restore the selection only if:
|
|
205
|
+
// - We have a selection bookmark
|
|
206
|
+
// - Mutations were ignored during the table move
|
|
207
|
+
// - The bookmarked selection is different from the current selection.
|
|
208
|
+
if (selectionBookmark && mutationsIgnored) {
|
|
209
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_r18_fix_selection_resync')) {
|
|
210
|
+
var resolvedSelection = selectionBookmark.resolve(_this4.view.state.tr.doc);
|
|
211
|
+
// Don't set the selection if it's the same as the current selection.
|
|
212
|
+
if (!resolvedSelection.eq(_this4.view.state.selection)) {
|
|
213
|
+
var tr = _this4.view.state.tr.setSelection(resolvedSelection);
|
|
214
|
+
tr.setMeta('source', 'ReactNodeView:_handleRef:selection-resync');
|
|
215
|
+
_this4.view.dispatch(tr);
|
|
216
|
+
}
|
|
217
|
+
} else {
|
|
218
|
+
if (parentOffset > 0) {
|
|
219
|
+
// ... and dispatch expected selection state
|
|
220
|
+
_this4.view.dispatch(_this4.view.state.tr.setSelection(selectionBookmark.resolve(_this4.view.state.tr.doc)));
|
|
221
|
+
}
|
|
222
|
+
}
|
|
204
223
|
}
|
|
205
224
|
});
|
|
206
225
|
}
|
|
@@ -14,5 +14,5 @@ var SmartCardSharedCssClassName = exports.SmartCardSharedCssClassName = {
|
|
|
14
14
|
};
|
|
15
15
|
var smartCardSharedStyles = exports.smartCardSharedStyles = "\n .".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, " {\n display: block;\n margin: ").concat(_editorSharedStyles.blockNodesVerticalMargin, " 0 0;\n max-width: ").concat(8 * 95, "px;\n }\n");
|
|
16
16
|
var getSmartCardSharedStyles = exports.getSmartCardSharedStyles = function getSmartCardSharedStyles() {
|
|
17
|
-
return "\n .".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, " {\n display: block;\n margin: ").concat(_editorSharedStyles.blockNodesVerticalMargin, " 0 0;\n max-width: ").concat(8 * 95, "px;\n }\n\n .").concat(SmartCardSharedCssClassName.
|
|
17
|
+
return "\n .".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, " {\n display: block;\n margin: ").concat(_editorSharedStyles.blockNodesVerticalMargin, " 0 0;\n max-width: ").concat(8 * 95, "px;\n }\n\n .").concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, " {\n /* EDM-11991: Fix list plugin adding padding to ADS AvatarGroup start */\n ul, ol {\n padding-left: inherit;\n }\n /* EDM-11991: Fix list plugin add padding to ADS AvatarGroup end */\n }\n");
|
|
18
18
|
};
|
|
@@ -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 = "
|
|
26
|
+
var packageVersion = "105.0.0";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -49,7 +49,6 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
49
49
|
ACTION["EDITOR_CRASHED"] = "unhandledErrorCaught";
|
|
50
50
|
ACTION["EDITOR_CRASHED_ADDITIONAL_INFORMATION"] = "unhandledErrorCaughtAdditionalInfov2";
|
|
51
51
|
ACTION["EDITOR_MOUNTED"] = "mounted";
|
|
52
|
-
ACTION["EDITOR_TTI"] = "tti";
|
|
53
52
|
ACTION["EDITOR_CONTENT_RETRIEVAL_PERFORMED"] = "contentRetrievalPerformed";
|
|
54
53
|
ACTION["RE_RENDERED"] = "reRendered";
|
|
55
54
|
ACTION["ENDED"] = "ended";
|
|
@@ -75,10 +74,6 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
75
74
|
ACTION["INITIALISED_FRAGMENT_MARK"] = "initialisedFragmentMark";
|
|
76
75
|
ACTION["INPUT_PERF_SAMPLING"] = "inputPerfSampling";
|
|
77
76
|
ACTION["INPUT_PERF_SAMPLING_AVG"] = "inputPerfSamplingAvg";
|
|
78
|
-
ACTION["INPUT_PERF_SAMPLING_SINGLE_KEYPRESS"] = "inputPerfSamplingSingleKeypress";
|
|
79
|
-
ACTION["INPUT_PERF_SAMPLING_SINGLE_KEYPRESS_AVG"] = "inputPerfSamplingSingleKeypressAvg";
|
|
80
|
-
ACTION["INPUT_PERF_SAMPLING_RENDERED"] = "inputPerfSamplingRendered";
|
|
81
|
-
ACTION["INPUT_PERF_SAMPLING_RENDERED_AVG"] = "inputPerfSamplingRenderedAvg";
|
|
82
77
|
ACTION["INSERTED"] = "inserted";
|
|
83
78
|
ACTION["INVALID_DOCUMENT_ENCOUNTERED"] = "invalidDocumentEncountered";
|
|
84
79
|
ACTION["INVOKED"] = "invoked";
|
|
@@ -118,7 +113,6 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
118
113
|
ACTION["INDENTATION_MARKS_TRANSFORMED"] = "indentationMarksTransformed";
|
|
119
114
|
ACTION["INVALID_MEDIA_CONTENT_TRANSFORMED"] = "invalidMediaContentTransformed";
|
|
120
115
|
ACTION["TOGGLE_EXPAND"] = "toggleExpand";
|
|
121
|
-
ACTION["TRANSACTION_DISPATCHED"] = "transactionDispatched";
|
|
122
116
|
ACTION["TRANSACTION_MUTATED_AFTER_DISPATCH"] = "transactionMutatedAfterDispatched";
|
|
123
117
|
ACTION["TYPING_FINISHED"] = "typingFinished";
|
|
124
118
|
ACTION["TYPING_STARTED"] = "typingStarted";
|
|
@@ -150,7 +144,6 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
150
144
|
ACTION["REMOVE_ICON"] = "removedIcon";
|
|
151
145
|
ACTION["INVALID_PROSEMIRROR_DOCUMENT"] = "invalidProsemirrorDocument";
|
|
152
146
|
ACTION["DOCUMENT_PROCESSING_ERROR"] = "documentProcessingErrorV2";
|
|
153
|
-
ACTION["RENDERER_TTI"] = "tti";
|
|
154
147
|
ACTION["CRASHED"] = "unhandledErrorCaughtV2";
|
|
155
148
|
ACTION["SELECT_ALL_CAUGHT"] = "selectAllCaught";
|
|
156
149
|
ACTION["SELECT_ALL_ESCAPED"] = "selectAllEscaped";
|
|
@@ -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 = "
|
|
4
|
+
const packageVersion = "105.0.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -4,6 +4,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
5
5
|
|
|
6
6
|
import React from 'react';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
|
|
8
9
|
import { createDispatch } from '../event-dispatcher';
|
|
9
10
|
import { ErrorBoundary } from '../ui/ErrorBoundary';
|
|
@@ -122,13 +123,12 @@ export default class ReactNodeView {
|
|
|
122
123
|
// Ignored via go/ees005
|
|
123
124
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
124
125
|
let oldIgnoreMutation;
|
|
126
|
+
let parentOffset = 0; // Remove with feature gate: platform_editor_r18_fix_selection_resync
|
|
125
127
|
let selectionBookmark;
|
|
126
|
-
let parentOffset = 0;
|
|
127
128
|
let mutationsIgnored = false;
|
|
128
129
|
|
|
129
130
|
// move the contentDOM node inside the inner reference after rendering
|
|
130
131
|
if (node && contentDOM && !node.contains(contentDOM)) {
|
|
131
|
-
var _this$view$state$sele;
|
|
132
132
|
// @ts-ignore - ignoreMutation may not be declared
|
|
133
133
|
oldIgnoreMutation = this.ignoreMutation; // store ref to previous ignoreMutation
|
|
134
134
|
|
|
@@ -149,21 +149,40 @@ export default class ReactNodeView {
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
// ... and capture parent offset before DOM change
|
|
152
|
-
if ((
|
|
153
|
-
var _this$view$state$
|
|
154
|
-
|
|
152
|
+
if (!fg('platform_editor_r18_fix_selection_resync')) {
|
|
153
|
+
var _this$view$state$sele;
|
|
154
|
+
if (((_this$view$state$sele = this.view.state.selection) === null || _this$view$state$sele === void 0 ? void 0 : _this$view$state$sele.ranges.length) > 0) {
|
|
155
|
+
var _this$view$state$sele2, _this$view$state$sele3, _this$view$state$sele4;
|
|
156
|
+
parentOffset = (_this$view$state$sele2 = (_this$view$state$sele3 = this.view.state.selection) === null || _this$view$state$sele3 === void 0 ? void 0 : (_this$view$state$sele4 = _this$view$state$sele3.ranges[0].$from) === null || _this$view$state$sele4 === void 0 ? void 0 : _this$view$state$sele4.parentOffset) !== null && _this$view$state$sele2 !== void 0 ? _this$view$state$sele2 : 0;
|
|
157
|
+
}
|
|
155
158
|
}
|
|
156
159
|
node.appendChild(contentDOM);
|
|
160
|
+
|
|
161
|
+
// After the next frame:
|
|
157
162
|
requestAnimationFrame(() => {
|
|
158
|
-
//
|
|
163
|
+
// Restore the original mutation handler
|
|
159
164
|
// @ts-ignore - this may not have been declared by implementing class
|
|
160
165
|
this.ignoreMutation = oldIgnoreMutation;
|
|
161
166
|
|
|
162
|
-
//
|
|
163
|
-
//
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
+
// Restore the selection only if:
|
|
168
|
+
// - We have a selection bookmark
|
|
169
|
+
// - Mutations were ignored during the table move
|
|
170
|
+
// - The bookmarked selection is different from the current selection.
|
|
171
|
+
if (selectionBookmark && mutationsIgnored) {
|
|
172
|
+
if (fg('platform_editor_r18_fix_selection_resync')) {
|
|
173
|
+
const resolvedSelection = selectionBookmark.resolve(this.view.state.tr.doc);
|
|
174
|
+
// Don't set the selection if it's the same as the current selection.
|
|
175
|
+
if (!resolvedSelection.eq(this.view.state.selection)) {
|
|
176
|
+
const tr = this.view.state.tr.setSelection(resolvedSelection);
|
|
177
|
+
tr.setMeta('source', 'ReactNodeView:_handleRef:selection-resync');
|
|
178
|
+
this.view.dispatch(tr);
|
|
179
|
+
}
|
|
180
|
+
} else {
|
|
181
|
+
if (parentOffset > 0) {
|
|
182
|
+
// ... and dispatch expected selection state
|
|
183
|
+
this.view.dispatch(this.view.state.tr.setSelection(selectionBookmark.resolve(this.view.state.tr.doc)));
|
|
184
|
+
}
|
|
185
|
+
}
|
|
167
186
|
}
|
|
168
187
|
});
|
|
169
188
|
}
|
|
@@ -20,7 +20,7 @@ export const getSmartCardSharedStyles = () => `
|
|
|
20
20
|
max-width: ${8 * 95}px;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.${SmartCardSharedCssClassName.
|
|
23
|
+
.${SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER} {
|
|
24
24
|
/* EDM-11991: Fix list plugin adding padding to ADS AvatarGroup start */
|
|
25
25
|
ul, ol {
|
|
26
26
|
padding-left: inherit;
|
|
@@ -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 = "
|
|
16
|
+
const packageVersion = "105.0.0";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -49,7 +49,6 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
49
49
|
ACTION["EDITOR_CRASHED"] = "unhandledErrorCaught";
|
|
50
50
|
ACTION["EDITOR_CRASHED_ADDITIONAL_INFORMATION"] = "unhandledErrorCaughtAdditionalInfov2";
|
|
51
51
|
ACTION["EDITOR_MOUNTED"] = "mounted";
|
|
52
|
-
ACTION["EDITOR_TTI"] = "tti";
|
|
53
52
|
ACTION["EDITOR_CONTENT_RETRIEVAL_PERFORMED"] = "contentRetrievalPerformed";
|
|
54
53
|
ACTION["RE_RENDERED"] = "reRendered";
|
|
55
54
|
ACTION["ENDED"] = "ended";
|
|
@@ -75,10 +74,6 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
75
74
|
ACTION["INITIALISED_FRAGMENT_MARK"] = "initialisedFragmentMark";
|
|
76
75
|
ACTION["INPUT_PERF_SAMPLING"] = "inputPerfSampling";
|
|
77
76
|
ACTION["INPUT_PERF_SAMPLING_AVG"] = "inputPerfSamplingAvg";
|
|
78
|
-
ACTION["INPUT_PERF_SAMPLING_SINGLE_KEYPRESS"] = "inputPerfSamplingSingleKeypress";
|
|
79
|
-
ACTION["INPUT_PERF_SAMPLING_SINGLE_KEYPRESS_AVG"] = "inputPerfSamplingSingleKeypressAvg";
|
|
80
|
-
ACTION["INPUT_PERF_SAMPLING_RENDERED"] = "inputPerfSamplingRendered";
|
|
81
|
-
ACTION["INPUT_PERF_SAMPLING_RENDERED_AVG"] = "inputPerfSamplingRenderedAvg";
|
|
82
77
|
ACTION["INSERTED"] = "inserted";
|
|
83
78
|
ACTION["INVALID_DOCUMENT_ENCOUNTERED"] = "invalidDocumentEncountered";
|
|
84
79
|
ACTION["INVOKED"] = "invoked";
|
|
@@ -118,7 +113,6 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
118
113
|
ACTION["INDENTATION_MARKS_TRANSFORMED"] = "indentationMarksTransformed";
|
|
119
114
|
ACTION["INVALID_MEDIA_CONTENT_TRANSFORMED"] = "invalidMediaContentTransformed";
|
|
120
115
|
ACTION["TOGGLE_EXPAND"] = "toggleExpand";
|
|
121
|
-
ACTION["TRANSACTION_DISPATCHED"] = "transactionDispatched";
|
|
122
116
|
ACTION["TRANSACTION_MUTATED_AFTER_DISPATCH"] = "transactionMutatedAfterDispatched";
|
|
123
117
|
ACTION["TYPING_FINISHED"] = "typingFinished";
|
|
124
118
|
ACTION["TYPING_STARTED"] = "typingStarted";
|
|
@@ -150,7 +144,6 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
150
144
|
ACTION["REMOVE_ICON"] = "removedIcon";
|
|
151
145
|
ACTION["INVALID_PROSEMIRROR_DOCUMENT"] = "invalidProsemirrorDocument";
|
|
152
146
|
ACTION["DOCUMENT_PROCESSING_ERROR"] = "documentProcessingErrorV2";
|
|
153
|
-
ACTION["RENDERER_TTI"] = "tti";
|
|
154
147
|
ACTION["CRASHED"] = "unhandledErrorCaughtV2";
|
|
155
148
|
ACTION["SELECT_ALL_CAUGHT"] = "selectAllCaught";
|
|
156
149
|
ACTION["SELECT_ALL_ESCAPED"] = "selectAllEscaped";
|
|
@@ -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 = "
|
|
10
|
+
var packageVersion = "105.0.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -6,6 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
6
6
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
10
|
import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
|
|
10
11
|
import { createDispatch } from '../event-dispatcher';
|
|
11
12
|
import { ErrorBoundary } from '../ui/ErrorBoundary';
|
|
@@ -141,13 +142,12 @@ var ReactNodeView = /*#__PURE__*/function () {
|
|
|
141
142
|
// Ignored via go/ees005
|
|
142
143
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
143
144
|
var oldIgnoreMutation;
|
|
145
|
+
var parentOffset = 0; // Remove with feature gate: platform_editor_r18_fix_selection_resync
|
|
144
146
|
var selectionBookmark;
|
|
145
|
-
var parentOffset = 0;
|
|
146
147
|
var mutationsIgnored = false;
|
|
147
148
|
|
|
148
149
|
// move the contentDOM node inside the inner reference after rendering
|
|
149
150
|
if (node && contentDOM && !node.contains(contentDOM)) {
|
|
150
|
-
var _this$view$state$sele;
|
|
151
151
|
// @ts-ignore - ignoreMutation may not be declared
|
|
152
152
|
oldIgnoreMutation = this.ignoreMutation; // store ref to previous ignoreMutation
|
|
153
153
|
|
|
@@ -168,21 +168,40 @@ var ReactNodeView = /*#__PURE__*/function () {
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
// ... and capture parent offset before DOM change
|
|
171
|
-
if ((
|
|
172
|
-
var _this$view$state$
|
|
173
|
-
|
|
171
|
+
if (!fg('platform_editor_r18_fix_selection_resync')) {
|
|
172
|
+
var _this$view$state$sele;
|
|
173
|
+
if (((_this$view$state$sele = this.view.state.selection) === null || _this$view$state$sele === void 0 ? void 0 : _this$view$state$sele.ranges.length) > 0) {
|
|
174
|
+
var _this$view$state$sele2, _this$view$state$sele3;
|
|
175
|
+
parentOffset = (_this$view$state$sele2 = (_this$view$state$sele3 = this.view.state.selection) === null || _this$view$state$sele3 === void 0 || (_this$view$state$sele3 = _this$view$state$sele3.ranges[0].$from) === null || _this$view$state$sele3 === void 0 ? void 0 : _this$view$state$sele3.parentOffset) !== null && _this$view$state$sele2 !== void 0 ? _this$view$state$sele2 : 0;
|
|
176
|
+
}
|
|
174
177
|
}
|
|
175
178
|
node.appendChild(contentDOM);
|
|
179
|
+
|
|
180
|
+
// After the next frame:
|
|
176
181
|
requestAnimationFrame(function () {
|
|
177
|
-
//
|
|
182
|
+
// Restore the original mutation handler
|
|
178
183
|
// @ts-ignore - this may not have been declared by implementing class
|
|
179
184
|
_this4.ignoreMutation = oldIgnoreMutation;
|
|
180
185
|
|
|
181
|
-
//
|
|
182
|
-
//
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
+
// Restore the selection only if:
|
|
187
|
+
// - We have a selection bookmark
|
|
188
|
+
// - Mutations were ignored during the table move
|
|
189
|
+
// - The bookmarked selection is different from the current selection.
|
|
190
|
+
if (selectionBookmark && mutationsIgnored) {
|
|
191
|
+
if (fg('platform_editor_r18_fix_selection_resync')) {
|
|
192
|
+
var resolvedSelection = selectionBookmark.resolve(_this4.view.state.tr.doc);
|
|
193
|
+
// Don't set the selection if it's the same as the current selection.
|
|
194
|
+
if (!resolvedSelection.eq(_this4.view.state.selection)) {
|
|
195
|
+
var tr = _this4.view.state.tr.setSelection(resolvedSelection);
|
|
196
|
+
tr.setMeta('source', 'ReactNodeView:_handleRef:selection-resync');
|
|
197
|
+
_this4.view.dispatch(tr);
|
|
198
|
+
}
|
|
199
|
+
} else {
|
|
200
|
+
if (parentOffset > 0) {
|
|
201
|
+
// ... and dispatch expected selection state
|
|
202
|
+
_this4.view.dispatch(_this4.view.state.tr.setSelection(selectionBookmark.resolve(_this4.view.state.tr.doc)));
|
|
203
|
+
}
|
|
204
|
+
}
|
|
186
205
|
}
|
|
187
206
|
});
|
|
188
207
|
}
|
|
@@ -8,5 +8,5 @@ export var SmartCardSharedCssClassName = {
|
|
|
8
8
|
};
|
|
9
9
|
export var smartCardSharedStyles = "\n .".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, " {\n display: block;\n margin: ").concat(blockNodesVerticalMargin, " 0 0;\n max-width: ").concat(8 * 95, "px;\n }\n");
|
|
10
10
|
export var getSmartCardSharedStyles = function getSmartCardSharedStyles() {
|
|
11
|
-
return "\n .".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, " {\n display: block;\n margin: ").concat(blockNodesVerticalMargin, " 0 0;\n max-width: ").concat(8 * 95, "px;\n }\n\n .").concat(SmartCardSharedCssClassName.
|
|
11
|
+
return "\n .".concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, " {\n display: block;\n margin: ").concat(blockNodesVerticalMargin, " 0 0;\n max-width: ").concat(8 * 95, "px;\n }\n\n .").concat(SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, " {\n /* EDM-11991: Fix list plugin adding padding to ADS AvatarGroup start */\n ul, ol {\n padding-left: inherit;\n }\n /* EDM-11991: Fix list plugin add padding to ADS AvatarGroup end */\n }\n");
|
|
12
12
|
};
|
|
@@ -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 = "
|
|
23
|
+
var packageVersion = "105.0.0";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -48,7 +48,6 @@ export declare enum ACTION {
|
|
|
48
48
|
EDITOR_CRASHED = "unhandledErrorCaught",
|
|
49
49
|
EDITOR_CRASHED_ADDITIONAL_INFORMATION = "unhandledErrorCaughtAdditionalInfov2",
|
|
50
50
|
EDITOR_MOUNTED = "mounted",
|
|
51
|
-
EDITOR_TTI = "tti",
|
|
52
51
|
EDITOR_CONTENT_RETRIEVAL_PERFORMED = "contentRetrievalPerformed",
|
|
53
52
|
RE_RENDERED = "reRendered",
|
|
54
53
|
ENDED = "ended",
|
|
@@ -74,10 +73,6 @@ export declare enum ACTION {
|
|
|
74
73
|
INITIALISED_FRAGMENT_MARK = "initialisedFragmentMark",
|
|
75
74
|
INPUT_PERF_SAMPLING = "inputPerfSampling",
|
|
76
75
|
INPUT_PERF_SAMPLING_AVG = "inputPerfSamplingAvg",
|
|
77
|
-
INPUT_PERF_SAMPLING_SINGLE_KEYPRESS = "inputPerfSamplingSingleKeypress",
|
|
78
|
-
INPUT_PERF_SAMPLING_SINGLE_KEYPRESS_AVG = "inputPerfSamplingSingleKeypressAvg",
|
|
79
|
-
INPUT_PERF_SAMPLING_RENDERED = "inputPerfSamplingRendered",
|
|
80
|
-
INPUT_PERF_SAMPLING_RENDERED_AVG = "inputPerfSamplingRenderedAvg",
|
|
81
76
|
INSERTED = "inserted",
|
|
82
77
|
INVALID_DOCUMENT_ENCOUNTERED = "invalidDocumentEncountered",
|
|
83
78
|
INVOKED = "invoked",
|
|
@@ -117,7 +112,6 @@ export declare enum ACTION {
|
|
|
117
112
|
INDENTATION_MARKS_TRANSFORMED = "indentationMarksTransformed",
|
|
118
113
|
INVALID_MEDIA_CONTENT_TRANSFORMED = "invalidMediaContentTransformed",
|
|
119
114
|
TOGGLE_EXPAND = "toggleExpand",
|
|
120
|
-
TRANSACTION_DISPATCHED = "transactionDispatched",
|
|
121
115
|
TRANSACTION_MUTATED_AFTER_DISPATCH = "transactionMutatedAfterDispatched",
|
|
122
116
|
TYPING_FINISHED = "typingFinished",
|
|
123
117
|
TYPING_STARTED = "typingStarted",
|
|
@@ -149,7 +143,6 @@ export declare enum ACTION {
|
|
|
149
143
|
REMOVE_ICON = "removedIcon",
|
|
150
144
|
INVALID_PROSEMIRROR_DOCUMENT = "invalidProsemirrorDocument",
|
|
151
145
|
DOCUMENT_PROCESSING_ERROR = "documentProcessingErrorV2",
|
|
152
|
-
RENDERER_TTI = "tti",
|
|
153
146
|
CRASHED = "unhandledErrorCaughtV2",
|
|
154
147
|
SELECT_ALL_CAUGHT = "selectAllCaught",
|
|
155
148
|
SELECT_ALL_ESCAPED = "selectAllEscaped",
|
|
@@ -4,7 +4,6 @@ import type { PropsDifference, ShallowPropsDifference } from '../../utils';
|
|
|
4
4
|
import type { SEVERITY } from '../../utils/analytics';
|
|
5
5
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
|
|
6
6
|
import type { AnnotationAEP } from './inline-comment-events';
|
|
7
|
-
import type { PluginPerformanceReportData } from './performance-report';
|
|
8
7
|
import type { OperationalAEP, OperationalAEPWithObjectId, TrackAEP, UIAEP } from './utils';
|
|
9
8
|
export declare enum PLATFORMS {
|
|
10
9
|
NATIVE = "mobileNative",
|
|
@@ -45,14 +44,6 @@ type EditorPerfAEP = OperationalAEPWithObjectId<ACTION.EDITOR_MOUNTED | ACTION.P
|
|
|
45
44
|
severity?: SEVERITY;
|
|
46
45
|
distortedDuration?: boolean;
|
|
47
46
|
}>;
|
|
48
|
-
type EditorTTIAEP = OperationalAEP<ACTION.EDITOR_TTI, ACTION_SUBJECT.EDITOR, undefined, {
|
|
49
|
-
tti: number;
|
|
50
|
-
ttiFromInvocation: number;
|
|
51
|
-
canceled: boolean;
|
|
52
|
-
ttiSeverity?: SEVERITY;
|
|
53
|
-
ttiFromInvocationSeverity?: SEVERITY;
|
|
54
|
-
distortedDuration: boolean;
|
|
55
|
-
}>;
|
|
56
47
|
type EditorContentRetrievalPerformedAEP = OperationalAEP<ACTION.EDITOR_CONTENT_RETRIEVAL_PERFORMED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
57
48
|
success: boolean;
|
|
58
49
|
errorInfo?: string;
|
|
@@ -75,13 +66,13 @@ type SlowInputAEP = OperationalAEPWithObjectId<ACTION.SLOW_INPUT, ACTION_SUBJECT
|
|
|
75
66
|
nodeSize: number;
|
|
76
67
|
nodeCount?: Record<string, number>;
|
|
77
68
|
}>;
|
|
78
|
-
type
|
|
69
|
+
type InputPerfSamplingAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMPLING, ACTION_SUBJECT.EDITOR, undefined, {
|
|
79
70
|
time: number;
|
|
80
71
|
nodeSize: number;
|
|
81
72
|
nodeCount?: Record<string, number>;
|
|
82
73
|
severity?: SEVERITY;
|
|
83
74
|
}>;
|
|
84
|
-
type InputPerfSamplingAvgAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMPLING_AVG
|
|
75
|
+
type InputPerfSamplingAvgAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMPLING_AVG, ACTION_SUBJECT.EDITOR, undefined, {
|
|
85
76
|
mean: number;
|
|
86
77
|
median: number;
|
|
87
78
|
sampleSize: number;
|
|
@@ -89,10 +80,6 @@ type InputPerfSamplingAvgAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMP
|
|
|
89
80
|
nodeSize: number;
|
|
90
81
|
severity?: SEVERITY;
|
|
91
82
|
}>;
|
|
92
|
-
type DispatchedTransactionAEP = OperationalAEP<ACTION.TRANSACTION_DISPATCHED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
93
|
-
report: PluginPerformanceReportData;
|
|
94
|
-
participants: number;
|
|
95
|
-
}>;
|
|
96
83
|
type TransactionMutatedAEP = OperationalAEP<ACTION.TRANSACTION_MUTATED_AFTER_DISPATCH, ACTION_SUBJECT.EDITOR, undefined, {
|
|
97
84
|
pluginKey: string;
|
|
98
85
|
}>;
|
|
@@ -209,5 +196,5 @@ type CopyLinkToAnchorButtonAEP = ButtonAEP<ACTION_SUBJECT_ID.COPY_LINK_TO_ANCHOR
|
|
|
209
196
|
extensionType?: string;
|
|
210
197
|
isLivePage?: boolean;
|
|
211
198
|
}>;
|
|
212
|
-
export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ButtonUploadMediaAEP | ColorPickerAEP |
|
|
199
|
+
export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ButtonUploadMediaAEP | ColorPickerAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamplingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | PickerMediaInsertAEP | PickerMediaInsertClosedAEP | PickerMediaInsertCancelledAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP | BlocksDragInitAEP | CodeBlockWordWrapToggleAEP | RequestToEditAEP | SingleColumLayoutDetectedAEP | CopyLinkToAnchorButtonAEP | DockedPrimaryToolbarRenderedAEP;
|
|
213
200
|
export {};
|
|
@@ -48,7 +48,6 @@ export declare enum ACTION {
|
|
|
48
48
|
EDITOR_CRASHED = "unhandledErrorCaught",
|
|
49
49
|
EDITOR_CRASHED_ADDITIONAL_INFORMATION = "unhandledErrorCaughtAdditionalInfov2",
|
|
50
50
|
EDITOR_MOUNTED = "mounted",
|
|
51
|
-
EDITOR_TTI = "tti",
|
|
52
51
|
EDITOR_CONTENT_RETRIEVAL_PERFORMED = "contentRetrievalPerformed",
|
|
53
52
|
RE_RENDERED = "reRendered",
|
|
54
53
|
ENDED = "ended",
|
|
@@ -74,10 +73,6 @@ export declare enum ACTION {
|
|
|
74
73
|
INITIALISED_FRAGMENT_MARK = "initialisedFragmentMark",
|
|
75
74
|
INPUT_PERF_SAMPLING = "inputPerfSampling",
|
|
76
75
|
INPUT_PERF_SAMPLING_AVG = "inputPerfSamplingAvg",
|
|
77
|
-
INPUT_PERF_SAMPLING_SINGLE_KEYPRESS = "inputPerfSamplingSingleKeypress",
|
|
78
|
-
INPUT_PERF_SAMPLING_SINGLE_KEYPRESS_AVG = "inputPerfSamplingSingleKeypressAvg",
|
|
79
|
-
INPUT_PERF_SAMPLING_RENDERED = "inputPerfSamplingRendered",
|
|
80
|
-
INPUT_PERF_SAMPLING_RENDERED_AVG = "inputPerfSamplingRenderedAvg",
|
|
81
76
|
INSERTED = "inserted",
|
|
82
77
|
INVALID_DOCUMENT_ENCOUNTERED = "invalidDocumentEncountered",
|
|
83
78
|
INVOKED = "invoked",
|
|
@@ -117,7 +112,6 @@ export declare enum ACTION {
|
|
|
117
112
|
INDENTATION_MARKS_TRANSFORMED = "indentationMarksTransformed",
|
|
118
113
|
INVALID_MEDIA_CONTENT_TRANSFORMED = "invalidMediaContentTransformed",
|
|
119
114
|
TOGGLE_EXPAND = "toggleExpand",
|
|
120
|
-
TRANSACTION_DISPATCHED = "transactionDispatched",
|
|
121
115
|
TRANSACTION_MUTATED_AFTER_DISPATCH = "transactionMutatedAfterDispatched",
|
|
122
116
|
TYPING_FINISHED = "typingFinished",
|
|
123
117
|
TYPING_STARTED = "typingStarted",
|
|
@@ -149,7 +143,6 @@ export declare enum ACTION {
|
|
|
149
143
|
REMOVE_ICON = "removedIcon",
|
|
150
144
|
INVALID_PROSEMIRROR_DOCUMENT = "invalidProsemirrorDocument",
|
|
151
145
|
DOCUMENT_PROCESSING_ERROR = "documentProcessingErrorV2",
|
|
152
|
-
RENDERER_TTI = "tti",
|
|
153
146
|
CRASHED = "unhandledErrorCaughtV2",
|
|
154
147
|
SELECT_ALL_CAUGHT = "selectAllCaught",
|
|
155
148
|
SELECT_ALL_ESCAPED = "selectAllEscaped",
|
|
@@ -4,7 +4,6 @@ import type { PropsDifference, ShallowPropsDifference } from '../../utils';
|
|
|
4
4
|
import type { SEVERITY } from '../../utils/analytics';
|
|
5
5
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
|
|
6
6
|
import type { AnnotationAEP } from './inline-comment-events';
|
|
7
|
-
import type { PluginPerformanceReportData } from './performance-report';
|
|
8
7
|
import type { OperationalAEP, OperationalAEPWithObjectId, TrackAEP, UIAEP } from './utils';
|
|
9
8
|
export declare enum PLATFORMS {
|
|
10
9
|
NATIVE = "mobileNative",
|
|
@@ -45,14 +44,6 @@ type EditorPerfAEP = OperationalAEPWithObjectId<ACTION.EDITOR_MOUNTED | ACTION.P
|
|
|
45
44
|
severity?: SEVERITY;
|
|
46
45
|
distortedDuration?: boolean;
|
|
47
46
|
}>;
|
|
48
|
-
type EditorTTIAEP = OperationalAEP<ACTION.EDITOR_TTI, ACTION_SUBJECT.EDITOR, undefined, {
|
|
49
|
-
tti: number;
|
|
50
|
-
ttiFromInvocation: number;
|
|
51
|
-
canceled: boolean;
|
|
52
|
-
ttiSeverity?: SEVERITY;
|
|
53
|
-
ttiFromInvocationSeverity?: SEVERITY;
|
|
54
|
-
distortedDuration: boolean;
|
|
55
|
-
}>;
|
|
56
47
|
type EditorContentRetrievalPerformedAEP = OperationalAEP<ACTION.EDITOR_CONTENT_RETRIEVAL_PERFORMED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
57
48
|
success: boolean;
|
|
58
49
|
errorInfo?: string;
|
|
@@ -75,13 +66,13 @@ type SlowInputAEP = OperationalAEPWithObjectId<ACTION.SLOW_INPUT, ACTION_SUBJECT
|
|
|
75
66
|
nodeSize: number;
|
|
76
67
|
nodeCount?: Record<string, number>;
|
|
77
68
|
}>;
|
|
78
|
-
type
|
|
69
|
+
type InputPerfSamplingAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMPLING, ACTION_SUBJECT.EDITOR, undefined, {
|
|
79
70
|
time: number;
|
|
80
71
|
nodeSize: number;
|
|
81
72
|
nodeCount?: Record<string, number>;
|
|
82
73
|
severity?: SEVERITY;
|
|
83
74
|
}>;
|
|
84
|
-
type InputPerfSamplingAvgAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMPLING_AVG
|
|
75
|
+
type InputPerfSamplingAvgAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMPLING_AVG, ACTION_SUBJECT.EDITOR, undefined, {
|
|
85
76
|
mean: number;
|
|
86
77
|
median: number;
|
|
87
78
|
sampleSize: number;
|
|
@@ -89,10 +80,6 @@ type InputPerfSamplingAvgAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMP
|
|
|
89
80
|
nodeSize: number;
|
|
90
81
|
severity?: SEVERITY;
|
|
91
82
|
}>;
|
|
92
|
-
type DispatchedTransactionAEP = OperationalAEP<ACTION.TRANSACTION_DISPATCHED, ACTION_SUBJECT.EDITOR, undefined, {
|
|
93
|
-
report: PluginPerformanceReportData;
|
|
94
|
-
participants: number;
|
|
95
|
-
}>;
|
|
96
83
|
type TransactionMutatedAEP = OperationalAEP<ACTION.TRANSACTION_MUTATED_AFTER_DISPATCH, ACTION_SUBJECT.EDITOR, undefined, {
|
|
97
84
|
pluginKey: string;
|
|
98
85
|
}>;
|
|
@@ -209,5 +196,5 @@ type CopyLinkToAnchorButtonAEP = ButtonAEP<ACTION_SUBJECT_ID.COPY_LINK_TO_ANCHOR
|
|
|
209
196
|
extensionType?: string;
|
|
210
197
|
isLivePage?: boolean;
|
|
211
198
|
}>;
|
|
212
|
-
export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ButtonUploadMediaAEP | ColorPickerAEP |
|
|
199
|
+
export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ButtonUploadMediaAEP | ColorPickerAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamplingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | PickerMediaInsertAEP | PickerMediaInsertClosedAEP | PickerMediaInsertCancelledAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP | BlocksDragInitAEP | CodeBlockWordWrapToggleAEP | RequestToEditAEP | SingleColumLayoutDetectedAEP | CopyLinkToAnchorButtonAEP | DockedPrimaryToolbarRenderedAEP;
|
|
213
200
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "105.0.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/"
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"@atlaskit/emoji": "^69.1.0",
|
|
141
141
|
"@atlaskit/icon": "^26.0.0",
|
|
142
142
|
"@atlaskit/icon-object": "^7.1.0",
|
|
143
|
-
"@atlaskit/link-datasource": "^4.
|
|
143
|
+
"@atlaskit/link-datasource": "^4.10.0",
|
|
144
144
|
"@atlaskit/link-picker": "^3.2.0",
|
|
145
145
|
"@atlaskit/media-card": "^79.2.0",
|
|
146
146
|
"@atlaskit/media-client": "^33.0.0",
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
158
158
|
"@atlaskit/popper": "^7.0.0",
|
|
159
159
|
"@atlaskit/primitives": "^14.7.0",
|
|
160
|
-
"@atlaskit/profilecard": "^23.
|
|
161
|
-
"@atlaskit/react-ufo": "^3.
|
|
160
|
+
"@atlaskit/profilecard": "^23.11.0",
|
|
161
|
+
"@atlaskit/react-ufo": "^3.11.0",
|
|
162
162
|
"@atlaskit/section-message": "^8.2.0",
|
|
163
163
|
"@atlaskit/smart-card": "^37.1.0",
|
|
164
164
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
@@ -378,6 +378,9 @@
|
|
|
378
378
|
},
|
|
379
379
|
"platform_editor_controls_patch_analytics": {
|
|
380
380
|
"type": "boolean"
|
|
381
|
+
},
|
|
382
|
+
"platform_editor_r18_fix_selection_resync": {
|
|
383
|
+
"type": "boolean"
|
|
381
384
|
}
|
|
382
385
|
}
|
|
383
386
|
}
|