@atlaskit/editor-common 116.35.2 → 116.36.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,41 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 116.36.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`9bc8210219bd6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9bc8210219bd6) -
8
+ [EDITOR-8148] Add Good/Bad suggestion (thumbs up/down) feedback controls to the inline
9
+ suggested-edits card (via a 3-dot overflow menu) and to the suggestions tab in the object sidebar.
10
+ Wires them to a new placeholder submitSuggestionFeedback editor action.
11
+ - [`895ac23f1a3be`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/895ac23f1a3be) -
12
+ Agent edit presence: surface agent-authored collaborative edits to other users.
13
+ - `collab-provider` detects agent-authored remote steps (`agentType`/`agentId`) and registers a
14
+ synthetic agent participant in the AI-provider (`agent:`) partition so the agent appears in
15
+ presence, with a 30s sliding inactivity window (CCI-18030). `editor-common` gains optional
16
+ `agentId`/`agentType` on the collab step types.
17
+ - `editor-plugin-collab-edit` + `editor-core` add the in-editor shimmer (CCI-18033): when an
18
+ agent-authored step lands, the top-level block(s) it touched are covered by a skeleton-loader
19
+ shimmer (grey skeleton with a moving highlight) with a Rovo agent telepointer/cursor — labelled
20
+ with the agent's type — at the end of the range, then removed on a timer to reveal the content.
21
+ Gated behind the default-OFF `platform_editor_agent_be_streaming` experiment; the `durationMs`
22
+ dynamic-config param controls how long the shimmer stays (0 disables it) and
23
+ `telepointerDisabled` hides the telepointer. `tmp-editor-statsig` registers the experiment.
24
+ - `ratcheting` excludes the new `agentShimmerStyles.ts` from the "No unsafe typography" rule (the
25
+ agent telepointer label mirrors the existing AI in-editor telepointer's sub-token 10px/9px
26
+ sizing, matching its already-excluded Compiled counterpart).
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies
31
+
32
+ ## 116.35.3
33
+
34
+ ### Patch Changes
35
+
36
+ - [`c5a6973a90849`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c5a6973a90849) -
37
+ Revert the multi-bodied extension empty frame placeholder.
38
+
3
39
  ## 116.35.2
4
40
 
5
41
  ### 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',
@@ -50,10 +50,5 @@ var placeholderTextMessages = exports.placeholderTextMessages = (0, _reactIntl.d
50
50
  id: 'fabric.editor.sourceSyncBlockPlaceholderText',
51
51
  defaultMessage: 'Add content you want to reuse. Copy and paste this block to sync in other locations.',
52
52
  description: 'Placeholder text shown inside an empty source sync block, prompting users to add reusable content that can be synced across multiple locations.'
53
- },
54
- multiBodiedExtensionPlaceholderText: {
55
- id: 'fabric.editor.multiBodiedExtensionPlaceholderText',
56
- defaultMessage: 'Type to add content or press / to insert elements',
57
- description: 'Placeholder text shown inside an empty multi bodied extension frame, prompting users to type content or use slash insert.'
58
53
  }
59
54
  });
@@ -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.1";
31
+ var packageVersion = "116.35.3";
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.1";
27
+ var packageVersion = "116.35.3";
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',
@@ -44,10 +44,5 @@ export const placeholderTextMessages = defineMessages({
44
44
  id: 'fabric.editor.sourceSyncBlockPlaceholderText',
45
45
  defaultMessage: 'Add content you want to reuse. Copy and paste this block to sync in other locations.',
46
46
  description: 'Placeholder text shown inside an empty source sync block, prompting users to add reusable content that can be synced across multiple locations.'
47
- },
48
- multiBodiedExtensionPlaceholderText: {
49
- id: 'fabric.editor.multiBodiedExtensionPlaceholderText',
50
- defaultMessage: 'Type to add content or press / to insert elements',
51
- description: 'Placeholder text shown inside an empty multi bodied extension frame, prompting users to type content or use slash insert.'
52
47
  }
53
48
  });
@@ -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.1";
17
+ const packageVersion = "116.35.3";
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.1";
17
+ const packageVersion = "116.35.3";
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',
@@ -44,10 +44,5 @@ export var placeholderTextMessages = defineMessages({
44
44
  id: 'fabric.editor.sourceSyncBlockPlaceholderText',
45
45
  defaultMessage: 'Add content you want to reuse. Copy and paste this block to sync in other locations.',
46
46
  description: 'Placeholder text shown inside an empty source sync block, prompting users to add reusable content that can be synced across multiple locations.'
47
- },
48
- multiBodiedExtensionPlaceholderText: {
49
- id: 'fabric.editor.multiBodiedExtensionPlaceholderText',
50
- defaultMessage: 'Type to add content or press / to insert elements',
51
- description: 'Placeholder text shown inside an empty multi bodied extension frame, prompting users to type content or use slash insert.'
52
47
  }
53
48
  });
@@ -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.1";
23
+ var packageVersion = "116.35.3";
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.1";
24
+ var packageVersion = "116.35.3";
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;
@@ -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;
@@ -1,52 +1,47 @@
1
1
  export declare const placeholderTextMessages: {
2
- longEmptyNodePlaceholderADFPrefix: {
3
- defaultMessage: string;
4
- description: string;
2
+ placeholderTextPlaceholder: {
5
3
  id: string;
6
- };
7
- longEmptyNodePlaceholderADFSlashShortcut: {
8
4
  defaultMessage: string;
9
5
  description: string;
10
- id: string;
11
6
  };
12
- longEmptyNodePlaceholderADFSuffix: {
7
+ shortEmptyNodePlaceholderText: {
8
+ id: string;
13
9
  defaultMessage: string;
14
10
  description: string;
15
- id: string;
16
11
  };
17
- longEmptyNodePlaceholderText: {
12
+ shortEmptyNodePlaceholderADFSlashShortcut: {
13
+ id: string;
18
14
  defaultMessage: string;
19
15
  description: string;
20
- id: string;
21
16
  };
22
- multiBodiedExtensionPlaceholderText: {
17
+ shortEmptyNodePlaceholderADFSuffix: {
18
+ id: string;
23
19
  defaultMessage: string;
24
20
  description: string;
25
- id: string;
26
21
  };
27
- placeholderTextPlaceholder: {
22
+ longEmptyNodePlaceholderText: {
23
+ id: string;
28
24
  defaultMessage: string;
29
25
  description: string;
30
- id: string;
31
26
  };
32
- shortEmptyNodePlaceholderADFSlashShortcut: {
27
+ longEmptyNodePlaceholderADFPrefix: {
28
+ id: string;
33
29
  defaultMessage: string;
34
30
  description: string;
35
- id: string;
36
31
  };
37
- shortEmptyNodePlaceholderADFSuffix: {
32
+ longEmptyNodePlaceholderADFSlashShortcut: {
33
+ id: string;
38
34
  defaultMessage: string;
39
35
  description: string;
40
- id: string;
41
36
  };
42
- shortEmptyNodePlaceholderText: {
37
+ longEmptyNodePlaceholderADFSuffix: {
38
+ id: string;
43
39
  defaultMessage: string;
44
40
  description: string;
45
- id: string;
46
41
  };
47
42
  sourceSyncBlockPlaceholderText: {
43
+ id: string;
48
44
  defaultMessage: string;
49
45
  description: string;
50
- id: string;
51
46
  };
52
47
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "116.35.2",
3
+ "version": "116.36.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/"
@@ -49,7 +49,7 @@
49
49
  "@atlaskit/editor-tables": "^3.0.0",
50
50
  "@atlaskit/editor-toolbar": "^2.3.0",
51
51
  "@atlaskit/editor-toolbar-model": "^1.1.0",
52
- "@atlaskit/emoji": "^71.11.0",
52
+ "@atlaskit/emoji": "^71.12.0",
53
53
  "@atlaskit/icon": "^37.1.0",
54
54
  "@atlaskit/link": "^4.3.0",
55
55
  "@atlaskit/link-datasource": "^6.1.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.0.0",
84
- "@atlaskit/tokens": "^16.2.0",
83
+ "@atlaskit/tmp-editor-statsig": "^132.3.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",