@atlaskit/editor-common 126.2.2 → 126.3.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 +18 -0
- package/dist/cjs/analytics/types/enums.js +4 -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/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/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/index.d.ts +1 -1
- package/dist/types/analytics/types/ai-suggestions-events.d.ts +58 -33
- package/dist/types/analytics/types/enums.d.ts +4 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 126.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 126.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`cba52821a44c9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cba52821a44c9) -
|
|
14
|
+
Add suggestion generation, lifecycle timing, remix-type, and stale-regeneration analytics for
|
|
15
|
+
suggested edits.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 126.2.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -80,6 +80,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
80
80
|
ACTION["UNDO_PERFORMED"] = "undo";
|
|
81
81
|
ACTION["REDO_PERFORMED"] = "redo";
|
|
82
82
|
ACTION["FORMATTED"] = "formatted";
|
|
83
|
+
ACTION["GENERATED"] = "generated";
|
|
83
84
|
ACTION["HELP_OPENED"] = "helpOpened";
|
|
84
85
|
ACTION["HIGHLIGHTED"] = "highlighted";
|
|
85
86
|
ACTION["INCREMENTED"] = "incremented";
|
|
@@ -124,6 +125,8 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
124
125
|
ACTION["REFERENCE_SYNCED_BLOCK_UPDATE"] = "referenceSyncedBlockUpdate";
|
|
125
126
|
ACTION["REFERENCE_SYNCED_BLOCK_UNSYNC"] = "referenceSyncedBlockUnsync";
|
|
126
127
|
ACTION["REFERENCE_SYNCED_BLOCK_COPY"] = "referenceSyncedBlockCopy";
|
|
128
|
+
ACTION["REGENERATION_COMPLETED"] = "regenerationCompleted";
|
|
129
|
+
ACTION["REGENERATION_STARTED"] = "regenerationStarted";
|
|
127
130
|
ACTION["RIGHT_RAIL_CLOSED"] = "rightRailClosed";
|
|
128
131
|
ACTION["RIGHT_RAIL_VIEWED"] = "rightRailViewed";
|
|
129
132
|
ACTION["REPLACED_ALL"] = "replacedAll";
|
|
@@ -448,6 +451,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
|
|
|
448
451
|
ACTION_SUBJECT_ID["CODEBLOCK_COPY"] = "codeBlockCopy";
|
|
449
452
|
ACTION_SUBJECT_ID["CODEBLOCK_WRAP"] = "codeBlockWrap";
|
|
450
453
|
ACTION_SUBJECT_ID["CONVERSATION_ERROR"] = "conversationError";
|
|
454
|
+
ACTION_SUBJECT_ID["SUGGESTIONS_REGENERATION"] = "suggestionsRegeneration";
|
|
451
455
|
ACTION_SUBJECT_ID["SUGGESTIONS_REGENERATION_ERROR"] = "suggestionsRegenerationError";
|
|
452
456
|
ACTION_SUBJECT_ID["SUGGESTIONS_ERROR_RETRY"] = "suggestionsErrorRetry";
|
|
453
457
|
ACTION_SUBJECT_ID["COPY_BUTTON"] = "copyButton";
|
|
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
27
27
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
28
28
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
29
29
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
30
|
-
var packageVersion = "126.
|
|
30
|
+
var packageVersion = "126.3.0";
|
|
31
31
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
32
32
|
// Remove URL as it has UGC
|
|
33
33
|
// Ignored via go/ees007
|
|
@@ -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 = "126.
|
|
27
|
+
var packageVersion = "126.3.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -76,6 +76,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
76
76
|
ACTION["UNDO_PERFORMED"] = "undo";
|
|
77
77
|
ACTION["REDO_PERFORMED"] = "redo";
|
|
78
78
|
ACTION["FORMATTED"] = "formatted";
|
|
79
|
+
ACTION["GENERATED"] = "generated";
|
|
79
80
|
ACTION["HELP_OPENED"] = "helpOpened";
|
|
80
81
|
ACTION["HIGHLIGHTED"] = "highlighted";
|
|
81
82
|
ACTION["INCREMENTED"] = "incremented";
|
|
@@ -120,6 +121,8 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
120
121
|
ACTION["REFERENCE_SYNCED_BLOCK_UPDATE"] = "referenceSyncedBlockUpdate";
|
|
121
122
|
ACTION["REFERENCE_SYNCED_BLOCK_UNSYNC"] = "referenceSyncedBlockUnsync";
|
|
122
123
|
ACTION["REFERENCE_SYNCED_BLOCK_COPY"] = "referenceSyncedBlockCopy";
|
|
124
|
+
ACTION["REGENERATION_COMPLETED"] = "regenerationCompleted";
|
|
125
|
+
ACTION["REGENERATION_STARTED"] = "regenerationStarted";
|
|
123
126
|
ACTION["RIGHT_RAIL_CLOSED"] = "rightRailClosed";
|
|
124
127
|
ACTION["RIGHT_RAIL_VIEWED"] = "rightRailViewed";
|
|
125
128
|
ACTION["REPLACED_ALL"] = "replacedAll";
|
|
@@ -456,6 +459,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
456
459
|
ACTION_SUBJECT_ID["CODEBLOCK_COPY"] = "codeBlockCopy";
|
|
457
460
|
ACTION_SUBJECT_ID["CODEBLOCK_WRAP"] = "codeBlockWrap";
|
|
458
461
|
ACTION_SUBJECT_ID["CONVERSATION_ERROR"] = "conversationError";
|
|
462
|
+
ACTION_SUBJECT_ID["SUGGESTIONS_REGENERATION"] = "suggestionsRegeneration";
|
|
459
463
|
ACTION_SUBJECT_ID["SUGGESTIONS_REGENERATION_ERROR"] = "suggestionsRegenerationError";
|
|
460
464
|
ACTION_SUBJECT_ID["SUGGESTIONS_ERROR_RETRY"] = "suggestionsErrorRetry";
|
|
461
465
|
ACTION_SUBJECT_ID["COPY_BUTTON"] = "copyButton";
|
|
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
13
13
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
14
14
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
15
15
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
16
|
-
const packageVersion = "126.
|
|
16
|
+
const packageVersion = "126.3.0";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// Ignored via go/ees007
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "126.
|
|
17
|
+
const packageVersion = "126.3.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -76,6 +76,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
76
76
|
ACTION["UNDO_PERFORMED"] = "undo";
|
|
77
77
|
ACTION["REDO_PERFORMED"] = "redo";
|
|
78
78
|
ACTION["FORMATTED"] = "formatted";
|
|
79
|
+
ACTION["GENERATED"] = "generated";
|
|
79
80
|
ACTION["HELP_OPENED"] = "helpOpened";
|
|
80
81
|
ACTION["HIGHLIGHTED"] = "highlighted";
|
|
81
82
|
ACTION["INCREMENTED"] = "incremented";
|
|
@@ -120,6 +121,8 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
120
121
|
ACTION["REFERENCE_SYNCED_BLOCK_UPDATE"] = "referenceSyncedBlockUpdate";
|
|
121
122
|
ACTION["REFERENCE_SYNCED_BLOCK_UNSYNC"] = "referenceSyncedBlockUnsync";
|
|
122
123
|
ACTION["REFERENCE_SYNCED_BLOCK_COPY"] = "referenceSyncedBlockCopy";
|
|
124
|
+
ACTION["REGENERATION_COMPLETED"] = "regenerationCompleted";
|
|
125
|
+
ACTION["REGENERATION_STARTED"] = "regenerationStarted";
|
|
123
126
|
ACTION["RIGHT_RAIL_CLOSED"] = "rightRailClosed";
|
|
124
127
|
ACTION["RIGHT_RAIL_VIEWED"] = "rightRailViewed";
|
|
125
128
|
ACTION["REPLACED_ALL"] = "replacedAll";
|
|
@@ -456,6 +459,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
456
459
|
ACTION_SUBJECT_ID["CODEBLOCK_COPY"] = "codeBlockCopy";
|
|
457
460
|
ACTION_SUBJECT_ID["CODEBLOCK_WRAP"] = "codeBlockWrap";
|
|
458
461
|
ACTION_SUBJECT_ID["CONVERSATION_ERROR"] = "conversationError";
|
|
462
|
+
ACTION_SUBJECT_ID["SUGGESTIONS_REGENERATION"] = "suggestionsRegeneration";
|
|
459
463
|
ACTION_SUBJECT_ID["SUGGESTIONS_REGENERATION_ERROR"] = "suggestionsRegenerationError";
|
|
460
464
|
ACTION_SUBJECT_ID["SUGGESTIONS_ERROR_RETRY"] = "suggestionsErrorRetry";
|
|
461
465
|
ACTION_SUBJECT_ID["COPY_BUTTON"] = "copyButton";
|
|
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
19
19
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "126.
|
|
22
|
+
var packageVersion = "126.3.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "126.
|
|
24
|
+
var packageVersion = "126.3.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -58,4 +58,4 @@ export { type TelepointerClickPayload } from './types/telepointer-events';
|
|
|
58
58
|
export type { BlockMenuEventPayload } from './types/block-menu-events';
|
|
59
59
|
export type { BreakoutEventPayload, BreakoutSupportedNodes } from './types/breakout-events';
|
|
60
60
|
export type { RendererSyncBlockEventPayload, SyncBlockEventPayload, SyncedBlockSSRErrorAEP, } from './types/sync-block-events';
|
|
61
|
-
export type { AiSuggestionsConversationErrorReason, AiSuggestionInteractionPoint, AiSuggestionsEntryPoint, AiSuggestionsEventPayload, AiSuggestionsEmptyStateType, AiSuggestionsRightRailEntryPoint, } from './types/ai-suggestions-events';
|
|
61
|
+
export type { AiSuggestionsConversationErrorReason, AiSuggestionInteractionPoint, AiSuggestionsEntryPoint, AiSuggestionsEventPayload, AiSuggestionsEmptyStateType, AiSuggestionsRegenerationOutcome, AiSuggestionsRegenerationTrigger, AiSuggestionsRightRailEntryPoint, } from './types/ai-suggestions-events';
|
|
@@ -21,6 +21,27 @@ export type AiSuggestionInteractionPoint = 'sidebar' | 'card' | 'statusBar';
|
|
|
21
21
|
export type AiSuggestionsRightRailEntryPoint = 'suggestionsPanel' | 'suggestionsTab' | 'suggestionCard';
|
|
22
22
|
export type AiSuggestionsEmptyStateType = 'initial' | 'noSuggestionsFound' | 'suggestionsResolved';
|
|
23
23
|
export type AiSuggestionsConversationErrorReason = 'agentDeactivated' | 'agentProvisioning' | 'agentExternalConfigReference' | 'conversationSetup' | 'streamError';
|
|
24
|
+
export type AiSuggestionsRegenerationTrigger = 'panelOpen' | 'reviewCompleted' | 'suggestionSelected' | 'suggestionsUpdated';
|
|
25
|
+
export type AiSuggestionsRegenerationOutcome = 'removed' | 'stillStale' | 'updated';
|
|
26
|
+
type SuggestionRemixAttributes = {
|
|
27
|
+
remixSubtype?: string;
|
|
28
|
+
remixType?: string;
|
|
29
|
+
};
|
|
30
|
+
type SuggestionAgeAttribute = {
|
|
31
|
+
suggestionAgeMs?: number;
|
|
32
|
+
};
|
|
33
|
+
type RegenerationSuggestionDetails = SuggestionRemixAttributes & SuggestionAgeAttribute & {
|
|
34
|
+
actionKind: string;
|
|
35
|
+
outcome?: AiSuggestionsRegenerationOutcome;
|
|
36
|
+
suggestionId: string;
|
|
37
|
+
suggestionType: string;
|
|
38
|
+
};
|
|
39
|
+
type RegenerationCommonAttributes = {
|
|
40
|
+
currentNodeCount: number;
|
|
41
|
+
staleSuggestionCount: number;
|
|
42
|
+
suggestionDetails: RegenerationSuggestionDetails[];
|
|
43
|
+
trigger: AiSuggestionsRegenerationTrigger;
|
|
44
|
+
};
|
|
24
45
|
type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
25
46
|
suggestionType: string;
|
|
26
47
|
toolCalls: {
|
|
@@ -34,12 +55,18 @@ type ConversationErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.AI_SUG
|
|
|
34
55
|
reason: AiSuggestionsConversationErrorReason;
|
|
35
56
|
statusCode?: number;
|
|
36
57
|
}>;
|
|
37
|
-
type RegenerateSuggestionsErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.AI_SUGGESTIONS, ACTION_SUBJECT_ID.SUGGESTIONS_REGENERATION_ERROR, {
|
|
38
|
-
currentNodeCount: number;
|
|
58
|
+
type RegenerateSuggestionsErrorAEP = OperationalAEP<ACTION.ERRORED, ACTION_SUBJECT.AI_SUGGESTIONS, ACTION_SUBJECT_ID.SUGGESTIONS_REGENERATION_ERROR, RegenerationCommonAttributes & {
|
|
39
59
|
errorCode?: string;
|
|
40
|
-
|
|
60
|
+
regenerationDurationMs: number;
|
|
41
61
|
statusCode?: number;
|
|
42
62
|
}>;
|
|
63
|
+
type RegenerateSuggestionsStartedAEP = OperationalAEP<ACTION.REGENERATION_STARTED, ACTION_SUBJECT.AI_SUGGESTIONS, ACTION_SUBJECT_ID.SUGGESTIONS_REGENERATION, RegenerationCommonAttributes>;
|
|
64
|
+
type RegenerateSuggestionsCompletedAEP = OperationalAEP<ACTION.REGENERATION_COMPLETED, ACTION_SUBJECT.AI_SUGGESTIONS, ACTION_SUBJECT_ID.SUGGESTIONS_REGENERATION, RegenerationCommonAttributes & {
|
|
65
|
+
regenerationDurationMs: number;
|
|
66
|
+
removedSuggestionCount: number;
|
|
67
|
+
stillStaleSuggestionCount: number;
|
|
68
|
+
updatedSuggestionCount: number;
|
|
69
|
+
}>;
|
|
43
70
|
type EntryPointClickedAEP = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
44
71
|
entryPoint: AiSuggestionsEntryPoint;
|
|
45
72
|
}, undefined>;
|
|
@@ -52,18 +79,7 @@ type SuggestionsErrorRetryClickedAEP = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.A
|
|
|
52
79
|
type EntryPointExposureAEP = TrackAEP<ACTION.EXPOSED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
53
80
|
entryPoint: AiSuggestionsEntryPoint;
|
|
54
81
|
}, undefined>;
|
|
55
|
-
type
|
|
56
|
-
affectedBlocks: number;
|
|
57
|
-
agentId?: string;
|
|
58
|
-
charactersAdded?: number;
|
|
59
|
-
charactersRemoved?: number;
|
|
60
|
-
hasSources: boolean;
|
|
61
|
-
interactionPoint: AiSuggestionInteractionPoint;
|
|
62
|
-
isDiffHidden: boolean;
|
|
63
|
-
suggestionId: string;
|
|
64
|
-
suggestionType: string;
|
|
65
|
-
}, undefined>;
|
|
66
|
-
type DiscardedSuggestionAttributes = {
|
|
82
|
+
type SuggestionLifecycleAttributes = SuggestionRemixAttributes & SuggestionAgeAttribute & {
|
|
67
83
|
actionKind: string;
|
|
68
84
|
affectedBlocks: number;
|
|
69
85
|
agentId?: string;
|
|
@@ -72,6 +88,12 @@ type DiscardedSuggestionAttributes = {
|
|
|
72
88
|
suggestionId: string;
|
|
73
89
|
suggestionType: string;
|
|
74
90
|
};
|
|
91
|
+
type AcceptSuggestionAEP = TrackAEP<ACTION.ACCEPTED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, SuggestionLifecycleAttributes & {
|
|
92
|
+
charactersAdded?: number;
|
|
93
|
+
charactersRemoved?: number;
|
|
94
|
+
isDiffHidden: boolean;
|
|
95
|
+
}, undefined>;
|
|
96
|
+
type DiscardedSuggestionAttributes = SuggestionLifecycleAttributes;
|
|
75
97
|
type CancelSuggestionsAEP = TrackAEP<ACTION.CANCELLED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
76
98
|
interactionPoint: AiSuggestionInteractionPoint;
|
|
77
99
|
}, undefined>;
|
|
@@ -80,45 +102,48 @@ type DiscardAllSuggestionsAEP = TrackAEP<ACTION.DISCARD_ALL, ACTION_SUBJECT.AI_S
|
|
|
80
102
|
numberOfSuggestions: number;
|
|
81
103
|
suggestionDetails: DiscardedSuggestionAttributes[];
|
|
82
104
|
}, undefined>;
|
|
83
|
-
type DismissSuggestionAEP = TrackAEP<ACTION.DISMISSED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined,
|
|
84
|
-
|
|
85
|
-
hasSources: boolean;
|
|
86
|
-
interactionPoint: AiSuggestionInteractionPoint;
|
|
87
|
-
suggestionId: string;
|
|
88
|
-
suggestionType: string;
|
|
89
|
-
}, undefined>;
|
|
90
|
-
type ViewSuggestionAEP = TrackAEP<ACTION.VIEWED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
91
|
-
actionKind: string;
|
|
92
|
-
affectedBlocks: number;
|
|
93
|
-
agentId?: string;
|
|
105
|
+
type DismissSuggestionAEP = TrackAEP<ACTION.DISMISSED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, SuggestionLifecycleAttributes, undefined>;
|
|
106
|
+
type ViewSuggestionAEP = TrackAEP<ACTION.VIEWED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, SuggestionLifecycleAttributes & {
|
|
94
107
|
blockTypes: string[];
|
|
95
108
|
charactersToAdd?: number;
|
|
96
109
|
charactersToRemove?: number;
|
|
97
|
-
hasSources: boolean;
|
|
98
|
-
interactionPoint: AiSuggestionInteractionPoint;
|
|
99
110
|
suggestionCardCharacterCount: number;
|
|
100
|
-
suggestionId: string;
|
|
101
|
-
suggestionType: string;
|
|
102
111
|
}, undefined>;
|
|
103
112
|
type RightRailViewedAEP = TrackAEP<ACTION.RIGHT_RAIL_VIEWED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
104
113
|
entryPoint: AiSuggestionsRightRailEntryPoint;
|
|
105
114
|
numberOfSuggestions: number;
|
|
106
|
-
suggestionDetails: Array<{
|
|
115
|
+
suggestionDetails: Array<SuggestionRemixAttributes & SuggestionAgeAttribute & {
|
|
107
116
|
actionKind: string;
|
|
108
117
|
affectedBlocks: number;
|
|
109
118
|
suggestionType: string;
|
|
110
119
|
}>;
|
|
111
120
|
}, undefined>;
|
|
112
121
|
type RightRailClosedAEP = TrackAEP<ACTION.RIGHT_RAIL_CLOSED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, undefined, undefined>;
|
|
113
|
-
type ViewSuggestionReasoningAEP = TrackAEP<ACTION.REASONING_VIEWED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
122
|
+
type ViewSuggestionReasoningAEP = TrackAEP<ACTION.REASONING_VIEWED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, SuggestionRemixAttributes & SuggestionAgeAttribute & {
|
|
123
|
+
actionKind: string;
|
|
114
124
|
affectedBlocks: number;
|
|
125
|
+
agentId?: string;
|
|
115
126
|
hasSources: boolean;
|
|
116
127
|
interactionPoint: AiSuggestionInteractionPoint;
|
|
117
128
|
reasoningCharacterCount: number;
|
|
129
|
+
suggestionId: string;
|
|
118
130
|
suggestionType: string;
|
|
119
131
|
}, undefined>;
|
|
132
|
+
type SuggestionsGeneratedAEP = TrackAEP<ACTION.GENERATED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
133
|
+
generationDurationMs: number;
|
|
134
|
+
hadExistingSuggestions: boolean;
|
|
135
|
+
numberOfSuggestions: number;
|
|
136
|
+
suggestionDetails: Array<SuggestionRemixAttributes & {
|
|
137
|
+
actionKind: string;
|
|
138
|
+
affectedBlocks: number;
|
|
139
|
+
agentId?: string;
|
|
140
|
+
hasSources: boolean;
|
|
141
|
+
suggestionId: string;
|
|
142
|
+
suggestionType: string;
|
|
143
|
+
}>;
|
|
144
|
+
}, undefined>;
|
|
120
145
|
type EmptyStateExposedAEP = TrackAEP<ACTION.EMPTY_STATE_EXPOSED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
|
|
121
146
|
emptyStateType: AiSuggestionsEmptyStateType;
|
|
122
147
|
}, undefined>;
|
|
123
|
-
export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | ConversationErrorAEP | RegenerateSuggestionsErrorAEP | EntryPointClickedAEP | SuggestionsErrorRetryClickedAEP | EntryPointExposureAEP | CancelSuggestionsAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | DiscardAllSuggestionsAEP | DismissSuggestionAEP | ViewSuggestionAEP | RightRailViewedAEP | RightRailClosedAEP | ViewSuggestionReasoningAEP | EmptyStateExposedAEP;
|
|
148
|
+
export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | ConversationErrorAEP | RegenerateSuggestionsErrorAEP | RegenerateSuggestionsStartedAEP | RegenerateSuggestionsCompletedAEP | EntryPointClickedAEP | SuggestionsErrorRetryClickedAEP | EntryPointExposureAEP | CancelSuggestionsAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | DiscardAllSuggestionsAEP | DismissSuggestionAEP | ViewSuggestionAEP | RightRailViewedAEP | RightRailClosedAEP | ViewSuggestionReasoningAEP | SuggestionsGeneratedAEP | EmptyStateExposedAEP;
|
|
124
149
|
export {};
|
|
@@ -73,6 +73,7 @@ export declare enum ACTION {
|
|
|
73
73
|
UNDO_PERFORMED = "undo",
|
|
74
74
|
REDO_PERFORMED = "redo",
|
|
75
75
|
FORMATTED = "formatted",
|
|
76
|
+
GENERATED = "generated",
|
|
76
77
|
HELP_OPENED = "helpOpened",
|
|
77
78
|
HIGHLIGHTED = "highlighted",
|
|
78
79
|
INCREMENTED = "incremented",
|
|
@@ -117,6 +118,8 @@ export declare enum ACTION {
|
|
|
117
118
|
REFERENCE_SYNCED_BLOCK_UPDATE = "referenceSyncedBlockUpdate",
|
|
118
119
|
REFERENCE_SYNCED_BLOCK_UNSYNC = "referenceSyncedBlockUnsync",
|
|
119
120
|
REFERENCE_SYNCED_BLOCK_COPY = "referenceSyncedBlockCopy",
|
|
121
|
+
REGENERATION_COMPLETED = "regenerationCompleted",
|
|
122
|
+
REGENERATION_STARTED = "regenerationStarted",
|
|
120
123
|
RIGHT_RAIL_CLOSED = "rightRailClosed",
|
|
121
124
|
RIGHT_RAIL_VIEWED = "rightRailViewed",
|
|
122
125
|
REPLACED_ALL = "replacedAll",
|
|
@@ -431,6 +434,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
431
434
|
CODEBLOCK_COPY = "codeBlockCopy",
|
|
432
435
|
CODEBLOCK_WRAP = "codeBlockWrap",
|
|
433
436
|
CONVERSATION_ERROR = "conversationError",
|
|
437
|
+
SUGGESTIONS_REGENERATION = "suggestionsRegeneration",
|
|
434
438
|
SUGGESTIONS_REGENERATION_ERROR = "suggestionsRegenerationError",
|
|
435
439
|
SUGGESTIONS_ERROR_RETRY = "suggestionsErrorRetry",
|
|
436
440
|
COPY_BUTTON = "copyButton",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "126.
|
|
3
|
+
"version": "126.3.1",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/codemod-utils": "^5.1.0",
|
|
42
42
|
"@atlaskit/css": "^1.1.0",
|
|
43
43
|
"@atlaskit/custom-steps": "^1.1.0",
|
|
44
|
-
"@atlaskit/dropdown-menu": "^
|
|
44
|
+
"@atlaskit/dropdown-menu": "^20.0.0",
|
|
45
45
|
"@atlaskit/editor-json-transformer": "^10.0.0",
|
|
46
46
|
"@atlaskit/editor-palette": "^3.5.0",
|
|
47
47
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@atlaskit/task-decision": "^21.11.0",
|
|
86
86
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
87
87
|
"@atlaskit/textfield": "^10.2.0",
|
|
88
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
88
|
+
"@atlaskit/tmp-editor-statsig": "^215.0.0",
|
|
89
89
|
"@atlaskit/tokens": "^20.1.0",
|
|
90
90
|
"@atlaskit/tooltip": "^24.3.0",
|
|
91
91
|
"@atlaskit/width-detector": "^7.2.0",
|