@atlaskit/editor-common 116.35.3 → 116.37.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,45 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 116.37.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`1b0cf83f256d1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1b0cf83f256d1) -
8
+ [EDITOR-7992] Add sources card to suggestion card
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 116.36.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`9bc8210219bd6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9bc8210219bd6) -
19
+ [EDITOR-8148] Add Good/Bad suggestion (thumbs up/down) feedback controls to the inline
20
+ suggested-edits card (via a 3-dot overflow menu) and to the suggestions tab in the object sidebar.
21
+ Wires them to a new placeholder submitSuggestionFeedback editor action.
22
+ - [`895ac23f1a3be`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/895ac23f1a3be) -
23
+ Agent edit presence: surface agent-authored collaborative edits to other users.
24
+ - `collab-provider` detects agent-authored remote steps (`agentType`/`agentId`) and registers a
25
+ synthetic agent participant in the AI-provider (`agent:`) partition so the agent appears in
26
+ presence, with a 30s sliding inactivity window (CCI-18030). `editor-common` gains optional
27
+ `agentId`/`agentType` on the collab step types.
28
+ - `editor-plugin-collab-edit` + `editor-core` add the in-editor shimmer (CCI-18033): when an
29
+ agent-authored step lands, the top-level block(s) it touched are covered by a skeleton-loader
30
+ shimmer (grey skeleton with a moving highlight) with a Rovo agent telepointer/cursor — labelled
31
+ with the agent's type — at the end of the range, then removed on a timer to reveal the content.
32
+ Gated behind the default-OFF `platform_editor_agent_be_streaming` experiment; the `durationMs`
33
+ dynamic-config param controls how long the shimmer stays (0 disables it) and
34
+ `telepointerDisabled` hides the telepointer. `tmp-editor-statsig` registers the experiment.
35
+ - `ratcheting` excludes the new `agentShimmerStyles.ts` from the "No unsafe typography" rule (the
36
+ agent telepointer label mirrors the existing AI in-editor telepointer's sub-token 10px/9px
37
+ sizing, matching its already-excluded Compiled counterpart).
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies
42
+
3
43
  ## 116.35.3
4
44
 
5
45
  ### Patch Changes
@@ -171,6 +171,16 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
171
171
  defaultMessage: 'More options',
172
172
  description: 'Label for the overflow actions button on the AI suggestions card'
173
173
  },
174
+ cardGoodSuggestionLabel: {
175
+ id: 'fabric.editor.ai.suggestions.card.goodSuggestionLabel.non-final',
176
+ defaultMessage: 'Good suggestion',
177
+ description: 'Label for the overflow menu item / button that submits positive (thumbs up) feedback on an AI suggestion'
178
+ },
179
+ cardBadSuggestionLabel: {
180
+ id: 'fabric.editor.ai.suggestions.card.badSuggestionLabel.non-final',
181
+ defaultMessage: 'Bad suggestion',
182
+ description: 'Label for the overflow menu item / button that submits negative (thumbs down) feedback on an AI suggestion'
183
+ },
174
184
  cardOnlyShowSuggestionOptionLabel: {
175
185
  id: 'fabric.editor.ai.suggestions.card.onlyShowSuggestionOptionLabel.non-final',
176
186
  defaultMessage: 'Only show suggestion',
@@ -245,5 +255,10 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
245
255
  id: 'fabric.editor.ai.suggestions.thinkingComplete.close.non-final',
246
256
  defaultMessage: 'Close',
247
257
  description: 'Accessible label for the close button on the thinking complete bar'
258
+ },
259
+ sourceLabel: {
260
+ id: 'fabric.editor.ai.suggestions.sourceLabel.non-final',
261
+ defaultMessage: 'Source',
262
+ description: 'Label for the sources section on the AI suggestions card'
248
263
  }
249
264
  });
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
28
28
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
29
29
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
30
30
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
31
- var packageVersion = "116.35.2";
31
+ var packageVersion = "116.36.0";
32
32
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
33
33
  // Remove URL as it has UGC
34
34
  // 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 = "116.35.2";
27
+ var packageVersion = "116.36.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -165,6 +165,16 @@ export const aiSuggestionsMessages = defineMessages({
165
165
  defaultMessage: 'More options',
166
166
  description: 'Label for the overflow actions button on the AI suggestions card'
167
167
  },
