@atlaskit/editor-common 99.5.0 → 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 +8 -0
- package/dist/cjs/analytics/types/ai-events.js +5 -0
- package/dist/cjs/analytics/types/enums.js +2 -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 +145 -0
- package/dist/cjs/messages/index.js +14 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/ai-events.js +1 -0
- package/dist/es2019/analytics/types/enums.js +2 -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 +145 -0
- package/dist/es2019/messages/index.js +2 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/ai-events.js +1 -0
- package/dist/esm/analytics/types/enums.js +2 -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 +145 -0
- package/dist/esm/messages/index.js +2 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/index.d.ts +1 -0
- package/dist/types/analytics/types/ai-events.d.ts +15 -0
- package/dist/types/analytics/types/ai-proactive-events.d.ts +1 -1
- package/dist/types/analytics/types/enums.d.ts +2 -0
- package/dist/types/analytics/types/events.d.ts +5 -4
- 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 +145 -0
- package/dist/types/messages/index.d.ts +2 -0
- package/dist/types-ts4.5/analytics/index.d.ts +1 -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 +1 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -0
- package/dist/types-ts4.5/analytics/types/events.d.ts +5 -4
- 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 +145 -0
- package/dist/types-ts4.5/messages/index.d.ts +2 -0
- package/package.json +3 -3
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
import { defineMessages } from 'react-intl-next';
|
|
5
5
|
export { aiDefinitionsMessages } from './ai-definitions';
|
|
6
6
|
export { aiProactiveMessages } from './ai-proactive';
|
|
7
|
+
export { aiProactiveSettingMessages } from './ai-proactive-setting';
|
|
8
|
+
export { aiProactiveTransformMessages } from './ai-proactive-transform';
|
|
7
9
|
export { alignmentMessages } from './alignment';
|
|
8
10
|
export { annotationMessages } from './annotation';
|
|
9
11
|
export { messages as blockTypeMessages } from './block-type';
|
|
@@ -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 = "99.5.
|
|
10
|
+
var packageVersion = "99.5.1";
|
|
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
|
|
@@ -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 = "99.5.
|
|
23
|
+
var packageVersion = "99.5.1";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -42,6 +42,7 @@ 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
48
|
export type { AIUnifiedEventPayload, AIUnifiedCommonAttributes } from './types/ai-unified-events';
|
|
@@ -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 {};
|
|
@@ -48,5 +48,5 @@ type AIProactiveApiErrorAEP = OperationalAEP<ACTION.API_ERROR, ACTION_SUBJECT.ED
|
|
|
48
48
|
type AIProactiveFeedbackFailedAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.AI_PROACTIVE_FEEDBACK_DIALOG, {
|
|
49
49
|
errorMessage?: string;
|
|
50
50
|
}>;
|
|
51
|
-
export type AIProactiveEventPayload = AIProactiveApiReceivedAEP | AIProactiveSuggestionDisplayToggledAEP | AIProactiveSuggestionInsertedAEP | AIProactiveSuggestionDismissedAEP | AIProactiveSuggestionFeedbackClickedAEP | AIProactiveSuggestionCopiedAEP | AIProactiveApiPurgedAEP | AIProactiveApiErrorAEP |
|
|
51
|
+
export type AIProactiveEventPayload = AIProactiveApiReceivedAEP | AIProactiveSuggestionDisplayToggledAEP | AIProactiveSuggestionInsertedAEP | AIProactiveSuggestionDismissedAEP | AIProactiveSuggestionFeedbackClickedAEP | AIProactiveSuggestionCopiedAEP | AIProactiveApiPurgedAEP | AIProactiveApiErrorAEP | AIProactiveFeedbackFailedAEP;
|
|
52
52
|
export {};
|
|
@@ -118,6 +118,7 @@ export declare enum ACTION {
|
|
|
118
118
|
TRANSACTION_MUTATED_AFTER_DISPATCH = "transactionMutatedAfterDispatched",
|
|
119
119
|
TYPING_FINISHED = "typingFinished",
|
|
120
120
|
TYPING_STARTED = "typingStarted",
|
|
121
|
+
UNHANDLED_ERROR_CAUGHT = "unhandledErrorCaught",
|
|
121
122
|
UNLINK = "unlinked",
|
|
122
123
|
UNSUPPORTED_CONTENT_ENCOUNTERED = "unsupportedContentEncounteredV2",
|
|
123
124
|
UPDATED = "updated",
|
|
@@ -334,6 +335,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
334
335
|
EMBEDS = "embeds",
|
|
335
336
|
EMOJI = "emoji",
|
|
336
337
|
EXPAND = "expand",
|
|
338
|
+
EXPERIENCE_APPLICATION = "experienceApplication",
|
|
337
339
|
EXTENSION = "extension",
|
|
338
340
|
EXTENSION_API = "extensionApi",
|
|
339
341
|
EXTENSION_BLOCK = "extension",
|
|
@@ -4,9 +4,10 @@ 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
6
|
import type { ActiveSessionEventPayload } from './activity-session-events';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
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';
|
|
10
11
|
import type { AIUnifiedEventPayload } from './ai-unified-events';
|
|
11
12
|
import type { AvatarEventPayload } from './avatar';
|
|
12
13
|
import { type BreakoutEventPayload } from './breakout-events';
|
|
@@ -53,7 +54,7 @@ export type SimplifiedNode = {
|
|
|
53
54
|
marks?: string[];
|
|
54
55
|
content?: SimplifiedNode[];
|
|
55
56
|
};
|
|
56
|
-
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 | ActiveSessionEventPayload;
|
|
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;
|
|
57
58
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
58
59
|
previousColor: string;
|
|
59
60
|
newColor: 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
|
+
};
|
|
@@ -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
|
+
};
|
|
@@ -4,4 +4,149 @@ export declare const aiProactiveMessages: {
|
|
|
4
4
|
defaultMessage: string;
|
|
5
5
|
description: string;
|
|
6
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
|
+
};
|
|
7
152
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { aiDefinitionsMessages } from './ai-definitions';
|
|
2
2
|
export { aiProactiveMessages } from './ai-proactive';
|
|
3
|
+
export { aiProactiveSettingMessages } from './ai-proactive-setting';
|
|
4
|
+
export { aiProactiveTransformMessages } from './ai-proactive-transform';
|
|
3
5
|
export { alignmentMessages } from './alignment';
|
|
4
6
|
export { annotationMessages } from './annotation';
|
|
5
7
|
export { messages as blockTypeMessages } from './block-type';
|
|
@@ -42,6 +42,7 @@ 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
48
|
export type { AIUnifiedEventPayload, AIUnifiedCommonAttributes } from './types/ai-unified-events';
|
|
@@ -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 {};
|
|
@@ -48,5 +48,5 @@ type AIProactiveApiErrorAEP = OperationalAEP<ACTION.API_ERROR, ACTION_SUBJECT.ED
|
|
|
48
48
|
type AIProactiveFeedbackFailedAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.EDITOR, ACTION_SUBJECT_ID.AI_PROACTIVE_FEEDBACK_DIALOG, {
|
|
49
49
|
errorMessage?: string;
|
|
50
50
|
}>;
|
|
51
|
-
export type AIProactiveEventPayload = AIProactiveApiReceivedAEP | AIProactiveSuggestionDisplayToggledAEP | AIProactiveSuggestionInsertedAEP | AIProactiveSuggestionDismissedAEP | AIProactiveSuggestionFeedbackClickedAEP | AIProactiveSuggestionCopiedAEP | AIProactiveApiPurgedAEP | AIProactiveApiErrorAEP |
|
|
51
|
+
export type AIProactiveEventPayload = AIProactiveApiReceivedAEP | AIProactiveSuggestionDisplayToggledAEP | AIProactiveSuggestionInsertedAEP | AIProactiveSuggestionDismissedAEP | AIProactiveSuggestionFeedbackClickedAEP | AIProactiveSuggestionCopiedAEP | AIProactiveApiPurgedAEP | AIProactiveApiErrorAEP | AIProactiveFeedbackFailedAEP;
|
|
52
52
|
export {};
|
|
@@ -118,6 +118,7 @@ export declare enum ACTION {
|
|
|
118
118
|
TRANSACTION_MUTATED_AFTER_DISPATCH = "transactionMutatedAfterDispatched",
|
|
119
119
|
TYPING_FINISHED = "typingFinished",
|
|
120
120
|
TYPING_STARTED = "typingStarted",
|
|
121
|
+
UNHANDLED_ERROR_CAUGHT = "unhandledErrorCaught",
|
|
121
122
|
UNLINK = "unlinked",
|
|
122
123
|
UNSUPPORTED_CONTENT_ENCOUNTERED = "unsupportedContentEncounteredV2",
|
|
123
124
|
UPDATED = "updated",
|
|
@@ -334,6 +335,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
334
335
|
EMBEDS = "embeds",
|
|
335
336
|
EMOJI = "emoji",
|
|
336
337
|
EXPAND = "expand",
|
|
338
|
+
EXPERIENCE_APPLICATION = "experienceApplication",
|
|
337
339
|
EXTENSION = "extension",
|
|
338
340
|
EXTENSION_API = "extensionApi",
|
|
339
341
|
EXTENSION_BLOCK = "extension",
|
|
@@ -4,9 +4,10 @@ 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
6
|
import type { ActiveSessionEventPayload } from './activity-session-events';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
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';
|
|
10
11
|
import type { AIUnifiedEventPayload } from './ai-unified-events';
|
|
11
12
|
import type { AvatarEventPayload } from './avatar';
|
|
12
13
|
import { type BreakoutEventPayload } from './breakout-events';
|
|
@@ -53,7 +54,7 @@ export type SimplifiedNode = {
|
|
|
53
54
|
marks?: string[];
|
|
54
55
|
content?: SimplifiedNode[];
|
|
55
56
|
};
|
|
56
|
-
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 | ActiveSessionEventPayload;
|
|
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;
|
|
57
58
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
58
59
|
previousColor: string;
|
|
59
60
|
newColor: 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
|
+
};
|