@atlaskit/editor-common 117.4.0 → 117.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,22 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 117.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`6a903b76356c6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6a903b76356c6) -
8
+ Provision the OOTB Content Reviewer agent and route the suggested edits review prompt at it,
9
+ behind `content_reviewer_agent`. When the agent cannot be resolved the thinking session is
10
+ completed instead of sending the prompt. Adds `agentProvisioning` and
11
+ `agentExternalConfigReference` reasons to the suggested edits conversation error event, and a
12
+ `contentReviewAgentPrompt` message for the agent-handled review prompt.
13
+
14
+ ## 117.4.1
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 117.4.0
4
21
 
5
22
  ### Minor Changes
@@ -16,6 +16,11 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
16
16
  defaultMessage: 'Review my content with ',
17
17
  description: 'Localised text that precedes the suggest-edits skill tag in the prompt sent to the AI service. The trailing space is intentional — it separates this text from the skill tag that follows. Localise it in a way where the prompt ends with the skill tag. (With the skill tag it will look like e.g. "Review my content with /suggest-edits")'
18
18
  },
19
+ contentReviewAgentPrompt: {
20
+ id: 'fabric.editor.ai.suggestions.contentReviewAgentPrompt.non-final',
21
+ defaultMessage: 'Review my content and suggest improvements',
22
+ description: 'The whole prompt sent to the AI service when the review is handled by the Content Reviewer agent. The agent already knows how to produce suggestions, so unlike suggestEditsPromptPrefix this is plain text with no skill tag appended.'
23
+ },
19
24
  suggestionsToolbarButtonLabel: {
20
25
  id: 'fabric.editor.ai.suggestions.toolbarButton.label.non-final',
21
26
  defaultMessage: 'Suggestions',
@@ -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 = "117.3.0";
31
+ var packageVersion = "117.4.1";
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 = "117.3.0";
27
+ var packageVersion = "117.4.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -10,6 +10,11 @@ export const aiSuggestionsMessages = defineMessages({
10
10
  defaultMessage: 'Review my content with ',
11
11
  description: 'Localised text that precedes the suggest-edits skill tag in the prompt sent to the AI service. The trailing space is intentional — it separates this text from the skill tag that follows. Localise it in a way where the prompt ends with the skill tag. (With the skill tag it will look like e.g. "Review my content with /suggest-edits")'
12
12
  },
13
+ contentReviewAgentPrompt: {
14
+ id: 'fabric.editor.ai.suggestions.contentReviewAgentPrompt.non-final',
15
+ defaultMessage: 'Review my content and suggest improvements',
16
+ description: 'The whole prompt sent to the AI service when the review is handled by the Content Reviewer agent. The agent already knows how to produce suggestions, so unlike suggestEditsPromptPrefix this is plain text with no skill tag appended.'
17
+ },
13
18
  suggestionsToolbarButtonLabel: {
14
19
  id: 'fabric.editor.ai.suggestions.toolbarButton.label.non-final',
15
20
  defaultMessage: 'Suggestions',
@@ -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 = "117.3.0";
17
+ const packageVersion = "117.4.1";
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 = "117.3.0";
17
+ const packageVersion = "117.4.1";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -10,6 +10,11 @@ export var aiSuggestionsMessages = defineMessages({
10
10
  defaultMessage: 'Review my content with ',
11
11
  description: 'Localised text that precedes the suggest-edits skill tag in the prompt sent to the AI service. The trailing space is intentional — it separates this text from the skill tag that follows. Localise it in a way where the prompt ends with the skill tag. (With the skill tag it will look like e.g. "Review my content with /suggest-edits")'
12
12
  },
13
+ contentReviewAgentPrompt: {
14
+ id: 'fabric.editor.ai.suggestions.contentReviewAgentPrompt.non-final',
15
+ defaultMessage: 'Review my content and suggest improvements',
16
+ description: 'The whole prompt sent to the AI service when the review is handled by the Content Reviewer agent. The agent already knows how to produce suggestions, so unlike suggestEditsPromptPrefix this is plain text with no skill tag appended.'
17
+ },
13
18
  suggestionsToolbarButtonLabel: {
14
19
  id: 'fabric.editor.ai.suggestions.toolbarButton.label.non-final',
15
20
  defaultMessage: 'Suggestions',
@@ -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 = "117.3.0";
23
+ var packageVersion = "117.4.1";
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 = "117.3.0";
24
+ var packageVersion = "117.4.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -129,6 +129,11 @@ export declare const aiSuggestionsMessages: {
129
129
  description: string;
130
130
  id: string;
131
131
  };
132
+ contentReviewAgentPrompt: {
133
+ defaultMessage: string;
134
+ description: string;
135
+ id: string;
136
+ };
132
137
  fetchSuggestionsButtonLabel: {
133
138
  defaultMessage: string;
134
139
  description: string;
@@ -9,7 +9,7 @@ export type AiSuggestionsEntryPoint = 'primaryToolbar' | 'commentsEmptyState' |
9
9
  */
10
10
  | 'suggestionsPanelMount';
11
11
  export type AiSuggestionInteractionPoint = 'sidebar' | 'card' | 'statusBar';
12
- export type AiSuggestionsConversationErrorReason = 'agentDeactivated' | 'conversationSetup' | 'streamError';
12
+ export type AiSuggestionsConversationErrorReason = 'agentDeactivated' | 'agentProvisioning' | 'agentExternalConfigReference' | 'conversationSetup' | 'streamError';
13
13
  type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
14
14
  suggestionType: string;
15
15
  toolCalls: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "117.4.0",
3
+ "version": "117.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/"
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/codemod-utils": "^5.0.0",
42
42
  "@atlaskit/css": "^1.0.0",
43
43
  "@atlaskit/custom-steps": "^1.0.0",
44
- "@atlaskit/dropdown-menu": "^17.2.0",
44
+ "@atlaskit/dropdown-menu": "^18.0.0",
45
45
  "@atlaskit/editor-json-transformer": "^9.2.0",
46
46
  "@atlaskit/editor-palette": "^3.4.0",
47
47
  "@atlaskit/editor-prosemirror": "^8.0.0",
@@ -64,7 +64,7 @@
64
64
  "@atlaskit/media-ui": "^30.11.0",
65
65
  "@atlaskit/media-viewer": "^54.5.0",
66
66
  "@atlaskit/mention": "^27.12.0",
67
- "@atlaskit/menu": "^9.2.0",
67
+ "@atlaskit/menu": "^10.0.0",
68
68
  "@atlaskit/object": "^2.2.0",
69
69
  "@atlaskit/onboarding": "^15.1.0",
70
70
  "@atlaskit/platform-feature-experiments": "^0.3.0",
@@ -83,10 +83,10 @@
83
83
  "@atlaskit/task-decision": "^21.8.0",
84
84
  "@atlaskit/teams-app-config": "^2.2.0",
85
85
  "@atlaskit/textfield": "^10.0.0",
86
- "@atlaskit/tmp-editor-statsig": "^141.1.0",
86
+ "@atlaskit/tmp-editor-statsig": "^142.0.0",
87
87
  "@atlaskit/tokens": "^16.4.0",
88
88
  "@atlaskit/tooltip": "^24.0.0",
89
- "@atlaskit/width-detector": "^6.2.0",
89
+ "@atlaskit/width-detector": "^7.0.0",
90
90
  "@babel/runtime": "^7.0.0",
91
91
  "@compiled/react": "^1.0.0",
92
92
  "@emotion/react": "^11.7.1",