@atlaskit/editor-common 116.49.0 → 116.50.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,14 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 116.50.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`8486dde3836bd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8486dde3836bd) -
8
+ EDITOR-7135: Regenerate card(s) on select if hashes differ
9
+ - [`593c9e5107498`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/593c9e5107498) -
10
+ extended AiSuggestionsEntryPoint type to include 'objectSidebarControl'
11
+
3
12
  ## 116.49.0
4
13
 
5
14
  ### Minor Changes
@@ -151,6 +151,21 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
151
151
  defaultMessage: 'Accept',
152
152
  description: 'Label for the accept button on the AI suggestions card'
153
153
  },
154
+ cardStaleBannerLabel: {
155
+ id: 'fabric.editor.ai.suggestions.card.staleBannerLabel.non-final',
156
+ defaultMessage: 'This suggestion is outdated.',
157
+ description: 'Banner shown at the top of the AI suggestions card when the suggestion is out of date (stale)'
158
+ },
159
+ cardRegeneratingBannerLabel: {
160
+ id: 'fabric.editor.ai.suggestions.card.regeneratingBannerLabel.non-final',
161
+ defaultMessage: 'Updating suggestion...',
162
+ description: 'Banner shown at the top of the AI suggestions card while the suggestion is being updated (regenerated)'
163
+ },
164
+ cardUpdatedBannerLabel: {
165
+ id: 'fabric.editor.ai.suggestions.card.updatedBannerLabel.non-final',
166
+ defaultMessage: 'Suggestion updated.',
167
+ description: 'Banner shown briefly at the top of the AI suggestions card after the suggestion has been successfully updated (regenerated)'
168
+ },
154
169
  cardDiscardButtonLabel: {
155
170
  id: 'fabric.editor.ai.suggestions.card.discardButtonLabel.non-final',
156
171
  defaultMessage: 'Discard',
@@ -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.48.3";
31
+ var packageVersion = "116.49.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.48.3";
27
+ var packageVersion = "116.49.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -145,6 +145,21 @@ export const aiSuggestionsMessages = defineMessages({
145
145
  defaultMessage: 'Accept',
146
146
  description: 'Label for the accept button on the AI suggestions card'
147
147
  },
148
+ cardStaleBannerLabel: {
149
+ id: 'fabric.editor.ai.suggestions.card.staleBannerLabel.non-final',
150
+ defaultMessage: 'This suggestion is outdated.',
151
+ description: 'Banner shown at the top of the AI suggestions card when the suggestion is out of date (stale)'
152
+ },
153
+ cardRegeneratingBannerLabel: {
154
+ id: 'fabric.editor.ai.suggestions.card.regeneratingBannerLabel.non-final',
155
+ defaultMessage: 'Updating suggestion...',
156
+ description: 'Banner shown at the top of the AI suggestions card while the suggestion is being updated (regenerated)'
157
+ },
158
+ cardUpdatedBannerLabel: {
159
+ id: 'fabric.editor.ai.suggestions.card.updatedBannerLabel.non-final',
160
+ defaultMessage: 'Suggestion updated.',
161
+ description: 'Banner shown briefly at the top of the AI suggestions card after the suggestion has been successfully updated (regenerated)'
162
+ },
148
163
  cardDiscardButtonLabel: {
149
164
  id: 'fabric.editor.ai.suggestions.card.discardButtonLabel.non-final',
150
165
  defaultMessage: 'Discard',
@@ -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.48.3";
17
+ const packageVersion = "116.49.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.48.3";
17
+ const packageVersion = "116.49.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -145,6 +145,21 @@ export var aiSuggestionsMessages = defineMessages({
145
145
  defaultMessage: 'Accept',
146
146
  description: 'Label for the accept button on the AI suggestions card'
147
147
  },
148
+ cardStaleBannerLabel: {
149
+ id: 'fabric.editor.ai.suggestions.card.staleBannerLabel.non-final',
150
+ defaultMessage: 'This suggestion is outdated.',
151
+ description: 'Banner shown at the top of the AI suggestions card when the suggestion is out of date (stale)'
152
+ },
153
+ cardRegeneratingBannerLabel: {
154
+ id: 'fabric.editor.ai.suggestions.card.regeneratingBannerLabel.non-final',
155
+ defaultMessage: 'Updating suggestion...',
156
+ description: 'Banner shown at the top of the AI suggestions card while the suggestion is being updated (regenerated)'
157
+ },
158
+ cardUpdatedBannerLabel: {
159
+ id: 'fabric.editor.ai.suggestions.card.updatedBannerLabel.non-final',
160
+ defaultMessage: 'Suggestion updated.',
161
+ description: 'Banner shown briefly at the top of the AI suggestions card after the suggestion has been successfully updated (regenerated)'
162
+ },
148
163
  cardDiscardButtonLabel: {
149
164
  id: 'fabric.editor.ai.suggestions.card.discardButtonLabel.non-final',
150
165
  defaultMessage: 'Discard',
@@ -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.48.3";
23
+ var packageVersion = "116.49.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.48.3";
24
+ var packageVersion = "116.49.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -79,6 +79,11 @@ export declare const aiSuggestionsMessages: {
79
79
  description: string;
80
80
  id: string;
81
81
  };
82
+ cardRegeneratingBannerLabel: {
83
+ defaultMessage: string;
84
+ description: string;
85
+ id: string;
86
+ };
82
87
  cardRovoTitle: {
83
88
  defaultMessage: string;
84
89
  description: string;
@@ -114,6 +119,16 @@ export declare const aiSuggestionsMessages: {
114
119
  description: string;
115
120
  id: string;
116
121
  };
122
+ cardStaleBannerLabel: {
123
+ defaultMessage: string;
124
+ description: string;
125
+ id: string;
126
+ };
127
+ cardUpdatedBannerLabel: {
128
+ defaultMessage: string;
129
+ description: string;
130
+ id: string;
131
+ };
117
132
  fetchSuggestionsButtonLabel: {
118
133
  defaultMessage: string;
119
134
  description: string;
@@ -1,6 +1,6 @@
1
1
  import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
2
2
  import type { OperationalAEP, TrackAEP } from './utils';
3
- export type AiSuggestionsEntryPoint = 'primaryToolbar' | 'commentsEmptyState';
3
+ export type AiSuggestionsEntryPoint = 'primaryToolbar' | 'commentsEmptyState' | 'objectSidebarControl';
4
4
  export type AiSuggestionInteractionPoint = 'sidebar' | 'card' | 'statusBar';
5
5
  export type AiSuggestionsConversationErrorReason = 'agentDeactivated' | 'conversationSetup' | 'streamError';
6
6
  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": "116.49.0",
3
+ "version": "116.50.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/"