@atlaskit/editor-common 117.6.0 → 118.1.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 +35 -0
- package/dist/cjs/ai-messages/ai-suggestions.js +15 -0
- package/dist/cjs/analytics/types/enums.js +1 -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/analytics/types/enums.js +1 -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/analytics/types/enums.js +1 -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/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types/types/feature-flags.d.ts +0 -10
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 118.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`af5849612f2a8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/af5849612f2a8) -
|
|
8
|
+
[ux] Add a follow-up card that replaces a suggestion card, in the same anchored position, once its
|
|
9
|
+
suggestion is removed (accepted / discarded / dismissed).
|
|
10
|
+
|
|
11
|
+
## 118.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- [`b31485c214f8d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b31485c214f8d) -
|
|
16
|
+
Clean up feature gate `platform_editor_disable_rerender_tracking_jira`.
|
|
17
|
+
|
|
18
|
+
The `lcmPreventRenderTracking` field has been removed from the public `FeatureFlags` type. Remove
|
|
19
|
+
the field from any feature flag configuration because render tracking is no longer conditional:
|
|
20
|
+
|
|
21
|
+
```tsx
|
|
22
|
+
// Before
|
|
23
|
+
const featureFlags: FeatureFlags = { lcmPreventRenderTracking: true };
|
|
24
|
+
|
|
25
|
+
// After
|
|
26
|
+
const featureFlags: FeatureFlags = {};
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- [`1db4a5f3ed39f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1db4a5f3ed39f) -
|
|
32
|
+
Add analytics for collapsible heading toggles
|
|
33
|
+
|
|
34
|
+
### Patch Changes
|
|
35
|
+
|
|
36
|
+
- Updated dependencies
|
|
37
|
+
|
|
3
38
|
## 117.6.0
|
|
4
39
|
|
|
5
40
|
### Minor 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',
|
|
@@ -336,6 +336,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
|
|
|
336
336
|
ACTION_SUBJECT["FIND_REPLACE_DIALOG"] = "findReplaceDialog";
|
|
337
337
|
ACTION_SUBJECT["FLOATING_CONTEXTUAL_BUTTON"] = "floatingContextualButton";
|
|
338
338
|
ACTION_SUBJECT["FLOATING_TOOLBAR_PLUGIN"] = "floatingToolbarPlugin";
|
|
339
|
+
ACTION_SUBJECT["HEADING"] = "heading";
|
|
339
340
|
ACTION_SUBJECT["HELP"] = "help";
|
|
340
341
|
ACTION_SUBJECT["INVITE_ITEM"] = "inviteItem";
|
|
341
342
|
ACTION_SUBJECT["LAYOUT"] = "layout";
|
|
@@ -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.0.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.0.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',
|
|
@@ -342,6 +342,7 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
342
342
|
ACTION_SUBJECT["FIND_REPLACE_DIALOG"] = "findReplaceDialog";
|
|
343
343
|
ACTION_SUBJECT["FLOATING_CONTEXTUAL_BUTTON"] = "floatingContextualButton";
|
|
344
344
|
ACTION_SUBJECT["FLOATING_TOOLBAR_PLUGIN"] = "floatingToolbarPlugin";
|
|
345
|
+
ACTION_SUBJECT["HEADING"] = "heading";
|
|
345
346
|
ACTION_SUBJECT["HELP"] = "help";
|
|
346
347
|
ACTION_SUBJECT["INVITE_ITEM"] = "inviteItem";
|
|
347
348
|
ACTION_SUBJECT["LAYOUT"] = "layout";
|
|
@@ -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.0.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.0.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',
|
|
@@ -342,6 +342,7 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
342
342
|
ACTION_SUBJECT["FIND_REPLACE_DIALOG"] = "findReplaceDialog";
|
|
343
343
|
ACTION_SUBJECT["FLOATING_CONTEXTUAL_BUTTON"] = "floatingContextualButton";
|
|
344
344
|
ACTION_SUBJECT["FLOATING_TOOLBAR_PLUGIN"] = "floatingToolbarPlugin";
|
|
345
|
+
ACTION_SUBJECT["HEADING"] = "heading";
|
|
345
346
|
ACTION_SUBJECT["HELP"] = "help";
|
|
346
347
|
ACTION_SUBJECT["INVITE_ITEM"] = "inviteItem";
|
|
347
348
|
ACTION_SUBJECT["LAYOUT"] = "layout";
|
|
@@ -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.0.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.0.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, {
|
|
@@ -319,6 +319,7 @@ export declare enum ACTION_SUBJECT {
|
|
|
319
319
|
FIND_REPLACE_DIALOG = "findReplaceDialog",
|
|
320
320
|
FLOATING_CONTEXTUAL_BUTTON = "floatingContextualButton",
|
|
321
321
|
FLOATING_TOOLBAR_PLUGIN = "floatingToolbarPlugin",
|
|
322
|
+
HEADING = "heading",
|
|
322
323
|
HELP = "help",
|
|
323
324
|
INVITE_ITEM = "inviteItem",
|
|
324
325
|
LAYOUT = "layout",
|
|
@@ -125,16 +125,6 @@ export type FeatureFlags = {
|
|
|
125
125
|
* @default false
|
|
126
126
|
*/
|
|
127
127
|
extensionLocalIdGeneration?: boolean;
|
|
128
|
-
/**
|
|
129
|
-
* @description
|
|
130
|
-
* Used by the legacy content macro to disable render tracking due to excessive logs.
|
|
131
|
-
* Will be removed once re-rendering issue is resolved.
|
|
132
|
-
* Note: This is hardcoded into the LCM code, it does not exist in Switcheroo.
|
|
133
|
-
*
|
|
134
|
-
* @see https://product-fabric.atlassian.net/browse/ED-26650
|
|
135
|
-
* @default false
|
|
136
|
-
*/
|
|
137
|
-
lcmPreventRenderTracking?: boolean;
|
|
138
128
|
/**
|
|
139
129
|
* @description
|
|
140
130
|
* Use the linking platform link picker for link insertion and edit
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "118.1.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/"
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@atlaskit/react-ufo": "^7.3.0",
|
|
79
79
|
"@atlaskit/section-message": "^10.0.0",
|
|
80
80
|
"@atlaskit/smart-card": "^45.17.0",
|
|
81
|
-
"@atlaskit/smart-user-picker": "^11.
|
|
81
|
+
"@atlaskit/smart-user-picker": "^11.5.0",
|
|
82
82
|
"@atlaskit/spinner": "^20.1.0",
|
|
83
83
|
"@atlaskit/task-decision": "^21.8.0",
|
|
84
84
|
"@atlaskit/teams-app-config": "^2.2.0",
|