@atlaskit/editor-common 118.0.0 → 118.1.1
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 +15 -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 +15 -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 +15 -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 +15 -0
- package/dist/types/analytics/types/ai-suggestions-events.d.ts +6 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 118.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 118.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`af5849612f2a8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/af5849612f2a8) -
|
|
14
|
+
[ux] Add a follow-up card that replaces a suggestion card, in the same anchored position, once its
|
|
15
|
+
suggestion is removed (accepted / discarded / dismissed).
|
|
16
|
+
|
|
3
17
|
## 118.0.0
|
|
4
18
|
|
|
5
19
|
### 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 = "
|
|
31
|
+
var packageVersion = "118.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 = "
|
|
27
|
+
var packageVersion = "118.1.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 = "
|
|
17
|
+
const packageVersion = "118.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';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "
|
|
17
|
+
const packageVersion = "118.1.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 = "
|
|
23
|
+
var packageVersion = "118.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';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "
|
|
24
|
+
var packageVersion = "118.1.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.
|
|
3
|
+
"version": "118.1.1",
|
|
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/"
|
|
@@ -83,7 +83,7 @@
|
|
|
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": "^
|
|
86
|
+
"@atlaskit/tmp-editor-statsig": "^143.0.0",
|
|
87
87
|
"@atlaskit/tokens": "^16.4.0",
|
|
88
88
|
"@atlaskit/tooltip": "^24.0.0",
|
|
89
89
|
"@atlaskit/width-detector": "^7.0.0",
|