@atlaskit/editor-common 104.1.4 → 105.1.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 CHANGED
@@ -1,5 +1,27 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 105.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#149096](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/149096)
8
+ [`831e11ae4484e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/831e11ae4484e) -
9
+ ED-27855 remove duplicate typeahead invoked events
10
+
11
+ ## 105.0.0
12
+
13
+ ### Major Changes
14
+
15
+ - [#152928](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/152928)
16
+ [`085c1eac95c8f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/085c1eac95c8f) -
17
+ [EDITOR-709] Removed unused analytics enums and types
18
+
19
+ ### Patch Changes
20
+
21
+ - [#153538](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/153538)
22
+ [`5c7cf4707fb42`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5c7cf4707fb42) -
23
+ [ux] Fix Smart Link AvatarGroup padding
24
+
3
25
  ## 104.1.4
4
26
 
5
27
  ### Patch Changes
@@ -103,6 +103,7 @@ var aiExperienceApplicationMessages = exports.aiExperienceApplicationMessages =
103
103
  defaultMessage: 'Rovo agents',
104
104
  description: 'Heading text to indicate that the next set of features are for agents'
105
105
  },
106
+ // Remove when cleaning up editor_ai_converge_free_gen_on_rovo
106
107
  useGeneralAiKnowledgeLabel: {
107
108
  id: 'fabric.editor.ai.experience.useGeneralAiKnowledgeLabel',
108
109
  defaultMessage: 'Use general knowledge',
@@ -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 = "104.1.4";
20
+ var packageVersion = "105.1.0";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // Ignored via go/ees007
@@ -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.LOADER_WRAPPER, " {\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");
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 = "104.1.4";
26
+ var packageVersion = "105.1.0";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -96,6 +96,7 @@ export const aiExperienceApplicationMessages = defineMessages({
96
96
  defaultMessage: 'Rovo agents',
97
97
  description: 'Heading text to indicate that the next set of features are for agents'
98
98
  },
99
+ // Remove when cleaning up editor_ai_converge_free_gen_on_rovo
99
100
  useGeneralAiKnowledgeLabel: {
100
101
  id: 'fabric.editor.ai.experience.useGeneralAiKnowledgeLabel',
101
102
  defaultMessage: 'Use general knowledge',
@@ -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 = "104.1.4";
4
+ const packageVersion = "105.1.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -20,7 +20,7 @@ export const getSmartCardSharedStyles = () => `
20
20
  max-width: ${8 * 95}px;
21
21
  }
22
22
 
23
- .${SmartCardSharedCssClassName.LOADER_WRAPPER} {
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 = "104.1.4";
16
+ const packageVersion = "105.1.0";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -96,6 +96,7 @@ export var aiExperienceApplicationMessages = defineMessages({
96
96
  defaultMessage: 'Rovo agents',
97
97
  description: 'Heading text to indicate that the next set of features are for agents'
98
98
  },
99
+ // Remove when cleaning up editor_ai_converge_free_gen_on_rovo
99
100
  useGeneralAiKnowledgeLabel: {
100
101
  id: 'fabric.editor.ai.experience.useGeneralAiKnowledgeLabel',
101
102
  defaultMessage: 'Use general knowledge',
@@ -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 = "104.1.4";
10
+ var packageVersion = "105.1.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -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.LOADER_WRAPPER, " {\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");
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 = "104.1.4";
23
+ var packageVersion = "105.1.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -1,5 +1,11 @@
1
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
1
+ import type { Transaction, Selection } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { AnalyticsEventPayload } from './types/events';
3
+ export type FireAnalyticsEventOptions = {
4
+ immediate?: boolean;
5
+ context?: {
6
+ selection: Selection;
7
+ };
8
+ };
3
9
  export type EditorAnalyticsAPI = {
4
10
  /**
5
11
  * attachAnalyticsEvent is used to attach an analytics payloads to a transaction
@@ -15,9 +21,9 @@ export type EditorAnalyticsAPI = {
15
21
  *
16
22
  * @param {AnalyticsEventPayload} payload - analytics payload
17
23
  * @param {string} [channel="editor"] - optional channel identifier
18
- * @param {object} [options] - optional options where immediate is true will fire event immediately
24
+ * @param {object} [options] - optional options object
25
+ * @param {boolean} [options.immediate] - if true, fire the event immediately
26
+ * @param {object} [options.context] - optional context object will include the selection data.
19
27
  */
20
- fireAnalyticsEvent: (payload: AnalyticsEventPayload, channel?: string, options?: {
21
- immediate?: boolean;
22
- }) => void | undefined;
28
+ fireAnalyticsEvent: (payload: AnalyticsEventPayload, channel?: string, options?: FireAnalyticsEventOptions) => void | undefined;
23
29
  };
@@ -36,7 +36,7 @@ export type { OperationalAEP } from './types/utils';
36
36
  export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData, } from './types/performance-report';
37
37
  export type { InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, } from './types/referentiality-events';
38
38
  export type { ViewInlineCommentsButtonEventAEP, ViewEventPayload } from './types/view-events';
39
- export type { EditorAnalyticsAPI } from './api';
39
+ export type { EditorAnalyticsAPI, FireAnalyticsEventOptions } from './api';
40
40
  export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
41
41
  export { getAnalyticsEventsFromTransaction } from './utils';
42
42
  export { buildEditLinkPayload, buildVisitedLinkPayload, buildVisitedNonHyperLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
@@ -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",
@@ -3,6 +3,7 @@ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
3
  import type { EditorState, PluginKey } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { NewCollabSyncUpErrorAttributes } from '../../collab';
5
5
  import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
6
+ import type { FireAnalyticsEventOptions } from '../api';
6
7
  import type { ActiveSessionEventPayload } from './activity-session-events';
7
8
  import type { AICommandPaletteEventPayload } from './ai-command-palette-events';
8
9
  import type { AIDefinitionsEventPayload } from './ai-definitions-events';
@@ -156,9 +157,7 @@ type SmartLinkErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.SMART_LIN
156
157
  export type ErrorEventPayload = InvalidTransactionErrorAEP | InvalidTransactionStepErrorAEP | FailedToUnmountErrorAEP | SynchronyErrorAEP | InvalidDocumentEncounteredAEP | SynchronyEntityErrorAEP | ContentComponentErrorAEP | PickerErrorAEP | ComponentCrashErrorAEP | ComponentCrashAdditionalInfoErrorAEP | SmartLinkErrorAEP;
157
158
  export type AnalyticsEventPayloadCallback = (state: EditorState) => AnalyticsEventPayload | undefined;
158
159
  export type FireAnalyticsCallback = <T>(payload: FireAnalyticsEventPayload<T>) => void | undefined;
159
- export type FireAnalyticsEvent = (createAnalyticsEvent?: CreateUIAnalyticsEvent, options?: {
160
- immediate?: boolean;
161
- }) => FireAnalyticsCallback;
160
+ export type FireAnalyticsEvent = (createAnalyticsEvent?: CreateUIAnalyticsEvent, options?: FireAnalyticsEventOptions) => FireAnalyticsCallback;
162
161
  export type FireAnalyticsEventPayload<T = void> = {
163
162
  payload: AnalyticsEventPayload<T>;
164
163
  channel?: string;
@@ -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 InputPerfSamlingAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMPLING | ACTION.INPUT_PERF_SAMPLING_SINGLE_KEYPRESS | ACTION.INPUT_PERF_SAMPLING_RENDERED, ACTION_SUBJECT.EDITOR, undefined, {
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 | ACTION.INPUT_PERF_SAMPLING_SINGLE_KEYPRESS_AVG | ACTION.INPUT_PERF_SAMPLING_RENDERED_AVG, ACTION_SUBJECT.EDITOR, undefined, {
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 | DispatchedTransactionAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | EditorTTIAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamlingAEP | 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;
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 {};
@@ -1,5 +1,11 @@
1
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
1
+ import type { Transaction, Selection } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { AnalyticsEventPayload } from './types/events';
3
+ export type FireAnalyticsEventOptions = {
4
+ immediate?: boolean;
5
+ context?: {
6
+ selection: Selection;
7
+ };
8
+ };
3
9
  export type EditorAnalyticsAPI = {
4
10
  /**
5
11
  * attachAnalyticsEvent is used to attach an analytics payloads to a transaction
@@ -15,9 +21,9 @@ export type EditorAnalyticsAPI = {
15
21
  *
16
22
  * @param {AnalyticsEventPayload} payload - analytics payload
17
23
  * @param {string} [channel="editor"] - optional channel identifier
18
- * @param {object} [options] - optional options where immediate is true will fire event immediately
24
+ * @param {object} [options] - optional options object
25
+ * @param {boolean} [options.immediate] - if true, fire the event immediately
26
+ * @param {object} [options.context] - optional context object will include the selection data.
19
27
  */
20
- fireAnalyticsEvent: (payload: AnalyticsEventPayload, channel?: string, options?: {
21
- immediate?: boolean;
22
- }) => void | undefined;
28
+ fireAnalyticsEvent: (payload: AnalyticsEventPayload, channel?: string, options?: FireAnalyticsEventOptions) => void | undefined;
23
29
  };
@@ -36,7 +36,7 @@ export type { OperationalAEP } from './types/utils';
36
36
  export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData, } from './types/performance-report';
37
37
  export type { InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, } from './types/referentiality-events';
38
38
  export type { ViewInlineCommentsButtonEventAEP, ViewEventPayload } from './types/view-events';
39
- export type { EditorAnalyticsAPI } from './api';
39
+ export type { EditorAnalyticsAPI, FireAnalyticsEventOptions } from './api';
40
40
  export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
41
41
  export { getAnalyticsEventsFromTransaction } from './utils';
42
42
  export { buildEditLinkPayload, buildVisitedLinkPayload, buildVisitedNonHyperLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
@@ -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",
@@ -3,6 +3,7 @@ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
3
3
  import type { EditorState, PluginKey } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { NewCollabSyncUpErrorAttributes } from '../../collab';
5
5
  import type { UnsupportedContentPayload, UnsupportedContentTooltipPayload, UserBrowserExtensionResults } from '../../utils';
6
+ import type { FireAnalyticsEventOptions } from '../api';
6
7
  import type { ActiveSessionEventPayload } from './activity-session-events';
7
8
  import type { AICommandPaletteEventPayload } from './ai-command-palette-events';
8
9
  import type { AIDefinitionsEventPayload } from './ai-definitions-events';
@@ -156,9 +157,7 @@ type SmartLinkErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.SMART_LIN
156
157
  export type ErrorEventPayload = InvalidTransactionErrorAEP | InvalidTransactionStepErrorAEP | FailedToUnmountErrorAEP | SynchronyErrorAEP | InvalidDocumentEncounteredAEP | SynchronyEntityErrorAEP | ContentComponentErrorAEP | PickerErrorAEP | ComponentCrashErrorAEP | ComponentCrashAdditionalInfoErrorAEP | SmartLinkErrorAEP;
157
158
  export type AnalyticsEventPayloadCallback = (state: EditorState) => AnalyticsEventPayload | undefined;
158
159
  export type FireAnalyticsCallback = <T>(payload: FireAnalyticsEventPayload<T>) => void | undefined;
159
- export type FireAnalyticsEvent = (createAnalyticsEvent?: CreateUIAnalyticsEvent, options?: {
160
- immediate?: boolean;
161
- }) => FireAnalyticsCallback;
160
+ export type FireAnalyticsEvent = (createAnalyticsEvent?: CreateUIAnalyticsEvent, options?: FireAnalyticsEventOptions) => FireAnalyticsCallback;
162
161
  export type FireAnalyticsEventPayload<T = void> = {
163
162
  payload: AnalyticsEventPayload<T>;
164
163
  channel?: string;
@@ -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 InputPerfSamlingAEP = OperationalAEPWithObjectId<ACTION.INPUT_PERF_SAMPLING | ACTION.INPUT_PERF_SAMPLING_SINGLE_KEYPRESS | ACTION.INPUT_PERF_SAMPLING_RENDERED, ACTION_SUBJECT.EDITOR, undefined, {
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 | ACTION.INPUT_PERF_SAMPLING_SINGLE_KEYPRESS_AVG | ACTION.INPUT_PERF_SAMPLING_RENDERED_AVG, ACTION_SUBJECT.EDITOR, undefined, {
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 | DispatchedTransactionAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | EditorTTIAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamlingAEP | 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;
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": "104.1.4",
3
+ "version": "105.1.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.9.0",
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",
@@ -158,7 +158,7 @@
158
158
  "@atlaskit/popper": "^7.0.0",
159
159
  "@atlaskit/primitives": "^14.7.0",
160
160
  "@atlaskit/profilecard": "^23.11.0",
161
- "@atlaskit/react-ufo": "^3.10.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",
@@ -166,7 +166,7 @@
166
166
  "@atlaskit/task-decision": "^19.2.0",
167
167
  "@atlaskit/textfield": "^8.0.0",
168
168
  "@atlaskit/theme": "^18.0.0",
169
- "@atlaskit/tmp-editor-statsig": "^4.19.0",
169
+ "@atlaskit/tmp-editor-statsig": "^4.20.0",
170
170
  "@atlaskit/tokens": "^4.8.0",
171
171
  "@atlaskit/tooltip": "^20.0.0",
172
172
  "@atlaskit/width-detector": "^5.0.0",