@atlaskit/editor-common 118.0.0 → 118.1.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,13 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 118.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`af5849612f2a8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/af5849612f2a8) -
8
+ [ux] Add a follow-up card that replaces a suggestion card, in the same anchored position, once its
9
+ suggestion is removed (accepted / discarded / dismissed).
10
+
3
11
  ## 118.0.0
4
12
 
5
13
  ### Major Changes
@@ -76,6 +76,21 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
76
76
  defaultMessage: 'Loading…',
77
77
  description: 'Label for the fetch suggestions button when loading'
78
78
  },
79
+ followUpCardTitle: {
80
+ id: 'fabric.editor.ai.suggestions.followUpCard.title.non-final',
81
+ defaultMessage: 'Review the rest?',
82
+ description: 'Title of the card shown in place of the AI suggestion card once the last suggestion has been actioned, offering to review the rest of the page'
83
+ },
84
+ followUpCardDescription: {
85
+ id: 'fabric.editor.ai.suggestions.followUpCard.description.non-final',
86
+ defaultMessage: 'Generate suggestions to improve the rest of your content.',
87
+ description: 'Body text of the card shown in place of the AI suggestion card once the last suggestion has been actioned'
88
+ },
89
+ followUpCardReviewButtonLabel: {
90
+ id: 'fabric.editor.ai.suggestions.followUpCard.reviewButtonLabel.non-final',
91
+ defaultMessage: 'Review',
92
+ description: 'Label for the review button on the card shown once the last AI suggestion has been actioned, which generates suggestions for the rest of the page'
93
+ },
79
94
  iconButtonSuggestionsCountLabel: {
80
95
  id: 'fabric.editor.ai.suggestions.iconButton.suggestionsCountLabel.non-final',
81
96
  defaultMessage: '{count} 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.6.0";
31
+ var packageVersion = "118.0.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 = "117.6.0";
27
+ var packageVersion = "118.0.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -70,6 +70,21 @@ export const aiSuggestionsMessages = defineMessages({
70
70
  defaultMessage: 'Loading…',
71
71
  description: 'Label for the fetch suggestions button when loading'
72
72
  },
73
+ followUpCardTitle: {
74
+ id: 'fabric.editor.ai.suggestions.followUpCard.title.non-final',
75
+ defaultMessage: 'Review the rest?',
76
+ description: 'Title of the card shown in place of the AI suggestion card once the last suggestion has been actioned, offering to review the rest of the page'
77
+ },
78
+ followUpCardDescription: {
79
+ id: 'fabric.editor.ai.suggestions.followUpCard.description.non-final',
80
+ defaultMessage: 'Generate suggestions to improve the rest of your content.',
81
+ description: 'Body text of the card shown in place of the AI suggestion card once the last suggestion has been actioned'
82
+ },
83
+ followUpCardReviewButtonLabel: {
84
+ id: 'fabric.editor.ai.suggestions.followUpCard.reviewButtonLabel.non-final',
85
+ defaultMessage: 'Review',
86
+ description: 'Label for the review button on the card shown once the last AI suggestion has been actioned, which generates suggestions for the rest of the page'
87
+ },
73
88
  iconButtonSuggestionsCountLabel: {
74
89
  id: 'fabric.editor.ai.suggestions.iconButton.suggestionsCountLabel.non-final',
75
90
  defaultMessage: '{count} 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.6.0";
17
+ const packageVersion = "118.0.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 = "117.6.0";
17
+ const packageVersion = "118.0.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -70,6 +70,21 @@ export var aiSuggestionsMessages = defineMessages({
70
70
  defaultMessage: 'Loading…',
71
71
  description: 'Label for the fetch suggestions button when loading'
72
72
  },
73
+ followUpCardTitle: {
74
+ id: 'fabric.editor.ai.suggestions.followUpCard.title.non-final',
75
+ defaultMessage: 'Review the rest?',
76
+ description: 'Title of the card shown in place of the AI suggestion card once the last suggestion has been actioned, offering to review the rest of the page'
77
+ },
78
+ followUpCardDescription: {
79
+ id: 'fabric.editor.ai.suggestions.followUpCard.description.non-final',
80
+ defaultMessage: 'Generate suggestions to improve the rest of your content.',
81
+ description: 'Body text of the card shown in place of the AI suggestion card once the last suggestion has been actioned'
82
+ },
83
+ followUpCardReviewButtonLabel: {
84
+ id: 'fabric.editor.ai.suggestions.followUpCard.reviewButtonLabel.non-final',
85
+ defaultMessage: 'Review',
86
+ description: 'Label for the review button on the card shown once the last AI suggestion has been actioned, which generates suggestions for the rest of the page'
87
+ },
73
88
  iconButtonSuggestionsCountLabel: {
74
89
  id: 'fabric.editor.ai.suggestions.iconButton.suggestionsCountLabel.non-final',
75
90
  defaultMessage: '{count} 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.6.0";
23
+ var packageVersion = "118.0.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 = "117.6.0";
24
+ var packageVersion = "118.0.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -144,6 +144,21 @@ export declare const aiSuggestionsMessages: {
144
144
  description: string;
145
145
  id: string;
146
146
  };
147
+ followUpCardDescription: {
148
+ defaultMessage: string;
149
+ description: string;
150
+ id: string;
151
+ };
152
+ followUpCardReviewButtonLabel: {
153
+ defaultMessage: string;
154
+ description: string;
155
+ id: string;
156
+ };
157
+ followUpCardTitle: {
158
+ defaultMessage: string;
159
+ description: string;
160
+ id: string;
161
+ };
147
162
  iconButtonSuggestionsCountLabel: {
148
163
  defaultMessage: string;
149
164
  description: string;
@@ -7,7 +7,12 @@ export type AiSuggestionsEntryPoint = 'primaryToolbar' | 'commentsEmptyState' |
7
7
  * `commentsEmptyState` (the "Review" button in that empty state) so the two
8
8
  * can be told apart in analytics.
9
9
  */
10
- | 'suggestionsPanelMount';
10
+ | 'suggestionsPanelMount'
11
+ /**
12
+ * The "Review" button on the follow-up card shown in place of the suggestion card
13
+ * once the last inline comment suggestion has been actioned.
14
+ */
15
+ | 'followUpCard';
11
16
  export type AiSuggestionInteractionPoint = 'sidebar' | 'card' | 'statusBar';
12
17
  export type AiSuggestionsConversationErrorReason = 'agentDeactivated' | 'agentProvisioning' | 'agentExternalConfigReference' | 'conversationSetup' | 'streamError';
13
18
  type NoDiffSuggestionAEP = OperationalAEP<ACTION.NO_DIFF_FOUND, ACTION_SUBJECT.AI_SUGGESTIONS, undefined, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "118.0.0",
3
+ "version": "118.1.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/"