168
+ cardGoodSuggestionLabel: {
169
+ id: 'fabric.editor.ai.suggestions.card.goodSuggestionLabel.non-final',
170
+ defaultMessage: 'Good suggestion',
171
+ description: 'Label for the overflow menu item / button that submits positive (thumbs up) feedback on an AI suggestion'
172
+ },
173
+ cardBadSuggestionLabel: {
174
+ id: 'fabric.editor.ai.suggestions.card.badSuggestionLabel.non-final',
175
+ defaultMessage: 'Bad suggestion',
176
+ description: 'Label for the overflow menu item / button that submits negative (thumbs down) feedback on an AI suggestion'
177
+ },
168
178
  cardOnlyShowSuggestionOptionLabel: {
169
179
  id: 'fabric.editor.ai.suggestions.card.onlyShowSuggestionOptionLabel.non-final',
170
180
  defaultMessage: 'Only show suggestion',
@@ -239,5 +249,10 @@ export const aiSuggestionsMessages = defineMessages({
239
249
  id: 'fabric.editor.ai.suggestions.thinkingComplete.close.non-final',
240
250
  defaultMessage: 'Close',
241
251
  description: 'Accessible label for the close button on the thinking complete bar'
252
+ },
253
+ sourceLabel: {
254
+ id: 'fabric.editor.ai.suggestions.sourceLabel.non-final',
255
+ defaultMessage: 'Source',
256
+ description: 'Label for the sources section on the AI suggestions card'
242
257
  }
243
258
  });
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
14
14
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
15
15
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
16
16
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
17
- const packageVersion = "116.35.2";
17
+ const packageVersion = "116.36.0";
18
18
  const sanitiseSentryEvents = (data, _hint) => {
19
19
  // Remove URL as it has UGC
20
20
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "116.35.2";
17
+ const packageVersion = "116.36.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -165,6 +165,16 @@ export var aiSuggestionsMessages = defineMessages({
165
165
  defaultMessage: 'More options',
166
166
  description: 'Label for the overflow actions button on the AI suggestions card'
167
167
  },
168
+ cardGoodSuggestionLabel: {
169
+ id: 'fabric.editor.ai.suggestions.card.goodSuggestionLabel.non-final',
170
+ defaultMessage: 'Good suggestion',
171
+ description: 'Label for the overflow menu item / button that submits positive (thumbs up) feedback on an AI suggestion'
172
+ },
173
+ cardBadSuggestionLabel: {
174
+ id: 'fabric.editor.ai.suggestions.card.badSuggestionLabel.non-final',
175
+ defaultMessage: 'Bad suggestion',
176
+ description: 'Label for the overflow menu item / button that submits negative (thumbs down) feedback on an AI suggestion'
177
+ },
168
178
  cardOnlyShowSuggestionOptionLabel: {
169
179
  id: 'fabric.editor.ai.suggestions.card.onlyShowSuggestionOptionLabel.non-final',
170
180
  defaultMessage: 'Only show suggestion',
@@ -239,5 +249,10 @@ export var aiSuggestionsMessages = defineMessages({
239
249
  id: 'fabric.editor.ai.suggestions.thinkingComplete.close.non-final',
240
250
  defaultMessage: 'Close',
241
251
  description: 'Accessible label for the close button on the thinking complete bar'
252
+ },
253
+ sourceLabel: {
254
+ id: 'fabric.editor.ai.suggestions.sourceLabel.non-final',
255
+ defaultMessage: 'Source',
256
+ description: 'Label for the sources section on the AI suggestions card'
242
257
  }
243
258
  });
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
20
20
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
21
21
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
22
22
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
23
- var packageVersion = "116.35.2";
23
+ var packageVersion = "116.36.0";
24
24
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
25
25
  // Remove URL as it has UGC
26
26
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "116.35.2";
24
+ var packageVersion = "116.36.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -9,6 +9,11 @@ export declare const aiSuggestionsMessages: {
9
9
  description: string;
10
10
  id: string;
11
11
  };
