@atlaskit/editor-common 121.5.2 → 122.0.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 +16 -0
- package/dist/cjs/ai-messages/ai-suggestions.js +23 -8
- 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 +23 -8
- 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 +23 -8
- 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 +20 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 122.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`96583be0e52a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/96583be0e52a0) -
|
|
8
|
+
[ux] Restyle the AI suggestion card's details section, add tooltips to its icon buttons, and show
|
|
9
|
+
a stack of the logos of the apps a suggestion drew on. The Restricted lozenge is now limited to
|
|
10
|
+
suggestions with sources, and all of a suggestion's sources are listed rather than just the first.
|
|
11
|
+
New `cardPreviousSuggestionButtonLabel`, `cardNextSuggestionButtonLabel`, `cardSourceAppsLabel`
|
|
12
|
+
and `teamworkGraphLabel` messages replace the misnamed navigation chevron labels and the stale
|
|
13
|
+
`sourceLabel`.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 121.5.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -118,13 +118,23 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
|
|
|
118
118
|
},
|
|
119
119
|
cardCloseButtonLabel: {
|
|
120
120
|
id: 'fabric.editor.ai.suggestions.card.closeButtonLabel.non-final',
|
|
121
|
-
defaultMessage: 'Close',
|
|
122
|
-
description: 'Label for the close button on the AI suggestions card'
|
|
121
|
+
defaultMessage: 'Close suggestion',
|
|
122
|
+
description: 'Label and tooltip for the close button on the AI suggestions card'
|
|
123
123
|
},
|
|
124
124
|
cardShowSidebarButtonLabel: {
|
|
125
125
|
id: 'fabric.editor.ai.suggestions.card.showSidebarButtonLabel.non-final',
|
|
126
|
-
defaultMessage: 'Show
|
|
127
|
-
description: 'Label for the
|
|
126
|
+
defaultMessage: 'Show all suggestions',
|
|
127
|
+
description: 'Label and tooltip for the button on the AI suggestions card that opens the suggestions sidebar'
|
|
128
|
+
},
|
|
129
|
+
cardPreviousSuggestionButtonLabel: {
|
|
130
|
+
id: 'fabric.editor.ai.suggestions.card.previousSuggestionButtonLabel.non-final',
|
|
131
|
+
defaultMessage: 'Previous suggestion',
|
|
132
|
+
description: 'Label and tooltip for the up chevron button on the AI suggestions card, which moves to the previous suggestion'
|
|
133
|
+
},
|
|
134
|
+
cardNextSuggestionButtonLabel: {
|
|
135
|
+
id: 'fabric.editor.ai.suggestions.card.nextSuggestionButtonLabel.non-final',
|
|
136
|
+
defaultMessage: 'Next suggestion',
|
|
137
|
+
description: 'Label and tooltip for the down chevron button on the AI suggestions card, which moves to the next suggestion'
|
|
128
138
|
},
|
|
129
139
|
cardExpandButtonLabel: {
|
|
130
140
|
id: 'fabric.editor.ai.suggestions.card.expandButtonLabel.non-final',
|
|
@@ -176,6 +186,11 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
|
|
|
176
186
|
defaultMessage: 'Details',
|
|
177
187
|
description: 'Label for the details toggle button on the AI suggestions card'
|
|
178
188
|
},
|
|
189
|
+
cardSourceAppsLabel: {
|
|
190
|
+
id: 'fabric.editor.ai.suggestions.card.sourceAppsLabel.non-final',
|
|
191
|
+
defaultMessage: 'Source apps',
|
|
192
|
+
description: 'Accessible name for the stack of app logos showing which apps an AI suggestion drew on'
|
|
193
|
+
},
|
|
179
194
|
cardSourcesButtonLabel: {
|
|
180
195
|
id: 'fabric.editor.ai.suggestions.card.sourcesButtonLabel.non-final',
|
|
181
196
|
defaultMessage: 'Sources',
|
|
@@ -228,8 +243,8 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
|
|
|
228
243
|
},
|
|
229
244
|
cardMoreOptionsButtonLabel: {
|
|
230
245
|
id: 'fabric.editor.ai.suggestions.card.moreOptionsButtonLabel.non-final',
|
|
231
|
-
defaultMessage: 'More
|
|
232
|
-
description: 'Label for the overflow actions button on the AI suggestions card'
|
|
246
|
+
defaultMessage: 'More actions',
|
|
247
|
+
description: 'Label and tooltip for the overflow actions button on the AI suggestions card'
|
|
233
248
|
},
|
|
234
249
|
cardGoodSuggestionLabel: {
|
|
235
250
|
id: 'fabric.editor.ai.suggestions.card.goodSuggestionLabel.non-final',
|
|
@@ -371,8 +386,8 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
|
|
|
371
386
|
defaultMessage: 'There’s too much content to process.',
|
|
372
387
|
description: 'Error shown on the suggested-edits thinking bar when the request exceeds the maximum content limit.'
|
|
373
388
|
},
|
|
374
|
-
|
|
375
|
-
id: 'fabric.editor.ai.suggestions.
|
|
389
|
+
teamworkGraphLabel: {
|
|
390
|
+
id: 'fabric.editor.ai.suggestions.teamworkGraphLabel.non-final',
|
|
376
391
|
defaultMessage: 'Teamwork Graph',
|
|
377
392
|
description: 'Label for the Teamwork Graph sources section on the AI suggestions card'
|
|
378
393
|
}
|
|
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
27
27
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
28
28
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
29
29
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
30
|
-
var packageVersion = "121.5.
|
|
30
|
+
var packageVersion = "121.5.2";
|
|
31
31
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
32
32
|
// Remove URL as it has UGC
|
|
33
33
|
// 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 = "121.5.
|
|
27
|
+
var packageVersion = "121.5.2";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -112,13 +112,23 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
112
112
|
},
|
|
113
113
|
cardCloseButtonLabel: {
|
|
114
114
|
id: 'fabric.editor.ai.suggestions.card.closeButtonLabel.non-final',
|
|
115
|
-
defaultMessage: 'Close',
|
|
116
|
-
description: 'Label for the close button on the AI suggestions card'
|
|
115
|
+
defaultMessage: 'Close suggestion',
|
|
116
|
+
description: 'Label and tooltip for the close button on the AI suggestions card'
|
|
117
117
|
},
|
|
118
118
|
cardShowSidebarButtonLabel: {
|
|
119
119
|
id: 'fabric.editor.ai.suggestions.card.showSidebarButtonLabel.non-final',
|
|
120
|
-
defaultMessage: 'Show
|
|
121
|
-
description: 'Label for the
|
|
120
|
+
defaultMessage: 'Show all suggestions',
|
|
121
|
+
description: 'Label and tooltip for the button on the AI suggestions card that opens the suggestions sidebar'
|
|
122
|
+
},
|
|
123
|
+
cardPreviousSuggestionButtonLabel: {
|
|
124
|
+
id: 'fabric.editor.ai.suggestions.card.previousSuggestionButtonLabel.non-final',
|
|
125
|
+
defaultMessage: 'Previous suggestion',
|
|
126
|
+
description: 'Label and tooltip for the up chevron button on the AI suggestions card, which moves to the previous suggestion'
|
|
127
|
+
},
|
|
128
|
+
cardNextSuggestionButtonLabel: {
|
|
129
|
+
id: 'fabric.editor.ai.suggestions.card.nextSuggestionButtonLabel.non-final',
|
|
130
|
+
defaultMessage: 'Next suggestion',
|
|
131
|
+
description: 'Label and tooltip for the down chevron button on the AI suggestions card, which moves to the next suggestion'
|
|
122
132
|
},
|
|
123
133
|
cardExpandButtonLabel: {
|
|
124
134
|
id: 'fabric.editor.ai.suggestions.card.expandButtonLabel.non-final',
|
|
@@ -170,6 +180,11 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
170
180
|
defaultMessage: 'Details',
|
|
171
181
|
description: 'Label for the details toggle button on the AI suggestions card'
|
|
172
182
|
},
|
|
183
|
+
cardSourceAppsLabel: {
|
|
184
|
+
id: 'fabric.editor.ai.suggestions.card.sourceAppsLabel.non-final',
|
|
185
|
+
defaultMessage: 'Source apps',
|
|
186
|
+
description: 'Accessible name for the stack of app logos showing which apps an AI suggestion drew on'
|
|
187
|
+
},
|
|
173
188
|
cardSourcesButtonLabel: {
|
|
174
189
|
id: 'fabric.editor.ai.suggestions.card.sourcesButtonLabel.non-final',
|
|
175
190
|
defaultMessage: 'Sources',
|
|
@@ -222,8 +237,8 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
222
237
|
},
|
|
223
238
|
cardMoreOptionsButtonLabel: {
|
|
224
239
|
id: 'fabric.editor.ai.suggestions.card.moreOptionsButtonLabel.non-final',
|
|
225
|
-
defaultMessage: 'More
|
|
226
|
-
description: 'Label for the overflow actions button on the AI suggestions card'
|
|
240
|
+
defaultMessage: 'More actions',
|
|
241
|
+
description: 'Label and tooltip for the overflow actions button on the AI suggestions card'
|
|
227
242
|
},
|
|
228
243
|
cardGoodSuggestionLabel: {
|
|
229
244
|
id: 'fabric.editor.ai.suggestions.card.goodSuggestionLabel.non-final',
|
|
@@ -365,8 +380,8 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
365
380
|
defaultMessage: 'There’s too much content to process.',
|
|
366
381
|
description: 'Error shown on the suggested-edits thinking bar when the request exceeds the maximum content limit.'
|
|
367
382
|
},
|
|
368
|
-
|
|
369
|
-
id: 'fabric.editor.ai.suggestions.
|
|
383
|
+
teamworkGraphLabel: {
|
|
384
|
+
id: 'fabric.editor.ai.suggestions.teamworkGraphLabel.non-final',
|
|
370
385
|
defaultMessage: 'Teamwork Graph',
|
|
371
386
|
description: 'Label for the Teamwork Graph sources section on the AI suggestions card'
|
|
372
387
|
}
|
|
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
13
13
|
const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
14
14
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
15
15
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
16
|
-
const packageVersion = "121.5.
|
|
16
|
+
const packageVersion = "121.5.2";
|
|
17
17
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
18
18
|
// Remove URL as it has UGC
|
|
19
19
|
// 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 = "121.5.
|
|
17
|
+
const packageVersion = "121.5.2";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -112,13 +112,23 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
112
112
|
},
|
|
113
113
|
cardCloseButtonLabel: {
|
|
114
114
|
id: 'fabric.editor.ai.suggestions.card.closeButtonLabel.non-final',
|
|
115
|
-
defaultMessage: 'Close',
|
|
116
|
-
description: 'Label for the close button on the AI suggestions card'
|
|
115
|
+
defaultMessage: 'Close suggestion',
|
|
116
|
+
description: 'Label and tooltip for the close button on the AI suggestions card'
|
|
117
117
|
},
|
|
118
118
|
cardShowSidebarButtonLabel: {
|
|
119
119
|
id: 'fabric.editor.ai.suggestions.card.showSidebarButtonLabel.non-final',
|
|
120
|
-
defaultMessage: 'Show
|
|
121
|
-
description: 'Label for the
|
|
120
|
+
defaultMessage: 'Show all suggestions',
|
|
121
|
+
description: 'Label and tooltip for the button on the AI suggestions card that opens the suggestions sidebar'
|
|
122
|
+
},
|
|
123
|
+
cardPreviousSuggestionButtonLabel: {
|
|
124
|
+
id: 'fabric.editor.ai.suggestions.card.previousSuggestionButtonLabel.non-final',
|
|
125
|
+
defaultMessage: 'Previous suggestion',
|
|
126
|
+
description: 'Label and tooltip for the up chevron button on the AI suggestions card, which moves to the previous suggestion'
|
|
127
|
+
},
|
|
128
|
+
cardNextSuggestionButtonLabel: {
|
|
129
|
+
id: 'fabric.editor.ai.suggestions.card.nextSuggestionButtonLabel.non-final',
|
|
130
|
+
defaultMessage: 'Next suggestion',
|
|
131
|
+
description: 'Label and tooltip for the down chevron button on the AI suggestions card, which moves to the next suggestion'
|
|
122
132
|
},
|
|
123
133
|
cardExpandButtonLabel: {
|
|
124
134
|
id: 'fabric.editor.ai.suggestions.card.expandButtonLabel.non-final',
|
|
@@ -170,6 +180,11 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
170
180
|
defaultMessage: 'Details',
|
|
171
181
|
description: 'Label for the details toggle button on the AI suggestions card'
|
|
172
182
|
},
|
|
183
|
+
cardSourceAppsLabel: {
|
|
184
|
+
id: 'fabric.editor.ai.suggestions.card.sourceAppsLabel.non-final',
|
|
185
|
+
defaultMessage: 'Source apps',
|
|
186
|
+
description: 'Accessible name for the stack of app logos showing which apps an AI suggestion drew on'
|
|
187
|
+
},
|
|
173
188
|
cardSourcesButtonLabel: {
|
|
174
189
|
id: 'fabric.editor.ai.suggestions.card.sourcesButtonLabel.non-final',
|
|
175
190
|
defaultMessage: 'Sources',
|
|
@@ -222,8 +237,8 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
222
237
|
},
|
|
223
238
|
cardMoreOptionsButtonLabel: {
|
|
224
239
|
id: 'fabric.editor.ai.suggestions.card.moreOptionsButtonLabel.non-final',
|
|
225
|
-
defaultMessage: 'More
|
|
226
|
-
description: 'Label for the overflow actions button on the AI suggestions card'
|
|
240
|
+
defaultMessage: 'More actions',
|
|
241
|
+
description: 'Label and tooltip for the overflow actions button on the AI suggestions card'
|
|
227
242
|
},
|
|
228
243
|
cardGoodSuggestionLabel: {
|
|
229
244
|
id: 'fabric.editor.ai.suggestions.card.goodSuggestionLabel.non-final',
|
|
@@ -365,8 +380,8 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
365
380
|
defaultMessage: 'There’s too much content to process.',
|
|
366
381
|
description: 'Error shown on the suggested-edits thinking bar when the request exceeds the maximum content limit.'
|
|
367
382
|
},
|
|
368
|
-
|
|
369
|
-
id: 'fabric.editor.ai.suggestions.
|
|
383
|
+
teamworkGraphLabel: {
|
|
384
|
+
id: 'fabric.editor.ai.suggestions.teamworkGraphLabel.non-final',
|
|
370
385
|
defaultMessage: 'Teamwork Graph',
|
|
371
386
|
description: 'Label for the Teamwork Graph sources section on the AI suggestions card'
|
|
372
387
|
}
|
|
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
19
19
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "121.5.
|
|
22
|
+
var packageVersion = "121.5.2";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// 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 = "121.5.
|
|
24
|
+
var packageVersion = "121.5.2";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -74,11 +74,21 @@ export declare const aiSuggestionsMessages: {
|
|
|
74
74
|
description: string;
|
|
75
75
|
id: string;
|
|
76
76
|
};
|
|
77
|
+
cardNextSuggestionButtonLabel: {
|
|
78
|
+
defaultMessage: string;
|
|
79
|
+
description: string;
|
|
80
|
+
id: string;
|
|
81
|
+
};
|
|
77
82
|
cardOnlyShowSuggestionOptionLabel: {
|
|
78
83
|
defaultMessage: string;
|
|
79
84
|
description: string;
|
|
80
85
|
id: string;
|
|
81
86
|
};
|
|
87
|
+
cardPreviousSuggestionButtonLabel: {
|
|
88
|
+
defaultMessage: string;
|
|
89
|
+
description: string;
|
|
90
|
+
id: string;
|
|
91
|
+
};
|
|
82
92
|
cardPrivateLabel: {
|
|
83
93
|
defaultMessage: string;
|
|
84
94
|
description: string;
|
|
@@ -133,6 +143,11 @@ export declare const aiSuggestionsMessages: {
|
|
|
133
143
|
description: string;
|
|
134
144
|
id: string;
|
|
135
145
|
};
|
|
146
|
+
cardSourceAppsLabel: {
|
|
147
|
+
defaultMessage: string;
|
|
148
|
+
description: string;
|
|
149
|
+
id: string;
|
|
150
|
+
};
|
|
136
151
|
cardSourcesButtonLabel: {
|
|
137
152
|
defaultMessage: string;
|
|
138
153
|
description: string;
|
|
@@ -213,11 +228,6 @@ export declare const aiSuggestionsMessages: {
|
|
|
213
228
|
description: string;
|
|
214
229
|
id: string;
|
|
215
230
|
};
|
|
216
|
-
sourceLabel: {
|
|
217
|
-
defaultMessage: string;
|
|
218
|
-
description: string;
|
|
219
|
-
id: string;
|
|
220
|
-
};
|
|
221
231
|
suggestEditsButtonLabel: {
|
|
222
232
|
defaultMessage: string;
|
|
223
233
|
description: string;
|
|
@@ -258,6 +268,11 @@ export declare const aiSuggestionsMessages: {
|
|
|
258
268
|
description: string;
|
|
259
269
|
id: string;
|
|
260
270
|
};
|
|
271
|
+
teamworkGraphLabel: {
|
|
272
|
+
defaultMessage: string;
|
|
273
|
+
description: string;
|
|
274
|
+
id: string;
|
|
275
|
+
};
|
|
261
276
|
thinkingAnalyzingStructure: {
|
|
262
277
|
defaultMessage: string;
|
|
263
278
|
description: string;
|
package/package.json
CHANGED