@atlaskit/editor-common 99.4.2 → 99.5.1
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 +38 -0
- package/dist/cjs/analytics/fire-analytics-event.js +8 -3
- package/dist/cjs/analytics/types/activity-session-events.js +5 -0
- package/dist/cjs/analytics/types/ai-events.js +5 -0
- package/dist/cjs/analytics/types/enums.js +6 -0
- package/dist/cjs/messages/ai-proactive-setting.js +109 -0
- package/dist/cjs/messages/ai-proactive-transform.js +99 -0
- package/dist/cjs/messages/ai-proactive.js +159 -0
- package/dist/cjs/messages/index.js +21 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/fire-analytics-event.js +8 -3
- package/dist/es2019/analytics/types/activity-session-events.js +1 -0
- package/dist/es2019/analytics/types/ai-events.js +1 -0
- package/dist/es2019/analytics/types/enums.js +6 -0
- package/dist/es2019/messages/ai-proactive-setting.js +103 -0
- package/dist/es2019/messages/ai-proactive-transform.js +93 -0
- package/dist/es2019/messages/ai-proactive.js +153 -0
- package/dist/es2019/messages/index.js +3 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/fire-analytics-event.js +8 -3
- package/dist/esm/analytics/types/activity-session-events.js +1 -0
- package/dist/esm/analytics/types/ai-events.js +1 -0
- package/dist/esm/analytics/types/enums.js +6 -0
- package/dist/esm/messages/ai-proactive-setting.js +103 -0
- package/dist/esm/messages/ai-proactive-transform.js +93 -0
- package/dist/esm/messages/ai-proactive.js +153 -0
- package/dist/esm/messages/index.js +3 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/api.d.ts +4 -1
- package/dist/types/analytics/index.d.ts +3 -1
- package/dist/types/analytics/types/activity-session-events.d.ts +24 -0
- package/dist/types/analytics/types/ai-events.d.ts +15 -0
- package/dist/types/analytics/types/ai-proactive-events.d.ts +4 -12
- package/dist/types/analytics/types/ai-unified-events.d.ts +7 -9
- package/dist/types/analytics/types/enums.d.ts +12 -0
- package/dist/types/analytics/types/events.d.ts +9 -5
- package/dist/types/collab/index.d.ts +1 -0
- package/dist/types/messages/ai-proactive-setting.d.ts +102 -0
- package/dist/types/messages/ai-proactive-transform.d.ts +92 -0
- package/dist/types/messages/ai-proactive.d.ts +152 -0
- package/dist/types/messages/index.d.ts +3 -0
- package/dist/types/types/feature-flags.d.ts +0 -8
- package/dist/types-ts4.5/analytics/api.d.ts +4 -1
- package/dist/types-ts4.5/analytics/index.d.ts +3 -1
- package/dist/types-ts4.5/analytics/types/activity-session-events.d.ts +24 -0
- package/dist/types-ts4.5/analytics/types/ai-events.d.ts +15 -0
- package/dist/types-ts4.5/analytics/types/ai-proactive-events.d.ts +4 -12
- package/dist/types-ts4.5/analytics/types/ai-unified-events.d.ts +7 -9
- package/dist/types-ts4.5/analytics/types/enums.d.ts +12 -0
- package/dist/types-ts4.5/analytics/types/events.d.ts +9 -5
- package/dist/types-ts4.5/collab/index.d.ts +1 -0
- package/dist/types-ts4.5/messages/ai-proactive-setting.d.ts +102 -0
- package/dist/types-ts4.5/messages/ai-proactive-transform.d.ts +92 -0
- package/dist/types-ts4.5/messages/ai-proactive.d.ts +152 -0
- package/dist/types-ts4.5/messages/index.d.ts +3 -0
- package/dist/types-ts4.5/types/feature-flags.d.ts +0 -8
- package/package.json +9 -9
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export declare const aiProactiveTransformMessages: {
|
|
2
|
+
recommendationDefaultTitle: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
recommendationDefaultDescription: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
recommendationConvertToTableTitle: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
recommendationConvertToTableDescription: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
recommendationConvertToNotePanelTitle: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
recommendationConvertToNotePanelDescription: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
recommendationConvertToInfoPanelTitle: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
recommendationConvertToInfoPanelDescription: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
recommendationConvertToWarnPanelTitle: {
|
|
43
|
+
id: string;
|
|
44
|
+
defaultMessage: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
recommendationConvertToWarnPanelDescription: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
recommendationConvertToErrorPanelTitle: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
recommendationConvertToErrorPanelDescription: {
|
|
58
|
+
id: string;
|
|
59
|
+
defaultMessage: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
recommendationConvertToSuccessPanelTitle: {
|
|
63
|
+
id: string;
|
|
64
|
+
defaultMessage: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
recommendationConvertToSuccessPanelDescription: {
|
|
68
|
+
id: string;
|
|
69
|
+
defaultMessage: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
recommendationSplitParagraphTitle: {
|
|
73
|
+
id: string;
|
|
74
|
+
defaultMessage: string;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
recommendationSplitParagraphDescription: {
|
|
78
|
+
id: string;
|
|
79
|
+
defaultMessage: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
recommendationFormatParagraphTitle: {
|
|
83
|
+
id: string;
|
|
84
|
+
defaultMessage: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
recommendationFormatParagraphDescription: {
|
|
88
|
+
id: string;
|
|
89
|
+
defaultMessage: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
export declare const aiProactiveMessages: {
|
|
2
|
+
loadingIconAltText: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
findingSuggestionsLabel: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
findingSuggestionsLoadingLabel: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
findingMoreSuggestionsLoadingLabel: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
unhandledErrorMessage: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
markdownErrorMessage: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
recommendationPreviewButtonLabel: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
recommendationReplaceButtonLabel: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
recommendationDismissButtonLabel: {
|
|
43
|
+
id: string;
|
|
44
|
+
defaultMessage: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
dismissProactiveRecommendation: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
insertBelowProactiveRecommendation: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
replaceProactiveRecommendation: {
|
|
58
|
+
id: string;
|
|
59
|
+
defaultMessage: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
spellingAndGrammarLabel: {
|
|
63
|
+
id: string;
|
|
64
|
+
defaultMessage: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
ManageSuggestionTitle: {
|
|
68
|
+
id: string;
|
|
69
|
+
defaultMessage: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
closeButtonLabel: {
|
|
73
|
+
id: string;
|
|
74
|
+
defaultMessage: string;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
suggestionsTitle: {
|
|
78
|
+
id: string;
|
|
79
|
+
defaultMessage: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
betaLabel: {
|
|
83
|
+
id: string;
|
|
84
|
+
defaultMessage: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
moreMenuLabel: {
|
|
88
|
+
id: string;
|
|
89
|
+
defaultMessage: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
moreMenuManageSuggestions: {
|
|
93
|
+
id: string;
|
|
94
|
+
defaultMessage: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
moreMenuGiveFeedback: {
|
|
98
|
+
id: string;
|
|
99
|
+
defaultMessage: string;
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
moreActionsLabel: {
|
|
103
|
+
id: string;
|
|
104
|
+
defaultMessage: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
reloadSuggestionsStateTitle: {
|
|
108
|
+
id: string;
|
|
109
|
+
defaultMessage: string;
|
|
110
|
+
description: string;
|
|
111
|
+
};
|
|
112
|
+
reloadSuggestionsStateDescription: {
|
|
113
|
+
id: string;
|
|
114
|
+
defaultMessage: string;
|
|
115
|
+
description: string;
|
|
116
|
+
};
|
|
117
|
+
reloadSuggestionsButtonLabel: {
|
|
118
|
+
id: string;
|
|
119
|
+
defaultMessage: string;
|
|
120
|
+
description: string;
|
|
121
|
+
};
|
|
122
|
+
noSuggestionsStateTitle: {
|
|
123
|
+
id: string;
|
|
124
|
+
defaultMessage: string;
|
|
125
|
+
description: string;
|
|
126
|
+
};
|
|
127
|
+
noSuggestionsStateDescription: {
|
|
128
|
+
id: string;
|
|
129
|
+
defaultMessage: string;
|
|
130
|
+
description: string;
|
|
131
|
+
};
|
|
132
|
+
askAIButtonLabel: {
|
|
133
|
+
id: string;
|
|
134
|
+
defaultMessage: string;
|
|
135
|
+
description: string;
|
|
136
|
+
};
|
|
137
|
+
enableSuggestionsStateTitle: {
|
|
138
|
+
id: string;
|
|
139
|
+
defaultMessage: string;
|
|
140
|
+
description: string;
|
|
141
|
+
};
|
|
142
|
+
enableSuggestionsStateDescription: {
|
|
143
|
+
id: string;
|
|
144
|
+
defaultMessage: string;
|
|
145
|
+
description: string;
|
|
146
|
+
};
|
|
147
|
+
enableSuggestionsButtonLabel: {
|
|
148
|
+
id: string;
|
|
149
|
+
defaultMessage: string;
|
|
150
|
+
description: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export { aiDefinitionsMessages } from './ai-definitions';
|
|
2
|
+
export { aiProactiveMessages } from './ai-proactive';
|
|
3
|
+
export { aiProactiveSettingMessages } from './ai-proactive-setting';
|
|
4
|
+
export { aiProactiveTransformMessages } from './ai-proactive-transform';
|
|
2
5
|
export { alignmentMessages } from './alignment';
|
|
3
6
|
export { annotationMessages } from './annotation';
|
|
4
7
|
export { messages as blockTypeMessages } from './block-type';
|
|
@@ -222,14 +222,6 @@ export type FeatureFlags = {
|
|
|
222
222
|
* @default false
|
|
223
223
|
*/
|
|
224
224
|
commentsOnMediaAnalytics?: boolean;
|
|
225
|
-
/**
|
|
226
|
-
* @description
|
|
227
|
-
* Enables block elements drag and drop
|
|
228
|
-
*
|
|
229
|
-
* @see https://product-fabric.atlassian.net/browse/ED-22939
|
|
230
|
-
* @default false
|
|
231
|
-
*/
|
|
232
|
-
elementDragAndDrop?: boolean;
|
|
233
225
|
/**
|
|
234
226
|
* @description
|
|
235
227
|
* Enables fix for comment sidebar is not scrolled into view when adding/viewing a comment on media
|
|
@@ -15,6 +15,9 @@ export type EditorAnalyticsAPI = {
|
|
|
15
15
|
*
|
|
16
16
|
* @param {AnalyticsEventPayload} payload - analytics payload
|
|
17
17
|
* @param {string} [channel="editor"] - optional channel identifier
|
|
18
|
+
* @param {object} [options] - optional options where immediate is true will fire event immediately
|
|
18
19
|
*/
|
|
19
|
-
fireAnalyticsEvent: (payload: AnalyticsEventPayload, channel?: string
|
|
20
|
+
fireAnalyticsEvent: (payload: AnalyticsEventPayload, channel?: string, options?: {
|
|
21
|
+
immediate?: boolean;
|
|
22
|
+
}) => void | undefined;
|
|
20
23
|
};
|
|
@@ -42,6 +42,8 @@ export { getAnalyticsEventsFromTransaction } from './utils';
|
|
|
42
42
|
export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
|
|
43
43
|
export type { LinkType } from './linking-utils';
|
|
44
44
|
export type { RequestToEditAEP } from './types/general-events';
|
|
45
|
+
export type { AIEventPayload, AIMarkdownConversionErrorCaughtAttributes } from './types/ai-events';
|
|
45
46
|
export type { AIProactiveEventPayload } from './types/ai-proactive-events';
|
|
46
47
|
export type { AIDefinitionsEventPayload } from './types/ai-definitions-events';
|
|
47
|
-
export type { AIUnifiedEventPayload } from './types/ai-unified-events';
|
|
48
|
+
export type { AIUnifiedEventPayload, AIUnifiedCommonAttributes } from './types/ai-unified-events';
|
|
49
|
+
export type { ActiveSessionEventPayload, ActiveSessionEventAttributes, } from './types/activity-session-events';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
2
|
+
import type { TrackAEP } from './utils';
|
|
3
|
+
export type ActiveSessionEventAttributes = {
|
|
4
|
+
efficiency: {
|
|
5
|
+
totalActiveTime: number;
|
|
6
|
+
totalActionCount: number;
|
|
7
|
+
actionByTypeCount?: {
|
|
8
|
+
textInputCount: number;
|
|
9
|
+
nodeInsertionCount: number;
|
|
10
|
+
nodeAttributeChangeCount: number;
|
|
11
|
+
contentMovedCount: number;
|
|
12
|
+
nodeDeletionCount: number;
|
|
13
|
+
undoCount: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
effectiveness: {
|
|
17
|
+
undoCount: number;
|
|
18
|
+
repeatedActionCount: number;
|
|
19
|
+
safeInsertCount: number;
|
|
20
|
+
};
|
|
21
|
+
contentSizeChanged: number;
|
|
22
|
+
};
|
|
23
|
+
export type ActiveSessionEventAEP = TrackAEP<ACTION.ENDED, ACTION_SUBJECT.ACTIVITY_SESSION, ACTION_SUBJECT_ID.ACTIVITY, ActiveSessionEventAttributes, undefined>;
|
|
24
|
+
export type ActiveSessionEventPayload = ActiveSessionEventAEP;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
2
|
+
import type { OperationalAEP } from './utils';
|
|
3
|
+
type AIUnhandledErrorCaughtAEP = OperationalAEP<ACTION.UNHANDLED_ERROR_CAUGHT, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.EXPERIENCE_APPLICATION, {
|
|
4
|
+
componentStack: string;
|
|
5
|
+
errorMessage?: string;
|
|
6
|
+
}>;
|
|
7
|
+
export type AIMarkdownConversionErrorCaughtAttributes = {
|
|
8
|
+
errorType: 'markdownToProseMirrorError';
|
|
9
|
+
errorSubType?: 'noProseMirrorDoc' | 'emptyProseMirrorDoc' | 'invalidProseMirrorDoc';
|
|
10
|
+
componentStack: string;
|
|
11
|
+
errorMessage?: string;
|
|
12
|
+
};
|
|
13
|
+
export type AIMarkdownConversionErrorCaughtAEP = OperationalAEP<ACTION.UNHANDLED_ERROR_CAUGHT, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.EXPERIENCE_APPLICATION, AIMarkdownConversionErrorCaughtAttributes>;
|
|
14
|
+
export type AIEventPayload = AIUnhandledErrorCaughtAEP | AIMarkdownConversionErrorCaughtAEP;
|
|
15
|
+
export {};
|
|
@@ -45,16 +45,8 @@ type AIProactiveApiErrorAEP = OperationalAEP<ACTION.API_ERROR, ACTION_SUBJECT.ED
|
|
|
45
45
|
reason: string;
|
|
46
46
|
statusCode: number;
|
|
47
47
|
}>;
|
|
48
|
-
type
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
aiExperienceName: string;
|
|
53
|
-
proactiveAIGenerated: number;
|
|
54
|
-
userGeneratedAI: number;
|
|
55
|
-
isAIFeature: number;
|
|
56
|
-
aiErrorMessage: string;
|
|
57
|
-
aiErrorCode: number;
|
|
58
|
-
}, undefined>;
|
|
59
|
-
export type AIProactiveEventPayload = AIProactiveApiReceivedAEP | AIProactiveSuggestionDisplayToggledAEP | AIProactiveSuggestionInsertedAEP | AIProactiveSuggestionDismissedAEP | AIProactiveSuggestionFeedbackClickedAEP | AIProactiveSuggestionCopiedAEP | AIProactiveApiPurgedAEP | AIProactiveApiErrorAEP | AIProactiveAIResultErrorAEP;
|
|
48
|
+
type AIProactiveFeedbackFailedAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.AI_PROACTIVE_FEEDBACK_DIALOG, {
|
|
49
|
+
errorMessage?: string;
|
|
50
|
+
}>;
|
|
51
|
+
export type AIProactiveEventPayload = AIProactiveApiReceivedAEP | AIProactiveSuggestionDisplayToggledAEP | AIProactiveSuggestionInsertedAEP | AIProactiveSuggestionDismissedAEP | AIProactiveSuggestionFeedbackClickedAEP | AIProactiveSuggestionCopiedAEP | AIProactiveApiPurgedAEP | AIProactiveApiErrorAEP | AIProactiveFeedbackFailedAEP;
|
|
60
52
|
export {};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
6
6
|
import type { TrackAEP } from './utils';
|
|
7
|
-
type
|
|
7
|
+
export type AIUnifiedCommonAttributes = {
|
|
8
8
|
singleInstrumentationID: string;
|
|
9
9
|
aiInteractionID: string;
|
|
10
10
|
aiFeatureName: string;
|
|
@@ -13,21 +13,19 @@ type CommonAttributes = {
|
|
|
13
13
|
isAIFeature: 1;
|
|
14
14
|
aiExperienceName?: string;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
type AIInteractionInitiatedAEP = TrackAEP<ACTION.INITIATED, ACTION_SUBJECT.AI_INTERACTION, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes, undefined>;
|
|
17
|
+
type AIInteractionDismissedAEP = TrackAEP<ACTION.DISMISSED, ACTION_SUBJECT.AI_INTERACTION, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes, undefined>;
|
|
18
|
+
type AIResultViewedAEP = TrackAEP<ACTION.VIEWED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes, undefined>;
|
|
19
|
+
type AIResultActionedAEP = TrackAEP<ACTION.ACTIONED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & {
|
|
20
20
|
promptType?: string;
|
|
21
21
|
refinementCount?: number;
|
|
22
22
|
aiResultAction: string;
|
|
23
23
|
}, undefined>;
|
|
24
|
-
|
|
24
|
+
type AIResultErrorAEP = TrackAEP<ACTION.ERROR, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & {
|
|
25
25
|
aiErrorMessage?: string;
|
|
26
26
|
aiErrorCode?: number;
|
|
27
|
-
aiExperienceName?: string;
|
|
28
27
|
}, undefined>;
|
|
29
|
-
|
|
30
|
-
aiExperienceName?: string;
|
|
28
|
+
type AIFeedbackSubmittedAEP = TrackAEP<ACTION.SUBMITTED, ACTION_SUBJECT.AI_FEEDBACK, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & {
|
|
31
29
|
aiFeedbackResult: 'up' | 'down';
|
|
32
30
|
}, undefined>;
|
|
33
31
|
export type AIUnifiedEventPayload = AIInteractionInitiatedAEP | AIResultViewedAEP | AIResultErrorAEP | AIInteractionDismissedAEP | AIResultActionedAEP | AIFeedbackSubmittedAEP;
|
|
@@ -51,6 +51,7 @@ export declare enum ACTION {
|
|
|
51
51
|
EDITOR_TTI = "tti",
|
|
52
52
|
EDITOR_CONTENT_RETRIEVAL_PERFORMED = "contentRetrievalPerformed",
|
|
53
53
|
RE_RENDERED = "reRendered",
|
|
54
|
+
ENDED = "ended",
|
|
54
55
|
ENTERED = "entered",
|
|
55
56
|
ERROR = "error",
|
|
56
57
|
ERRORED = "errored",
|
|
@@ -117,6 +118,7 @@ export declare enum ACTION {
|
|
|
117
118
|
TRANSACTION_MUTATED_AFTER_DISPATCH = "transactionMutatedAfterDispatched",
|
|
118
119
|
TYPING_FINISHED = "typingFinished",
|
|
119
120
|
TYPING_STARTED = "typingStarted",
|
|
121
|
+
UNHANDLED_ERROR_CAUGHT = "unhandledErrorCaught",
|
|
120
122
|
UNLINK = "unlinked",
|
|
121
123
|
UNSUPPORTED_CONTENT_ENCOUNTERED = "unsupportedContentEncounteredV2",
|
|
122
124
|
UPDATED = "updated",
|
|
@@ -132,6 +134,12 @@ export declare enum ACTION {
|
|
|
132
134
|
WITH_PLUGIN_STATE_CALLED = "withPluginStateCalled",
|
|
133
135
|
RENDERED = "rendered",
|
|
134
136
|
ON_EDITOR_READY_CALLBACK = "onEditorReadyCallback",
|
|
137
|
+
/**
|
|
138
|
+
* @private
|
|
139
|
+
* @deprecated
|
|
140
|
+
*
|
|
141
|
+
* This is no longer used and can be removed at a later date
|
|
142
|
+
*/
|
|
135
143
|
ON_CHANGE_CALLBACK = "onChangeCalled",
|
|
136
144
|
NESTED_TABLE_TRANSFORMED = "nestedTableTransformed",
|
|
137
145
|
NEW_COLLAB_SYNC_UP_ERROR_NO_STEPS = "newCollabSyncUpErrorNoSteps",
|
|
@@ -226,6 +234,7 @@ export declare enum ACTION_SUBJECT {
|
|
|
226
234
|
DATE_SEGMENT = "dateSegment",
|
|
227
235
|
DOCUMENT = "document",
|
|
228
236
|
EDITOR = "editor",
|
|
237
|
+
ACTIVITY_SESSION = "activitySession",
|
|
229
238
|
ELEMENT_BROWSER = "elementBrowser",
|
|
230
239
|
EMBEDS = "embeds",
|
|
231
240
|
EXPAND = "expand",
|
|
@@ -285,11 +294,13 @@ export declare enum ACTION_SUBJECT {
|
|
|
285
294
|
}
|
|
286
295
|
export declare enum ACTION_SUBJECT_ID {
|
|
287
296
|
ACTION = "action",
|
|
297
|
+
ACTIVITY = "activity",
|
|
288
298
|
AI_DEFINITIONS_DEFINE_BUTTON = "aiDefinitionsDefineButton",
|
|
289
299
|
AI_DEFINITIONS_AUTO_HIGHLIGHT = "aiDefinitionsAutoHighlight",
|
|
290
300
|
AI_PANELS_BODIED_EXTENSION = "aiPanelsBodiedExtension",
|
|
291
301
|
AI_PROMPT_LINK_PICKER_BUTTON = "aiPromptLinkPickerButton",
|
|
292
302
|
AI_PROMPT_MENTION_BUTTON = "aiPromptMentionButton",
|
|
303
|
+
AI_PROACTIVE_FEEDBACK_DIALOG = "aiProactiveFeedbackDialog",
|
|
293
304
|
ALL = "all",
|
|
294
305
|
ALT_TEXT = "altText",
|
|
295
306
|
ANNOTATE_BUTTON = "annotateButton",
|
|
@@ -324,6 +335,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
324
335
|
EMBEDS = "embeds",
|
|
325
336
|
EMOJI = "emoji",
|
|
326
337
|
EXPAND = "expand",
|
|
338
|
+
EXPERIENCE_APPLICATION = "experienceApplication",
|
|
327
339
|
EXTENSION = "extension",
|
|
328
340
|
EXTENSION_API = "extensionApi",
|
|
329
341
|
EXTENSION_BLOCK = "extension",
|
|
@@ -3,9 +3,11 @@ 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 {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import type { ActiveSessionEventPayload } from './activity-session-events';
|
|
7
|
+
import type { AICommandPaletteEventPayload } from './ai-command-palette-events';
|
|
8
|
+
import type { AIDefinitionsEventPayload } from './ai-definitions-events';
|
|
9
|
+
import type { AIEventPayload } from './ai-events';
|
|
10
|
+
import type { AIProactiveEventPayload } from './ai-proactive-events';
|
|
9
11
|
import type { AIUnifiedEventPayload } from './ai-unified-events';
|
|
10
12
|
import type { AvatarEventPayload } from './avatar';
|
|
11
13
|
import { type BreakoutEventPayload } from './breakout-events';
|
|
@@ -52,7 +54,7 @@ export type SimplifiedNode = {
|
|
|
52
54
|
marks?: string[];
|
|
53
55
|
content?: SimplifiedNode[];
|
|
54
56
|
};
|
|
55
|
-
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 | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload;
|
|
57
|
+
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 | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload;
|
|
56
58
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
57
59
|
previousColor: string;
|
|
58
60
|
newColor: string;
|
|
@@ -146,7 +148,9 @@ type SmartLinkErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.SMART_LIN
|
|
|
146
148
|
export type ErrorEventPayload = InvalidTransactionErrorAEP | InvalidTransactionStepErrorAEP | FailedToUnmountErrorAEP | SynchronyErrorAEP | InvalidDocumentEncounteredAEP | SynchronyEntityErrorAEP | ContentComponentErrorAEP | PickerErrorAEP | ComponentCrashErrorAEP | ComponentCrashAdditionalInfoErrorAEP | SmartLinkErrorAEP;
|
|
147
149
|
export type AnalyticsEventPayloadCallback = (state: EditorState) => AnalyticsEventPayload | undefined;
|
|
148
150
|
export type FireAnalyticsCallback = <T>(payload: FireAnalyticsEventPayload<T>) => void | undefined;
|
|
149
|
-
export type FireAnalyticsEvent = (createAnalyticsEvent?: CreateUIAnalyticsEvent
|
|
151
|
+
export type FireAnalyticsEvent = (createAnalyticsEvent?: CreateUIAnalyticsEvent, options?: {
|
|
152
|
+
immediate?: boolean;
|
|
153
|
+
}) => FireAnalyticsCallback;
|
|
150
154
|
export type FireAnalyticsEventPayload<T = void> = {
|
|
151
155
|
payload: AnalyticsEventPayload<T>;
|
|
152
156
|
channel?: string;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export declare const aiProactiveSettingMessages: {
|
|
2
|
+
toggleAllSuggestionsTitle: {
|
|
3
|
+
id: string;
|
|
4
|
+
defaultMessage: string;
|
|
5
|
+
description: string;
|
|
6
|
+
};
|
|
7
|
+
toggleAllSuggestionsDescription: {
|
|
8
|
+
id: string;
|
|
9
|
+
defaultMessage: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
toggleAllPanelSuggestionsTitle: {
|
|
13
|
+
id: string;
|
|
14
|
+
defaultMessage: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
toggleAllPanelSuggestionsDescription: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
toggleErrorPanelTitle: {
|
|
23
|
+
id: string;
|
|
24
|
+
defaultMessage: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
toggleErrorPanelDescription: {
|
|
28
|
+
id: string;
|
|
29
|
+
defaultMessage: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
toggleInfoPanelTitle: {
|
|
33
|
+
id: string;
|
|
34
|
+
defaultMessage: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
toggleInfoPanelDescription: {
|
|
38
|
+
id: string;
|
|
39
|
+
defaultMessage: string;
|
|
40
|
+
description: string;
|
|
41
|
+
};
|
|
42
|
+
toggleNotePanelTitle: {
|
|
43
|
+
id: string;
|
|
44
|
+
defaultMessage: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
toggleNotePanelDescription: {
|
|
48
|
+
id: string;
|
|
49
|
+
defaultMessage: string;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
toggleSuccessPanelTitle: {
|
|
53
|
+
id: string;
|
|
54
|
+
defaultMessage: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
toggleSuccessPanelDescription: {
|
|
58
|
+
id: string;
|
|
59
|
+
defaultMessage: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
toggleWarningPanelTitle: {
|
|
63
|
+
id: string;
|
|
64
|
+
defaultMessage: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
toggleWarningPanelDescription: {
|
|
68
|
+
id: string;
|
|
69
|
+
defaultMessage: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
toggleTableTitle: {
|
|
73
|
+
id: string;
|
|
74
|
+
defaultMessage: string;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
toggleTableDescription: {
|
|
78
|
+
id: string;
|
|
79
|
+
defaultMessage: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
toggleSplitParagraphTitle: {
|
|
83
|
+
id: string;
|
|
84
|
+
defaultMessage: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
toggleSplitParagraphDescription: {
|
|
88
|
+
id: string;
|
|
89
|
+
defaultMessage: string;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
toggleFormatParagraphTitle: {
|
|
93
|
+
id: string;
|
|
94
|
+
defaultMessage: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
toggleFormatParagraphDescription: {
|
|
98
|
+
id: string;
|
|
99
|
+
defaultMessage: string;
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
};
|