12
+ cardBadSuggestionLabel: {
13
+ defaultMessage: string;
14
+ description: string;
15
+ id: string;
16
+ };
12
17
  cardCloseButtonLabel: {
13
18
  defaultMessage: string;
14
19
  description: string;
@@ -44,6 +49,11 @@ export declare const aiSuggestionsMessages: {
44
49
  description: string;
45
50
  id: string;
46
51
  };
52
+ cardGoodSuggestionLabel: {
53
+ defaultMessage: string;
54
+ description: string;
55
+ id: string;
56
+ };
47
57
  cardHideDeletedDiffsLabel: {
48
58
  defaultMessage: string;
49
59
  description: string;
@@ -139,6 +149,11 @@ export declare const aiSuggestionsMessages: {
139
149
  description: string;
140
150
  id: string;
141
151
  };
152
+ sourceLabel: {
153
+ defaultMessage: string;
154
+ description: string;
155
+ id: string;
156
+ };
142
157
  suggestEditsButtonLabel: {
143
158
  defaultMessage: string;
144
159
  description: string;
@@ -42,5 +42,11 @@ type ViewSuggestionAEP = TrackAEP<ACTION.VIEWED, ACTION_SUBJECT.AI_SUGGESTIONS,
42
42
  suggestionCardCharacterCount: number;
43
43
  suggestionType: string;
44
44
  }, undefined>;
45
- export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | EntryPointClickedAEP | EntryPointExposureAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | DismissSuggestionAEP | ViewSuggestionAEP;
45
+ export type SuggestionFeedbackSentiment = 'good' | 'bad';
46
+ type SubmitFeedbackSuggestionAEP = TrackAEP<ACTION.SUBMITTED, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
47
+ interactionPoint: AiSuggestionInteractionPoint;
48
+ sentiment: SuggestionFeedbackSentiment;
49
+ suggestionType: string;
50
+ }, undefined>;
51
+ export type AiSuggestionsEventPayload = NoDiffSuggestionAEP | EntryPointClickedAEP | EntryPointExposureAEP | AcceptSuggestionAEP | DiscardSuggestionAEP | DismissSuggestionAEP | ViewSuggestionAEP | SubmitFeedbackSuggestionAEP;
46
52
  export {};
@@ -288,6 +288,8 @@ export interface StepMetadata {
288
288
  };
289
289
  }
290
290
  export interface BaseStepPM extends StepMetadata {
291
+ agentId?: string;
292
+ agentType?: string;
291
293
  clientId: number | string;
292
294
  from?: number;
293
295
  slice?: SliceJson;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "116.35.3",
3
+ "version": "116.37.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/"
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/emoji": "^71.12.0",
53
53
  "@atlaskit/icon": "^37.1.0",
54
54
  "@atlaskit/link": "^4.3.0",
55
- "@atlaskit/link-datasource": "^6.1.0",
55
+ "@atlaskit/link-datasource": "^6.2.0",
56
56
  "@atlaskit/link-picker": "^6.2.0",
57
57
  "@atlaskit/media-card": "^81.4.0",
58
58
  "@atlaskit/media-client": "^37.2.0",
@@ -69,19 +69,19 @@
69
69
  "@atlaskit/platform-feature-flags": "^2.1.0",
70
70
  "@atlaskit/platform-feature-flags-react": "^1.1.0",
71
71
  "@atlaskit/primitives": "^22.1.0",
72
- "@atlaskit/profilecard": "^26.12.0",
72
+ "@atlaskit/profilecard": "^26.13.0",
73
73
  "@atlaskit/prosemirror-history": "^1.0.0",
74
74
  "@atlaskit/react-compiler-gating": "^0.2.0",
75
75
  "@atlaskit/react-ufo": "^7.3.0",
76
76
  "@atlaskit/section-message": "^9.2.0",
77
- "@atlaskit/smart-card": "^45.11.0",
77
+ "@atlaskit/smart-card": "^45.12.0",
78
78
  "@atlaskit/smart-user-picker": "^11.1.0",
79
79
  "@atlaskit/spinner": "^20.1.0",
80
80
  "@atlaskit/task-decision": "^21.6.0",
81
81
  "@atlaskit/teams-app-config": "^2.1.0",
82
82
  "@atlaskit/textfield": "^9.1.0",
83
- "@atlaskit/tmp-editor-statsig": "^132.2.0",
84
- "@atlaskit/tokens": "^16.2.0",
83
+ "@atlaskit/tmp-editor-statsig": "^132.4.0",
84
+ "@atlaskit/tokens": "^16.3.0",
85
85
  "@atlaskit/tooltip": "^23.1.0",
86
86
  "@atlaskit/width-detector": "^6.2.0",
87
87
  "@babel/runtime": "^7.0.0",