@atlaskit/editor-common 121.3.0 → 121.4.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 +26 -1
- package/dist/cjs/ai-messages/ai-suggestions.js +5 -0
- package/dist/cjs/extensibility/extensionNodeView.js +1 -1
- 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/extensibility/extensionNodeView.js +1 -1
- 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/extensibility/extensionNodeView.js +1 -1
- 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/dist/types/analytics/types/ai-suggestions-events.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,35 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 121.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`e7479a7921ae3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e7479a7921ae3) -
|
|
8
|
+
Add `suggestionsPanelHeader` to AI suggestions generation analytics entry points for the
|
|
9
|
+
`platform_editor_ai_content_suggested_edits` flow.
|
|
10
|
+
- [`d7c649899afbd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d7c649899afbd) -
|
|
11
|
+
Show fallback author tooltips and render the Rovo suggestion avatar at 24px.
|
|
12
|
+
|
|
13
|
+
Add a localized Rovo author label for suggestion avatar accessibility and tooltip fallbacks.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
19
|
+
## 121.3.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [`2ca8a0b02c20e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2ca8a0b02c20e) -
|
|
24
|
+
Clean up experiment `platform_editor_bodiedextension_layoutshift_fix` by making the bodied
|
|
25
|
+
extension layout shift fix permanent.
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 121.3.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
|
6
31
|
|
|
7
|
-
- [`
|
|
32
|
+
- [`9e88561b1811e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9e88561b1811e) -
|
|
8
33
|
Add generic extension API insertion and node-type replacement support. Use these APIs to preserve
|
|
9
34
|
the position of newly inserted inline-bodied Forge macros and to restore inline placement when an
|
|
10
35
|
inline Connect macro is harmonized to Forge while platform_forge_inline_bodied_macro is enabled.
|
|
@@ -141,6 +141,11 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntl.defin
|
|
|
141
141
|
defaultMessage: 'Rovo',
|
|
142
142
|
description: 'Deprecated title for Rovo branding on the AI suggestions card'
|
|
143
143
|
},
|
|
144
|
+
cardRovoAuthorLabel: {
|
|
145
|
+
id: 'editor-common.ai-messages.ai-suggestions.cardRovoAuthorLabel',
|
|
146
|
+
defaultMessage: 'Rovo',
|
|
147
|
+
description: 'Accessible name and tooltip identity for suggestions without a named agent'
|
|
148
|
+
},
|
|
144
149
|
cardAuthorsTooltipLabel: {
|
|
145
150
|
id: 'fabric.editor.ai.suggestions.card.authorsTooltipLabel.non-final',
|
|
146
151
|
defaultMessage: '{agentName} with {userName}',
|
|
@@ -276,7 +276,7 @@ var ExtensionNode = exports.ExtensionNode = /*#__PURE__*/function (_ReactNodeVie
|
|
|
276
276
|
contentDomWrapper.className = "".concat(this.node.type.name, "-content-dom-wrapper");
|
|
277
277
|
var isBodiedExtension = this.node.type.name === 'bodiedExtension';
|
|
278
278
|
var showMacroInteractionDesignUpdates = (_this$reactComponentP3 = this.reactComponentProps) === null || _this$reactComponentP3 === void 0 || (_this$reactComponentP3 = _this$reactComponentP3.macroInteractionDesignFeatureFlags) === null || _this$reactComponentP3 === void 0 ? void 0 : _this$reactComponentP3.showMacroInteractionDesignUpdates;
|
|
279
|
-
if (isBodiedExtension && showMacroInteractionDesignUpdates
|
|
279
|
+
if (isBodiedExtension && showMacroInteractionDesignUpdates) {
|
|
280
280
|
// Create outer wrapper to hold space for the lozenge
|
|
281
281
|
var outerWrapper = document.createElement('div');
|
|
282
282
|
outerWrapper.className = "".concat(this.node.type.name, "-content-outer-wrapper");
|
|
@@ -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.
|
|
30
|
+
var packageVersion = "121.3.1";
|
|
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.
|
|
27
|
+
var packageVersion = "121.3.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -135,6 +135,11 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
135
135
|
defaultMessage: 'Rovo',
|
|
136
136
|
description: 'Deprecated title for Rovo branding on the AI suggestions card'
|
|
137
137
|
},
|
|
138
|
+
cardRovoAuthorLabel: {
|
|
139
|
+
id: 'editor-common.ai-messages.ai-suggestions.cardRovoAuthorLabel',
|
|
140
|
+
defaultMessage: 'Rovo',
|
|
141
|
+
description: 'Accessible name and tooltip identity for suggestions without a named agent'
|
|
142
|
+
},
|
|
138
143
|
cardAuthorsTooltipLabel: {
|
|
139
144
|
id: 'fabric.editor.ai.suggestions.card.authorsTooltipLabel.non-final',
|
|
140
145
|
defaultMessage: '{agentName} with {userName}',
|
|
@@ -232,7 +232,7 @@ export class ExtensionNode extends ReactNodeView {
|
|
|
232
232
|
contentDomWrapper.className = `${this.node.type.name}-content-dom-wrapper`;
|
|
233
233
|
const isBodiedExtension = this.node.type.name === 'bodiedExtension';
|
|
234
234
|
const showMacroInteractionDesignUpdates = (_this$reactComponentP4 = this.reactComponentProps) === null || _this$reactComponentP4 === void 0 ? void 0 : (_this$reactComponentP5 = _this$reactComponentP4.macroInteractionDesignFeatureFlags) === null || _this$reactComponentP5 === void 0 ? void 0 : _this$reactComponentP5.showMacroInteractionDesignUpdates;
|
|
235
|
-
if (isBodiedExtension && showMacroInteractionDesignUpdates
|
|
235
|
+
if (isBodiedExtension && showMacroInteractionDesignUpdates) {
|
|
236
236
|
// Create outer wrapper to hold space for the lozenge
|
|
237
237
|
const outerWrapper = document.createElement('div');
|
|
238
238
|
outerWrapper.className = `${this.node.type.name}-content-outer-wrapper`;
|
|
@@ -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.
|
|
16
|
+
const packageVersion = "121.3.1";
|
|
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.
|
|
17
|
+
const packageVersion = "121.3.1";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -135,6 +135,11 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
135
135
|
defaultMessage: 'Rovo',
|
|
136
136
|
description: 'Deprecated title for Rovo branding on the AI suggestions card'
|
|
137
137
|
},
|
|
138
|
+
cardRovoAuthorLabel: {
|
|
139
|
+
id: 'editor-common.ai-messages.ai-suggestions.cardRovoAuthorLabel',
|
|
140
|
+
defaultMessage: 'Rovo',
|
|
141
|
+
description: 'Accessible name and tooltip identity for suggestions without a named agent'
|
|
142
|
+
},
|
|
138
143
|
cardAuthorsTooltipLabel: {
|
|
139
144
|
id: 'fabric.editor.ai.suggestions.card.authorsTooltipLabel.non-final',
|
|
140
145
|
defaultMessage: '{agentName} with {userName}',
|
|
@@ -268,7 +268,7 @@ export var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
268
268
|
contentDomWrapper.className = "".concat(this.node.type.name, "-content-dom-wrapper");
|
|
269
269
|
var isBodiedExtension = this.node.type.name === 'bodiedExtension';
|
|
270
270
|
var showMacroInteractionDesignUpdates = (_this$reactComponentP3 = this.reactComponentProps) === null || _this$reactComponentP3 === void 0 || (_this$reactComponentP3 = _this$reactComponentP3.macroInteractionDesignFeatureFlags) === null || _this$reactComponentP3 === void 0 ? void 0 : _this$reactComponentP3.showMacroInteractionDesignUpdates;
|
|
271
|
-
if (isBodiedExtension && showMacroInteractionDesignUpdates
|
|
271
|
+
if (isBodiedExtension && showMacroInteractionDesignUpdates) {
|
|
272
272
|
// Create outer wrapper to hold space for the lozenge
|
|
273
273
|
var outerWrapper = document.createElement('div');
|
|
274
274
|
outerWrapper.className = "".concat(this.node.type.name, "-content-outer-wrapper");
|
|
@@ -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.
|
|
22
|
+
var packageVersion = "121.3.1";
|
|
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.
|
|
24
|
+
var packageVersion = "121.3.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -104,6 +104,11 @@ export declare const aiSuggestionsMessages: {
|
|
|
104
104
|
description: string;
|
|
105
105
|
id: string;
|
|
106
106
|
};
|
|
107
|
+
cardRovoAuthorLabel: {
|
|
108
|
+
defaultMessage: string;
|
|
109
|
+
description: string;
|
|
110
|
+
id: string;
|
|
111
|
+
};
|
|
107
112
|
/**
|
|
108
113
|
* @private
|
|
109
114
|
* @deprecated The suggestion card no longer displays a Rovo text label.
|
|
@@ -5,7 +5,7 @@ export type AiSuggestionsEntryPoint = 'primaryToolbar'
|
|
|
5
5
|
* Legacy entry point retained for the suggestions surface in the comments panel.
|
|
6
6
|
* Use `suggestionsPanelEmptyState` for the standalone suggestions panel.
|
|
7
7
|
*/
|
|
8
|
-
| 'commentsEmptyState' | 'suggestionsPanelEmptyState' | 'objectSidebarControl'
|
|
8
|
+
| 'commentsEmptyState' | 'suggestionsPanelEmptyState' | 'suggestionsPanelHeader' | 'objectSidebarControl'
|
|
9
9
|
/**
|
|
10
10
|
* Generation started automatically because a suggestions surface was opened
|
|
11
11
|
* with nothing to show — no explicit user action. Kept distinct from
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "121.
|
|
3
|
+
"version": "121.4.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/"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
55
55
|
"@atlaskit/icon": "^37.6.0",
|
|
56
56
|
"@atlaskit/link": "^5.1.0",
|
|
57
|
-
"@atlaskit/link-datasource": "^6.
|
|
57
|
+
"@atlaskit/link-datasource": "^6.13.0",
|
|
58
58
|
"@atlaskit/link-picker": "^6.8.0",
|
|
59
59
|
"@atlaskit/media-card": "^81.10.0",
|
|
60
60
|
"@atlaskit/media-client": "^38.1.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@atlaskit/task-decision": "^21.9.0",
|
|
85
85
|
"@atlaskit/teams-app-config": "^3.1.0",
|
|
86
86
|
"@atlaskit/textfield": "^10.2.0",
|
|
87
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
87
|
+
"@atlaskit/tmp-editor-statsig": "^185.0.0",
|
|
88
88
|
"@atlaskit/tokens": "^16.11.0",
|
|
89
89
|
"@atlaskit/tooltip": "^24.3.0",
|
|
90
90
|
"@atlaskit/width-detector": "^7.2.0",
|