@atlaskit/editor-common 133.4.0 → 133.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 133.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`63204a720ea3d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/63204a720ea3d) -
8
+ Add ACTION.ADOPTED and the AIResultAdoptedEventPayload unified analytics type (aiResult adopted)
9
+ to AIUnifiedEventPayload, and allow aiResultAction on the unified aiResult discarded payload.
10
+ - [`5157e2c52cfcd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5157e2c52cfcd) -
11
+ Update i18n NPM package versions for editor,editor-extensions,activity-platform,media,elements
12
+ (Group 3)
13
+
14
+ ### Patch Changes
15
+
16
+ - [`5a339a6a201dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5a339a6a201dd) -
17
+ Gate the `suggestionType` analytics attribute, and the `suggestionType` field passed to
18
+ `onSubmitSuggestionFeedback`, behind `platform_editor_ai_suggestion_type_analytics`;
19
+ `suggestionType` is now optional on AI suggestions event payloads.
20
+ - [`b3013aaa4d7ce`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b3013aaa4d7ce) -
21
+ Slash menu: add preview images for the Jira Change request, Incident summary and Service request
22
+ block templates
23
+ - Updated dependencies
24
+
3
25
  ## 133.4.0
4
26
 
5
27
  ### Minor Changes
@@ -15,6 +15,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
15
15
  ACTION["ACTIONED"] = "actioned";
16
16
  ACTION["ACTIVATED"] = "activated";
17
17
  ACTION["ADDED"] = "added";
18
+ ACTION["ADOPTED"] = "adopted";
18
19
  ACTION["API_ERROR"] = "apiError";
19
20
  ACTION["API_RECEIVED"] = "apiReceived";
20
21
  ACTION["API_PURGED"] = "apiPurged";
@@ -22,6 +22,10 @@ var snippetPreviewImageUrlsByKey = {
22
22
  light: "".concat(DAM_CDN_LINK, "/AT12OVMY.png"),
23
23
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJE.png")
24
24
  },
25
+ 'change-request': {
26
+ light: "".concat(DAM_CDN_LINK, "/AT12P40V.png"),
27
+ dark: "".concat(DAM_CDN_LINK, "/AT12P40Y.png")
28
+ },
25
29
  'colourful-layout': {
26
30
  light: "".concat(DAM_CDN_LINK, "/AT12OVN6.png"),
27
31
  dark: "".concat(DAM_CDN_LINK, "/AT12OVIG.png")
@@ -54,6 +58,10 @@ var snippetPreviewImageUrlsByKey = {
54
58
  light: "".concat(DAM_CDN_LINK, "/AT12OVMT.png"),
55
59
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJ9.png")
56
60
  },
61
+ 'incident-summary': {
62
+ light: "".concat(DAM_CDN_LINK, "/AT12P40X.png"),
63
+ dark: "".concat(DAM_CDN_LINK, "/AT12P47X.png")
64
+ },
57
65
  'launch-checklist': {
58
66
  light: "".concat(DAM_CDN_LINK, "/AT12OVKW.png"),
59
67
  dark: "".concat(DAM_CDN_LINK, "/AT12OVHN.png")
@@ -86,6 +94,10 @@ var snippetPreviewImageUrlsByKey = {
86
94
  light: "".concat(DAM_CDN_LINK, "/AT12OVMZ.png"),
87
95
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJB.png")
88
96
  },
97
+ 'service-request': {
98
+ light: "".concat(DAM_CDN_LINK, "/AT12P40W.png"),
99
+ dark: "".concat(DAM_CDN_LINK, "/AT12P47Y.png")
100
+ },
89
101
  'started-now': {
90
102
  light: "".concat(DAM_CDN_LINK, "/AT12OVN8.png"),
91
103
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJQ.png")
@@ -11,6 +11,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
11
11
  ACTION["ACTIONED"] = "actioned";
12
12
  ACTION["ACTIVATED"] = "activated";
13
13
  ACTION["ADDED"] = "added";
14
+ ACTION["ADOPTED"] = "adopted";
14
15
  ACTION["API_ERROR"] = "apiError";
15
16
  ACTION["API_RECEIVED"] = "apiReceived";
16
17
  ACTION["API_PURGED"] = "apiPurged";
@@ -16,6 +16,10 @@ const snippetPreviewImageUrlsByKey = {
16
16
  light: `${DAM_CDN_LINK}/AT12OVMY.png`,
17
17
  dark: `${DAM_CDN_LINK}/AT12OVJE.png`
18
18
  },
19
+ 'change-request': {
20
+ light: `${DAM_CDN_LINK}/AT12P40V.png`,
21
+ dark: `${DAM_CDN_LINK}/AT12P40Y.png`
22
+ },
19
23
  'colourful-layout': {
20
24
  light: `${DAM_CDN_LINK}/AT12OVN6.png`,
21
25
  dark: `${DAM_CDN_LINK}/AT12OVIG.png`
@@ -48,6 +52,10 @@ const snippetPreviewImageUrlsByKey = {
48
52
  light: `${DAM_CDN_LINK}/AT12OVMT.png`,
49
53
  dark: `${DAM_CDN_LINK}/AT12OVJ9.png`
50
54
  },
55
+ 'incident-summary': {
56
+ light: `${DAM_CDN_LINK}/AT12P40X.png`,
57
+ dark: `${DAM_CDN_LINK}/AT12P47X.png`
58
+ },
51
59
  'launch-checklist': {
52
60
  light: `${DAM_CDN_LINK}/AT12OVKW.png`,
53
61
  dark: `${DAM_CDN_LINK}/AT12OVHN.png`
@@ -80,6 +88,10 @@ const snippetPreviewImageUrlsByKey = {
80
88
  light: `${DAM_CDN_LINK}/AT12OVMZ.png`,
81
89
  dark: `${DAM_CDN_LINK}/AT12OVJB.png`
82
90
  },
91
+ 'service-request': {
92
+ light: `${DAM_CDN_LINK}/AT12P40W.png`,
93
+ dark: `${DAM_CDN_LINK}/AT12P47Y.png`
94
+ },
83
95
  'started-now': {
84
96
  light: `${DAM_CDN_LINK}/AT12OVN8.png`,
85
97
  dark: `${DAM_CDN_LINK}/AT12OVJQ.png`
@@ -11,6 +11,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
11
11
  ACTION["ACTIONED"] = "actioned";
12
12
  ACTION["ACTIVATED"] = "activated";
13
13
  ACTION["ADDED"] = "added";
14
+ ACTION["ADOPTED"] = "adopted";
14
15
  ACTION["API_ERROR"] = "apiError";
15
16
  ACTION["API_RECEIVED"] = "apiReceived";
16
17
  ACTION["API_PURGED"] = "apiPurged";
@@ -16,6 +16,10 @@ var snippetPreviewImageUrlsByKey = {
16
16
  light: "".concat(DAM_CDN_LINK, "/AT12OVMY.png"),
17
17
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJE.png")
18
18
  },
19
+ 'change-request': {
20
+ light: "".concat(DAM_CDN_LINK, "/AT12P40V.png"),
21
+ dark: "".concat(DAM_CDN_LINK, "/AT12P40Y.png")
22
+ },
19
23
  'colourful-layout': {
20
24
  light: "".concat(DAM_CDN_LINK, "/AT12OVN6.png"),
21
25
  dark: "".concat(DAM_CDN_LINK, "/AT12OVIG.png")
@@ -48,6 +52,10 @@ var snippetPreviewImageUrlsByKey = {
48
52
  light: "".concat(DAM_CDN_LINK, "/AT12OVMT.png"),
49
53
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJ9.png")
50
54
  },
55
+ 'incident-summary': {
56
+ light: "".concat(DAM_CDN_LINK, "/AT12P40X.png"),
57
+ dark: "".concat(DAM_CDN_LINK, "/AT12P47X.png")
58
+ },
51
59
  'launch-checklist': {
52
60
  light: "".concat(DAM_CDN_LINK, "/AT12OVKW.png"),
53
61
  dark: "".concat(DAM_CDN_LINK, "/AT12OVHN.png")
@@ -80,6 +88,10 @@ var snippetPreviewImageUrlsByKey = {
80
88
  light: "".concat(DAM_CDN_LINK, "/AT12OVMZ.png"),
81
89
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJB.png")
82
90
  },
91
+ 'service-request': {
92
+ light: "".concat(DAM_CDN_LINK, "/AT12P40W.png"),
93
+ dark: "".concat(DAM_CDN_LINK, "/AT12P47Y.png")
94
+ },
83
95
  'started-now': {
84
96
  light: "".concat(DAM_CDN_LINK, "/AT12OVN8.png"),
85
97
  dark: "".concat(DAM_CDN_LINK, "/AT12OVJQ.png")
@@ -53,7 +53,7 @@ type RegenerationSuggestionDetails = SuggestionRemixAttributes & TimeSinceGenera
53
53
  actionKind: string;
54
54
  outcome?: AiSuggestionsRegenerationOutcome;
55
55
  suggestionId: string;
56
- suggestionType: string;
56
+ suggestionType?: string;
57
57
  };
58
58
  type RegenerationCommonAttributes = {
59
59
  currentNodeCount: number;
@@ -62,7 +62,7 @@ type RegenerationCommonAttributes = {
62
62
  trigger: AiSuggestionsRegenerationTrigger;
63
63
  };
64
64
  type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
65
- suggestionType: string;
65
+ suggestionType?: string;
66
66
  toolCalls: {
67
67
  localIds: string[];
68
68
  name: string;
@@ -107,7 +107,7 @@ type SuggestionLifecycleAttributes = SuggestionRemixAttributes & TimeSinceGenera
107
107
  hasSources: boolean;
108
108
  interactionPoint: AiSuggestionInteractionPoint;
109
109
  suggestionId: string;
110
- suggestionType: string;
110
+ suggestionType?: string;
111
111
  };
112
112
  type AcceptSuggestionAEP = TrackAEP<ACTION.ACCEPTED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, SuggestionLifecycleAttributes & {
113
113
  charactersAdded?: number;
@@ -117,7 +117,7 @@ type AcceptSuggestionAEP = TrackAEP<ACTION.ACCEPTED, ACTION_SUBJECT.AI_SUGGESTIO
117
117
  type UndoAcceptedSuggestionAEP = TrackAEP<ACTION.UNDO_PERFORMED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, TimeSinceGenerationAttribute & {
118
118
  actionKind: string;
119
119
  suggestionId: string;
120
- suggestionType: string;
120
+ suggestionType?: string;
121
121
  }, undefined>;
122
122
  type DiscardedSuggestionAttributes = SuggestionLifecycleAttributes;
123
123
  type CancelSuggestionsAEP = TrackAEP<ACTION.CANCELLED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
@@ -141,7 +141,7 @@ type RightRailViewedAEP = TrackAEP<ACTION.RIGHT_RAIL_VIEWED, ACTION_SUBJECT.AI_S
141
141
  suggestionDetails: Array<SuggestionRemixAttributes & TimeSinceGenerationAttribute & {
142
142
  actionKind: string;
143
143
  affectedBlocks: number;
144
- suggestionType: string;
144
+ suggestionType?: string;
145
145
  }>;
146
146
  }, undefined>;
147
147
  type RightRailClosedAEP = TrackAEP<ACTION.RIGHT_RAIL_CLOSED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, undefined, undefined>;
@@ -153,7 +153,7 @@ type ViewSuggestionReasoningAEP = TrackAEP<ACTION.REASONING_VIEWED, ACTION_SUBJE
153
153
  interactionPoint: AiSuggestionInteractionPoint;
154
154
  reasoningCharacterCount: number;
155
155
  suggestionId: string;
156
- suggestionType: string;
156
+ suggestionType?: string;
157
157
  }, undefined>;
158
158
  type SuggestionsGeneratedAEP = TrackAEP<ACTION.GENERATED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
159
159
  generationDurationMs: number;
@@ -165,7 +165,7 @@ type SuggestionsGeneratedAEP = TrackAEP<ACTION.GENERATED, ACTION_SUBJECT.AI_SUGG
165
165
  agentId?: string;
166
166
  hasSources: boolean;
167
167
  suggestionId: string;
168
- suggestionType: string;
168
+ suggestionType?: string;
169
169
  }>;
170
170
  }, undefined>;
171
171
  type EmptyStateExposedAEP = TrackAEP<ACTION.EMPTY_STATE_EXPOSED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
@@ -44,7 +44,9 @@ type AIUnifiedAgentAttributes = {
44
44
  };
45
45
  type AIInteractionInitiatedAEP = TrackAEP<ACTION.INITIATED, ACTION_SUBJECT.AI_INTERACTION, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes, undefined>;
46
46
  type AIInteractionDismissedAEP = TrackAEP<ACTION.DISMISSED, ACTION_SUBJECT.AI_INTERACTION, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes, undefined>;
47
- type AIInteractionDiscardedAEP = TrackAEP<ACTION.DISCARDED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes, undefined>;
47
+ type AIInteractionDiscardedAEP = TrackAEP<ACTION.DISCARDED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes & {
48
+ aiResultAction?: string;
49
+ }, undefined>;
48
50
  type AIResultViewedAEP = TrackAEP<ACTION.VIEWED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes, undefined>;
49
51
  /**
50
52
  * Generated image / MAUI app block counts of the Rovo page edit behind an AI result, copied from the
@@ -68,6 +70,19 @@ type AIResultActionedAEP = TrackAEP<ACTION.ACTIONED, ACTION_SUBJECT.AI_RESULT, A
68
70
  refinementCount?: number;
69
71
  wasRedone?: boolean;
70
72
  }, undefined>;
73
+ export type AIRovoModifiedObject = {
74
+ actionName: 'create' | 'update';
75
+ objectId: string;
76
+ objectType: string;
77
+ targetProduct: string;
78
+ };
79
+ /**
80
+ * Fires once an AI result has successfully created or modified a work item (page, issue, etc.).
81
+ * Sequence to `aiResult actioned`.
82
+ */
83
+ export type AIResultAdoptedEventPayload = TrackAEP<ACTION.ADOPTED, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes & {
84
+ rovoModifiedObjects: AIRovoModifiedObject[];
85
+ }, undefined>;
71
86
  type AIResultErrorAEP = TrackAEP<ACTION.ERROR, ACTION_SUBJECT.AI_RESULT, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes & {
72
87
  aiErrorCode?: number;
73
88
  aiErrorMessage?: string;
@@ -75,5 +90,5 @@ type AIResultErrorAEP = TrackAEP<ACTION.ERROR, ACTION_SUBJECT.AI_RESULT, ACTION_
75
90
  type AIFeedbackSubmittedAEP = TrackAEP<ACTION.SUBMITTED, ACTION_SUBJECT.AI_FEEDBACK, ACTION_SUBJECT_ID.EDITOR_PLUGIN_AI, AIUnifiedCommonAttributes & AIUnifiedAgentAttributes & {
76
91
  aiFeedbackResult: 'up' | 'down';
77
92
  }, undefined>;
78
- export type AIUnifiedEventPayload = AIInteractionInitiatedAEP | AIResultViewedAEP | AIResultErrorAEP | AIInteractionDismissedAEP | AIResultActionedAEP | AIFeedbackSubmittedAEP | AIInteractionDiscardedAEP;
93
+ export type AIUnifiedEventPayload = AIInteractionInitiatedAEP | AIResultViewedAEP | AIResultErrorAEP | AIInteractionDismissedAEP | AIResultActionedAEP | AIResultAdoptedEventPayload | AIFeedbackSubmittedAEP | AIInteractionDiscardedAEP;
79
94
  export {};
@@ -8,6 +8,7 @@ export declare enum ACTION {
8
8
  ACTIONED = "actioned",
9
9
  ACTIVATED = "activated",
10
10
  ADDED = "added",
11
+ ADOPTED = "adopted",
11
12
  API_ERROR = "apiError",
12
13
  API_RECEIVED = "apiReceived",
13
14
  API_PURGED = "apiPurged",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "133.4.0",
3
+ "version": "133.5.0",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,7 +31,7 @@
31
31
  "@atlaskit/activity-provider": "^3.1.0",
32
32
  "@atlaskit/adf-schema": "^57.7.0",
33
33
  "@atlaskit/adf-utils": "^20.9.0",
34
- "@atlaskit/afm-i18n-platform-editor-editor-common": "2.270.0",
34
+ "@atlaskit/afm-i18n-platform-editor-editor-common": "2.287.0",
35
35
  "@atlaskit/analytics-listeners": "^11.4.0",
36
36
  "@atlaskit/analytics-namespaced-context": "^8.2.0",
37
37
  "@atlaskit/analytics-next": "^12.6.0",
@@ -50,7 +50,7 @@
50
50
  "@atlaskit/editor-toolbar": "^2.8.0",
51
51
  "@atlaskit/editor-toolbar-model": "^1.2.0",
52
52
  "@atlaskit/editor-ui-control-model": "^2.10.0",
53
- "@atlaskit/emoji": "^73.0.0",
53
+ "@atlaskit/emoji": "^73.1.0",
54
54
  "@atlaskit/feature-gate-js-client": "^7.0.0",
55
55
  "@atlaskit/icon": "^38.0.0",
56
56
  "@atlaskit/link": "^5.1.0",
@@ -63,9 +63,9 @@
63
63
  "@atlaskit/media-common": "^14.7.0",
64
64
  "@atlaskit/media-file-preview": "^2.0.0",
65
65
  "@atlaskit/media-picker": "^73.2.0",
66
- "@atlaskit/media-ui": "^31.4.0",
66
+ "@atlaskit/media-ui": "^31.5.0",
67
67
  "@atlaskit/media-viewer": "^54.11.0",
68
- "@atlaskit/mention": "^30.3.0",
68
+ "@atlaskit/mention": "^30.4.0",
69
69
  "@atlaskit/menu": "^11.0.0",
70
70
  "@atlaskit/object": "^2.3.0",
71
71
  "@atlaskit/onboarding": "^15.4.0",
@@ -82,11 +82,11 @@
82
82
  "@atlaskit/smart-card": "^46.7.0",
83
83
  "@atlaskit/smart-user-picker": "^12.5.0",
84
84
  "@atlaskit/spinner": "^20.4.0",
85
- "@atlaskit/task-decision": "^21.12.0",
85
+ "@atlaskit/task-decision": "^21.13.0",
86
86
  "@atlaskit/teams-app-config": "^3.1.0",
87
87
  "@atlaskit/textfield": "^10.2.0",
88
- "@atlaskit/tmp-editor-statsig": "^244.0.0",
89
- "@atlaskit/tokens": "^20.6.0",
88
+ "@atlaskit/tmp-editor-statsig": "^245.0.0",
89
+ "@atlaskit/tokens": "^20.7.0",
90
90
  "@atlaskit/tooltip": "^24.4.0",
91
91
  "@atlaskit/width-detector": "^7.2.0",
92
92
  "@babel/runtime": "^7.0.0",