@atlaskit/editor-common 120.1.0 → 120.2.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 +14 -0
- package/dist/cjs/ai-messages/ai-suggestions.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/ai-messages/ai-suggestions.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/ai-messages/ai-suggestions.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/ai-messages/ai-suggestions.d.ts +5 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 120.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`36fe288d5a58f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/36fe288d5a58f) -
|
|
8
|
+
[ux] Suggested Edits: map AI review failures to templated error screens in the thinking bar (rate
|
|
9
|
+
limit, Acceptable Use Policy, token limit and unknown), mirroring Rovo inline chat's copy, links
|
|
10
|
+
and retry rules. Non-retryable errors (rate limit, AUP) hide the "Try again" action, and the
|
|
11
|
+
Close/Try again buttons are ordered Close first.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 120.1.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -336,6 +336,11 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
|
|
|
336
336
|
defaultMessage: 'Close',
|
|
337
337
|
description: 'Accessible label for the close button on the thinking complete bar'
|
|
338
338
|
},
|
|
339
|
+
thinkingErrorTokenLimitExceeded: {
|
|
340
|
+
id: 'fabric.editor.ai.suggestions.thinkingError.tokenLimitExceeded.non-final',
|
|
341
|
+
defaultMessage: 'There’s too much content to process.',
|
|
342
|
+
description: 'Error shown on the suggested-edits thinking bar when the request exceeds the maximum content limit.'
|
|
343
|
+
},
|
|
339
344
|
sourceLabel: {
|
|
340
345
|
id: 'fabric.editor.ai.suggestions.sourceLabel.non-final',
|
|
341
346
|
defaultMessage: 'Source',
|
|
@@ -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 = "120.0
|
|
31
|
+
var packageVersion = "120.1.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 = "120.0
|
|
27
|
+
var packageVersion = "120.1.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -330,6 +330,11 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
330
330
|
defaultMessage: 'Close',
|
|
331
331
|
description: 'Accessible label for the close button on the thinking complete bar'
|
|
332
332
|
},
|
|
333
|
+
thinkingErrorTokenLimitExceeded: {
|
|
334
|
+
id: 'fabric.editor.ai.suggestions.thinkingError.tokenLimitExceeded.non-final',
|
|
335
|
+
defaultMessage: 'There’s too much content to process.',
|
|
336
|
+
description: 'Error shown on the suggested-edits thinking bar when the request exceeds the maximum content limit.'
|
|
337
|
+
},
|
|
333
338
|
sourceLabel: {
|
|
334
339
|
id: 'fabric.editor.ai.suggestions.sourceLabel.non-final',
|
|
335
340
|
defaultMessage: 'Source',
|
|
@@ -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 = "120.0
|
|
17
|
+
const packageVersion = "120.1.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/fg';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "120.0
|
|
17
|
+
const packageVersion = "120.1.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -330,6 +330,11 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
330
330
|
defaultMessage: 'Close',
|
|
331
331
|
description: 'Accessible label for the close button on the thinking complete bar'
|
|
332
332
|
},
|
|
333
|
+
thinkingErrorTokenLimitExceeded: {
|
|
334
|
+
id: 'fabric.editor.ai.suggestions.thinkingError.tokenLimitExceeded.non-final',
|
|
335
|
+
defaultMessage: 'There’s too much content to process.',
|
|
336
|
+
description: 'Error shown on the suggested-edits thinking bar when the request exceeds the maximum content limit.'
|
|
337
|
+
},
|
|
333
338
|
sourceLabel: {
|
|
334
339
|
id: 'fabric.editor.ai.suggestions.sourceLabel.non-final',
|
|
335
340
|
defaultMessage: 'Source',
|
|
@@ -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 = "120.0
|
|
23
|
+
var packageVersion = "120.1.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/fg';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "120.0
|
|
24
|
+
var packageVersion = "120.1.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -274,6 +274,11 @@ export declare const aiSuggestionsMessages: {
|
|
|
274
274
|
description: string;
|
|
275
275
|
id: string;
|
|
276
276
|
};
|
|
277
|
+
thinkingErrorTokenLimitExceeded: {
|
|
278
|
+
defaultMessage: string;
|
|
279
|
+
description: string;
|
|
280
|
+
id: string;
|
|
281
|
+
};
|
|
277
282
|
thinkingEscHint: {
|
|
278
283
|
defaultMessage: string;
|
|
279
284
|
description: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "120.
|
|
3
|
+
"version": "120.2.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/"
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@atlaskit/task-decision": "^21.8.0",
|
|
85
85
|
"@atlaskit/teams-app-config": "^3.0.0",
|
|
86
86
|
"@atlaskit/textfield": "^10.1.0",
|
|
87
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
87
|
+
"@atlaskit/tmp-editor-statsig": "^162.0.0",
|
|
88
88
|
"@atlaskit/tokens": "^16.8.0",
|
|
89
89
|
"@atlaskit/tooltip": "^24.2.0",
|
|
90
90
|
"@atlaskit/width-detector": "^7.1.0",
|