@atlaskit/editor-common 93.4.2 → 93.4.3
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 +15 -0
- package/dist/cjs/analytics/types/enums.js +4 -0
- package/dist/cjs/analytics/types/mention-events.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +4 -0
- package/dist/es2019/analytics/types/mention-events.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/enums.js +4 -0
- package/dist/esm/analytics/types/mention-events.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +4 -0
- package/dist/types/analytics/types/events.d.ts +2 -1
- package/dist/types/analytics/types/mention-events.d.ts +80 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +4 -0
- package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/mention-events.d.ts +80 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 93.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#152012](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152012)
|
|
8
|
+
[`30a69f02904da`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/30a69f02904da) -
|
|
9
|
+
[ED-23460] Make sure that error analytics in editor-plugin-mentions can fire by using actions from
|
|
10
|
+
editor-plugin-analytics
|
|
11
|
+
|
|
12
|
+
- **@atlaskit/editor-common**: Add types for `@atlaskit/editor-plugin-mentions` analytics
|
|
13
|
+
- **@atlaskit/editor-plugin-mentions**: Switch to using `@atlaskit/editor-plugin-analytics`
|
|
14
|
+
actions so that error events can be queued and fired consistently
|
|
15
|
+
- **@atlaskit/mention**: Move some enums to the types file and export them so they can be used to
|
|
16
|
+
type analytics events
|
|
17
|
+
|
|
3
18
|
## 93.4.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -83,6 +83,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
83
83
|
ACTION["PASTED"] = "pasted";
|
|
84
84
|
ACTION["PASTED_AS_PLAIN"] = "pastedAsPlain";
|
|
85
85
|
ACTION["PASTED_TIMED"] = "pastedTimed";
|
|
86
|
+
ACTION["PRESSED"] = "pressed";
|
|
86
87
|
ACTION["PROSEMIRROR_RENDERED"] = "proseMirrorRendered";
|
|
87
88
|
ACTION["REACT_NODEVIEW_RENDERED"] = "reactNodeViewRendered";
|
|
88
89
|
ACTION["REPLACED_ALL"] = "replacedAll";
|
|
@@ -221,11 +222,13 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
|
|
|
221
222
|
ACTION_SUBJECT["FLOATING_CONTEXTUAL_BUTTON"] = "floatingContextualButton";
|
|
222
223
|
ACTION_SUBJECT["FLOATING_TOOLBAR_PLUGIN"] = "floatingToolbarPlugin";
|
|
223
224
|
ACTION_SUBJECT["HELP"] = "help";
|
|
225
|
+
ACTION_SUBJECT["INVITE_ITEM"] = "inviteItem";
|
|
224
226
|
ACTION_SUBJECT["LAYOUT"] = "layout";
|
|
225
227
|
ACTION_SUBJECT["LIST"] = "list";
|
|
226
228
|
ACTION_SUBJECT["MEDIA"] = "media";
|
|
227
229
|
ACTION_SUBJECT["MEDIA_SINGLE"] = "mediaSingle";
|
|
228
230
|
ACTION_SUBJECT["MENTION"] = "mention";
|
|
231
|
+
ACTION_SUBJECT["MENTION_TYPEAHEAD"] = "mentionTypeahead";
|
|
229
232
|
ACTION_SUBJECT["NESTED_EXPAND"] = "nestedExpand";
|
|
230
233
|
ACTION_SUBJECT["PANEL"] = "panel";
|
|
231
234
|
ACTION_SUBJECT["PICKER"] = "picker";
|
|
@@ -238,6 +241,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
|
|
|
238
241
|
ACTION_SUBJECT["HYPERLINK"] = "hyperlink";
|
|
239
242
|
ACTION_SUBJECT["TABLE"] = "table";
|
|
240
243
|
ACTION_SUBJECT["TABLES_PLUGIN"] = "tablesPlugin";
|
|
244
|
+
ACTION_SUBJECT["TEAM_MENTION_TYPEAHEAD"] = "teamMentionTypeahead";
|
|
241
245
|
ACTION_SUBJECT["TEXT"] = "text";
|
|
242
246
|
ACTION_SUBJECT["TOOLBAR"] = "toolbar";
|
|
243
247
|
ACTION_SUBJECT["TYPEAHEAD"] = "typeAhead";
|
|
@@ -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 = "93.4.
|
|
20
|
+
var packageVersion = "93.4.3";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "93.4.
|
|
27
|
+
var packageVersion = "93.4.3";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -77,6 +77,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
77
77
|
ACTION["PASTED"] = "pasted";
|
|
78
78
|
ACTION["PASTED_AS_PLAIN"] = "pastedAsPlain";
|
|
79
79
|
ACTION["PASTED_TIMED"] = "pastedTimed";
|
|
80
|
+
ACTION["PRESSED"] = "pressed";
|
|
80
81
|
ACTION["PROSEMIRROR_RENDERED"] = "proseMirrorRendered";
|
|
81
82
|
ACTION["REACT_NODEVIEW_RENDERED"] = "reactNodeViewRendered";
|
|
82
83
|
ACTION["REPLACED_ALL"] = "replacedAll";
|
|
@@ -215,11 +216,13 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
215
216
|
ACTION_SUBJECT["FLOATING_CONTEXTUAL_BUTTON"] = "floatingContextualButton";
|
|
216
217
|
ACTION_SUBJECT["FLOATING_TOOLBAR_PLUGIN"] = "floatingToolbarPlugin";
|
|
217
218
|
ACTION_SUBJECT["HELP"] = "help";
|
|
219
|
+
ACTION_SUBJECT["INVITE_ITEM"] = "inviteItem";
|
|
218
220
|
ACTION_SUBJECT["LAYOUT"] = "layout";
|
|
219
221
|
ACTION_SUBJECT["LIST"] = "list";
|
|
220
222
|
ACTION_SUBJECT["MEDIA"] = "media";
|
|
221
223
|
ACTION_SUBJECT["MEDIA_SINGLE"] = "mediaSingle";
|
|
222
224
|
ACTION_SUBJECT["MENTION"] = "mention";
|
|
225
|
+
ACTION_SUBJECT["MENTION_TYPEAHEAD"] = "mentionTypeahead";
|
|
223
226
|
ACTION_SUBJECT["NESTED_EXPAND"] = "nestedExpand";
|
|
224
227
|
ACTION_SUBJECT["PANEL"] = "panel";
|
|
225
228
|
ACTION_SUBJECT["PICKER"] = "picker";
|
|
@@ -232,6 +235,7 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
232
235
|
ACTION_SUBJECT["HYPERLINK"] = "hyperlink";
|
|
233
236
|
ACTION_SUBJECT["TABLE"] = "table";
|
|
234
237
|
ACTION_SUBJECT["TABLES_PLUGIN"] = "tablesPlugin";
|
|
238
|
+
ACTION_SUBJECT["TEAM_MENTION_TYPEAHEAD"] = "teamMentionTypeahead";
|
|
235
239
|
ACTION_SUBJECT["TEXT"] = "text";
|
|
236
240
|
ACTION_SUBJECT["TOOLBAR"] = "toolbar";
|
|
237
241
|
ACTION_SUBJECT["TYPEAHEAD"] = "typeAhead";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 = "93.4.
|
|
4
|
+
const packageVersion = "93.4.3";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -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 = "93.4.
|
|
16
|
+
const packageVersion = "93.4.3";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
class DropList extends Component {
|
|
@@ -77,6 +77,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
77
77
|
ACTION["PASTED"] = "pasted";
|
|
78
78
|
ACTION["PASTED_AS_PLAIN"] = "pastedAsPlain";
|
|
79
79
|
ACTION["PASTED_TIMED"] = "pastedTimed";
|
|
80
|
+
ACTION["PRESSED"] = "pressed";
|
|
80
81
|
ACTION["PROSEMIRROR_RENDERED"] = "proseMirrorRendered";
|
|
81
82
|
ACTION["REACT_NODEVIEW_RENDERED"] = "reactNodeViewRendered";
|
|
82
83
|
ACTION["REPLACED_ALL"] = "replacedAll";
|
|
@@ -215,11 +216,13 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
215
216
|
ACTION_SUBJECT["FLOATING_CONTEXTUAL_BUTTON"] = "floatingContextualButton";
|
|
216
217
|
ACTION_SUBJECT["FLOATING_TOOLBAR_PLUGIN"] = "floatingToolbarPlugin";
|
|
217
218
|
ACTION_SUBJECT["HELP"] = "help";
|
|
219
|
+
ACTION_SUBJECT["INVITE_ITEM"] = "inviteItem";
|
|
218
220
|
ACTION_SUBJECT["LAYOUT"] = "layout";
|
|
219
221
|
ACTION_SUBJECT["LIST"] = "list";
|
|
220
222
|
ACTION_SUBJECT["MEDIA"] = "media";
|
|
221
223
|
ACTION_SUBJECT["MEDIA_SINGLE"] = "mediaSingle";
|
|
222
224
|
ACTION_SUBJECT["MENTION"] = "mention";
|
|
225
|
+
ACTION_SUBJECT["MENTION_TYPEAHEAD"] = "mentionTypeahead";
|
|
223
226
|
ACTION_SUBJECT["NESTED_EXPAND"] = "nestedExpand";
|
|
224
227
|
ACTION_SUBJECT["PANEL"] = "panel";
|
|
225
228
|
ACTION_SUBJECT["PICKER"] = "picker";
|
|
@@ -232,6 +235,7 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
232
235
|
ACTION_SUBJECT["HYPERLINK"] = "hyperlink";
|
|
233
236
|
ACTION_SUBJECT["TABLE"] = "table";
|
|
234
237
|
ACTION_SUBJECT["TABLES_PLUGIN"] = "tablesPlugin";
|
|
238
|
+
ACTION_SUBJECT["TEAM_MENTION_TYPEAHEAD"] = "teamMentionTypeahead";
|
|
235
239
|
ACTION_SUBJECT["TEXT"] = "text";
|
|
236
240
|
ACTION_SUBJECT["TOOLBAR"] = "toolbar";
|
|
237
241
|
ACTION_SUBJECT["TYPEAHEAD"] = "typeAhead";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 = "93.4.
|
|
10
|
+
var packageVersion = "93.4.3";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
21
21
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "93.4.
|
|
24
|
+
var packageVersion = "93.4.3";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -81,6 +81,7 @@ export declare enum ACTION {
|
|
|
81
81
|
PASTED = "pasted",
|
|
82
82
|
PASTED_AS_PLAIN = "pastedAsPlain",
|
|
83
83
|
PASTED_TIMED = "pastedTimed",
|
|
84
|
+
PRESSED = "pressed",
|
|
84
85
|
PROSEMIRROR_RENDERED = "proseMirrorRendered",
|
|
85
86
|
REACT_NODEVIEW_RENDERED = "reactNodeViewRendered",
|
|
86
87
|
REPLACED_ALL = "replacedAll",
|
|
@@ -218,11 +219,13 @@ export declare enum ACTION_SUBJECT {
|
|
|
218
219
|
FLOATING_CONTEXTUAL_BUTTON = "floatingContextualButton",
|
|
219
220
|
FLOATING_TOOLBAR_PLUGIN = "floatingToolbarPlugin",
|
|
220
221
|
HELP = "help",
|
|
222
|
+
INVITE_ITEM = "inviteItem",
|
|
221
223
|
LAYOUT = "layout",
|
|
222
224
|
LIST = "list",
|
|
223
225
|
MEDIA = "media",
|
|
224
226
|
MEDIA_SINGLE = "mediaSingle",
|
|
225
227
|
MENTION = "mention",
|
|
228
|
+
MENTION_TYPEAHEAD = "mentionTypeahead",
|
|
226
229
|
NESTED_EXPAND = "nestedExpand",
|
|
227
230
|
PANEL = "panel",
|
|
228
231
|
PICKER = "picker",
|
|
@@ -235,6 +238,7 @@ export declare enum ACTION_SUBJECT {
|
|
|
235
238
|
HYPERLINK = "hyperlink",
|
|
236
239
|
TABLE = "table",
|
|
237
240
|
TABLES_PLUGIN = "tablesPlugin",
|
|
241
|
+
TEAM_MENTION_TYPEAHEAD = "teamMentionTypeahead",
|
|
238
242
|
TEXT = "text",
|
|
239
243
|
TOOLBAR = "toolbar",
|
|
240
244
|
TYPEAHEAD = "typeAhead",
|
|
@@ -26,6 +26,7 @@ import type { CreateLinkInlineDialogEventPayload, EditLinkToolbarAEP, OpenSettin
|
|
|
26
26
|
import type { ListEventPayload } from './list-events';
|
|
27
27
|
import type { LoomEventPayload } from './loom-events';
|
|
28
28
|
import type { MediaEventPayload } from './media-events';
|
|
29
|
+
import { type MentionEventPayload } from './mention-events';
|
|
29
30
|
import type { MoveContentEventPayload } from './move-content-events';
|
|
30
31
|
import type { NodeEventPayload } from './node-events';
|
|
31
32
|
import type { PasteEventPayload } from './paste-events';
|
|
@@ -45,7 +46,7 @@ export type SimplifiedNode = {
|
|
|
45
46
|
marks?: string[];
|
|
46
47
|
content?: SimplifiedNode[];
|
|
47
48
|
};
|
|
48
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | EngagementPlatformEventPayload;
|
|
49
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload;
|
|
49
50
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
50
51
|
previousColor: string;
|
|
51
52
|
newColor: string;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { type ComponentNames, type Actions as MentionActions, type SliNames } from '@atlaskit/mention/types';
|
|
2
|
+
import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
|
|
3
|
+
import { type OperationalAEP, type UIAEP } from './utils';
|
|
4
|
+
type MentionTypeaheadCancelledEventPayload = UIAEP<ACTION.CANCELLED, ACTION_SUBJECT.MENTION_TYPEAHEAD, undefined, {
|
|
5
|
+
componentName: string;
|
|
6
|
+
duration: number;
|
|
7
|
+
queryLength?: number;
|
|
8
|
+
spaceInQuery?: boolean;
|
|
9
|
+
upKeyCount: number;
|
|
10
|
+
downKeyCount: number;
|
|
11
|
+
sessionId: string;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
type MentionTypeaheadInviteItemViewedPayload = UIAEP<ACTION.RENDERED, ACTION_SUBJECT.INVITE_ITEM, undefined, {
|
|
14
|
+
componentName: string;
|
|
15
|
+
containerId: string;
|
|
16
|
+
objectId: string;
|
|
17
|
+
childObjectId?: string;
|
|
18
|
+
userRole?: string;
|
|
19
|
+
sessionId: string;
|
|
20
|
+
}, undefined>;
|
|
21
|
+
type MentionTypeaheadInviteItemClickedPayload = UIAEP<ACTION.CLICKED | ACTION.PRESSED, ACTION_SUBJECT.INVITE_ITEM, undefined, {
|
|
22
|
+
componentName: string;
|
|
23
|
+
duration: number;
|
|
24
|
+
queryLength?: number;
|
|
25
|
+
spaceInQuery?: boolean;
|
|
26
|
+
upKeyCount: number;
|
|
27
|
+
downKeyCount: number;
|
|
28
|
+
containerId: string;
|
|
29
|
+
objectId: string;
|
|
30
|
+
childObjectId?: string;
|
|
31
|
+
userRole?: string;
|
|
32
|
+
sessionId: string;
|
|
33
|
+
keyboardKey?: string;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
type MentionTypeaheadInsertedPayload = UIAEP<ACTION.CLICKED | ACTION.PRESSED, ACTION_SUBJECT.MENTION_TYPEAHEAD, undefined, {
|
|
36
|
+
sessionId: string;
|
|
37
|
+
duration: number;
|
|
38
|
+
position?: number;
|
|
39
|
+
keyboardKey?: string;
|
|
40
|
+
source?: string;
|
|
41
|
+
queryLength?: number;
|
|
42
|
+
spaceInQuery?: boolean;
|
|
43
|
+
isSpecial: boolean;
|
|
44
|
+
accessLevel: string;
|
|
45
|
+
userType?: string;
|
|
46
|
+
userId: string;
|
|
47
|
+
upKeyCount: number;
|
|
48
|
+
downKeyCount: number;
|
|
49
|
+
memberCount?: number | null;
|
|
50
|
+
includesYou?: boolean | null;
|
|
51
|
+
taskListId?: string;
|
|
52
|
+
taskItemId?: string;
|
|
53
|
+
localId?: string;
|
|
54
|
+
containerId?: string;
|
|
55
|
+
objectId?: string;
|
|
56
|
+
childObjectId?: string;
|
|
57
|
+
}, undefined>;
|
|
58
|
+
type MentionTypeaheadRenderedPayload = OperationalAEP<ACTION.RENDERED, ACTION_SUBJECT.MENTION_TYPEAHEAD | ACTION_SUBJECT.TEAM_MENTION_TYPEAHEAD, undefined, {
|
|
59
|
+
componentName: string;
|
|
60
|
+
duration: number;
|
|
61
|
+
userIds: Array<string> | null;
|
|
62
|
+
teams: Array<{
|
|
63
|
+
teamId: string;
|
|
64
|
+
includesYou: boolean;
|
|
65
|
+
memberCount: number;
|
|
66
|
+
}> | null;
|
|
67
|
+
queryLength?: number;
|
|
68
|
+
spaceInQuery?: boolean;
|
|
69
|
+
}>;
|
|
70
|
+
type MentionProviderErroredPayload = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.MENTION, ACTION_SUBJECT_ID.MENTION_PROVIDER, {
|
|
71
|
+
reason: string;
|
|
72
|
+
}>;
|
|
73
|
+
export type MentionAttributes = {
|
|
74
|
+
[key: string]: string;
|
|
75
|
+
};
|
|
76
|
+
type MentionSliEventPayload = OperationalAEP<MentionActions, ComponentNames | SliNames, undefined, {
|
|
77
|
+
componentName: string;
|
|
78
|
+
} & MentionAttributes>;
|
|
79
|
+
export type MentionEventPayload = MentionTypeaheadCancelledEventPayload | MentionTypeaheadInviteItemViewedPayload | MentionTypeaheadInviteItemClickedPayload | MentionTypeaheadInsertedPayload | MentionTypeaheadRenderedPayload | MentionProviderErroredPayload | MentionSliEventPayload;
|
|
80
|
+
export {};
|
|
@@ -81,6 +81,7 @@ export declare enum ACTION {
|
|
|
81
81
|
PASTED = "pasted",
|
|
82
82
|
PASTED_AS_PLAIN = "pastedAsPlain",
|
|
83
83
|
PASTED_TIMED = "pastedTimed",
|
|
84
|
+
PRESSED = "pressed",
|
|
84
85
|
PROSEMIRROR_RENDERED = "proseMirrorRendered",
|
|
85
86
|
REACT_NODEVIEW_RENDERED = "reactNodeViewRendered",
|
|
86
87
|
REPLACED_ALL = "replacedAll",
|
|
@@ -218,11 +219,13 @@ export declare enum ACTION_SUBJECT {
|
|
|
218
219
|
FLOATING_CONTEXTUAL_BUTTON = "floatingContextualButton",
|
|
219
220
|
FLOATING_TOOLBAR_PLUGIN = "floatingToolbarPlugin",
|
|
220
221
|
HELP = "help",
|
|
222
|
+
INVITE_ITEM = "inviteItem",
|
|
221
223
|
LAYOUT = "layout",
|
|
222
224
|
LIST = "list",
|
|
223
225
|
MEDIA = "media",
|
|
224
226
|
MEDIA_SINGLE = "mediaSingle",
|
|
225
227
|
MENTION = "mention",
|
|
228
|
+
MENTION_TYPEAHEAD = "mentionTypeahead",
|
|
226
229
|
NESTED_EXPAND = "nestedExpand",
|
|
227
230
|
PANEL = "panel",
|
|
228
231
|
PICKER = "picker",
|
|
@@ -235,6 +238,7 @@ export declare enum ACTION_SUBJECT {
|
|
|
235
238
|
HYPERLINK = "hyperlink",
|
|
236
239
|
TABLE = "table",
|
|
237
240
|
TABLES_PLUGIN = "tablesPlugin",
|
|
241
|
+
TEAM_MENTION_TYPEAHEAD = "teamMentionTypeahead",
|
|
238
242
|
TEXT = "text",
|
|
239
243
|
TOOLBAR = "toolbar",
|
|
240
244
|
TYPEAHEAD = "typeAhead",
|
|
@@ -26,6 +26,7 @@ import type { CreateLinkInlineDialogEventPayload, EditLinkToolbarAEP, OpenSettin
|
|
|
26
26
|
import type { ListEventPayload } from './list-events';
|
|
27
27
|
import type { LoomEventPayload } from './loom-events';
|
|
28
28
|
import type { MediaEventPayload } from './media-events';
|
|
29
|
+
import { type MentionEventPayload } from './mention-events';
|
|
29
30
|
import type { MoveContentEventPayload } from './move-content-events';
|
|
30
31
|
import type { NodeEventPayload } from './node-events';
|
|
31
32
|
import type { PasteEventPayload } from './paste-events';
|
|
@@ -45,7 +46,7 @@ export type SimplifiedNode = {
|
|
|
45
46
|
marks?: string[];
|
|
46
47
|
content?: SimplifiedNode[];
|
|
47
48
|
};
|
|
48
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | EngagementPlatformEventPayload;
|
|
49
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload;
|
|
49
50
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
50
51
|
previousColor: string;
|
|
51
52
|
newColor: string;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { type ComponentNames, type Actions as MentionActions, type SliNames } from '@atlaskit/mention/types';
|
|
2
|
+
import { type ACTION, type ACTION_SUBJECT, type ACTION_SUBJECT_ID } from './enums';
|
|
3
|
+
import { type OperationalAEP, type UIAEP } from './utils';
|
|
4
|
+
type MentionTypeaheadCancelledEventPayload = UIAEP<ACTION.CANCELLED, ACTION_SUBJECT.MENTION_TYPEAHEAD, undefined, {
|
|
5
|
+
componentName: string;
|
|
6
|
+
duration: number;
|
|
7
|
+
queryLength?: number;
|
|
8
|
+
spaceInQuery?: boolean;
|
|
9
|
+
upKeyCount: number;
|
|
10
|
+
downKeyCount: number;
|
|
11
|
+
sessionId: string;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
type MentionTypeaheadInviteItemViewedPayload = UIAEP<ACTION.RENDERED, ACTION_SUBJECT.INVITE_ITEM, undefined, {
|
|
14
|
+
componentName: string;
|
|
15
|
+
containerId: string;
|
|
16
|
+
objectId: string;
|
|
17
|
+
childObjectId?: string;
|
|
18
|
+
userRole?: string;
|
|
19
|
+
sessionId: string;
|
|
20
|
+
}, undefined>;
|
|
21
|
+
type MentionTypeaheadInviteItemClickedPayload = UIAEP<ACTION.CLICKED | ACTION.PRESSED, ACTION_SUBJECT.INVITE_ITEM, undefined, {
|
|
22
|
+
componentName: string;
|
|
23
|
+
duration: number;
|
|
24
|
+
queryLength?: number;
|
|
25
|
+
spaceInQuery?: boolean;
|
|
26
|
+
upKeyCount: number;
|
|
27
|
+
downKeyCount: number;
|
|
28
|
+
containerId: string;
|
|
29
|
+
objectId: string;
|
|
30
|
+
childObjectId?: string;
|
|
31
|
+
userRole?: string;
|
|
32
|
+
sessionId: string;
|
|
33
|
+
keyboardKey?: string;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
type MentionTypeaheadInsertedPayload = UIAEP<ACTION.CLICKED | ACTION.PRESSED, ACTION_SUBJECT.MENTION_TYPEAHEAD, undefined, {
|
|
36
|
+
sessionId: string;
|
|
37
|
+
duration: number;
|
|
38
|
+
position?: number;
|
|
39
|
+
keyboardKey?: string;
|
|
40
|
+
source?: string;
|
|
41
|
+
queryLength?: number;
|
|
42
|
+
spaceInQuery?: boolean;
|
|
43
|
+
isSpecial: boolean;
|
|
44
|
+
accessLevel: string;
|
|
45
|
+
userType?: string;
|
|
46
|
+
userId: string;
|
|
47
|
+
upKeyCount: number;
|
|
48
|
+
downKeyCount: number;
|
|
49
|
+
memberCount?: number | null;
|
|
50
|
+
includesYou?: boolean | null;
|
|
51
|
+
taskListId?: string;
|
|
52
|
+
taskItemId?: string;
|
|
53
|
+
localId?: string;
|
|
54
|
+
containerId?: string;
|
|
55
|
+
objectId?: string;
|
|
56
|
+
childObjectId?: string;
|
|
57
|
+
}, undefined>;
|
|
58
|
+
type MentionTypeaheadRenderedPayload = OperationalAEP<ACTION.RENDERED, ACTION_SUBJECT.MENTION_TYPEAHEAD | ACTION_SUBJECT.TEAM_MENTION_TYPEAHEAD, undefined, {
|
|
59
|
+
componentName: string;
|
|
60
|
+
duration: number;
|
|
61
|
+
userIds: Array<string> | null;
|
|
62
|
+
teams: Array<{
|
|
63
|
+
teamId: string;
|
|
64
|
+
includesYou: boolean;
|
|
65
|
+
memberCount: number;
|
|
66
|
+
}> | null;
|
|
67
|
+
queryLength?: number;
|
|
68
|
+
spaceInQuery?: boolean;
|
|
69
|
+
}>;
|
|
70
|
+
type MentionProviderErroredPayload = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.MENTION, ACTION_SUBJECT_ID.MENTION_PROVIDER, {
|
|
71
|
+
reason: string;
|
|
72
|
+
}>;
|
|
73
|
+
export type MentionAttributes = {
|
|
74
|
+
[key: string]: string;
|
|
75
|
+
};
|
|
76
|
+
type MentionSliEventPayload = OperationalAEP<MentionActions, ComponentNames | SliNames, undefined, {
|
|
77
|
+
componentName: string;
|
|
78
|
+
} & MentionAttributes>;
|
|
79
|
+
export type MentionEventPayload = MentionTypeaheadCancelledEventPayload | MentionTypeaheadInviteItemViewedPayload | MentionTypeaheadInviteItemClickedPayload | MentionTypeaheadInsertedPayload | MentionTypeaheadRenderedPayload | MentionProviderErroredPayload | MentionSliEventPayload;
|
|
80
|
+
export {};
|
package/package.json
CHANGED