@atlaskit/editor-common 99.5.5 → 99.5.6

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 99.5.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#107729](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107729)
8
+ [`0097396913c2f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0097396913c2f) -
9
+ [ux] EDF-2297 Update improve paragraph suggestion handling to show different cards depending on
10
+ the nature of suggestions; introduce type, score and details fields for recommendation.
11
+
3
12
  ## 99.5.5
4
13
 
5
14
  ### Patch Changes
@@ -13,8 +13,8 @@ var aiProactiveSettingMessages = exports.aiProactiveSettingMessages = (0, _react
13
13
  },
14
14
  toggleAllSuggestionsDescription: {
15
15
  id: 'fabric.editor.ai.proactive.moreMenu.toggleAllSuggestionsDescription.non-final',
16
- defaultMessage: 'Toggle to turn suggested edits on or off',
17
- description: 'This is the description displayed in the modal to allow the user to toggle all suggestions on or off'
16
+ defaultMessage: 'Toggle to turn suggested edits on or off.',
17
+ description: 'This is the description displayed in the modal to allow the user to toggle all suggestions on or off.'
18
18
  },
19
19
  toggleAllPanelSuggestionsTitle: {
20
20
  id: 'fabric.editor.ai.proactive.moreMenu.toggleAllPanelSuggestionsTitle.non-final',
@@ -23,7 +23,7 @@ var aiProactiveSettingMessages = exports.aiProactiveSettingMessages = (0, _react
23
23
  },
24
24
  toggleAllPanelSuggestionsDescription: {
25
25
  id: 'fabric.editor.ai.proactive.moreMenu.toggleAllPanelSuggestionsDescription.non-final',
26
- defaultMessage: 'Use panels to make your message stand out',
26
+ defaultMessage: 'Use panels to make your message stand out.',
27
27
  description: 'This is the description displayed in the modal to allow the user to toggle all suggestions on or off'
28
28
  },
29
29
  toggleErrorPanelTitle: {
@@ -33,7 +33,7 @@ var aiProactiveSettingMessages = exports.aiProactiveSettingMessages = (0, _react
33
33
  },
34
34
  toggleErrorPanelDescription: {
35
35
  id: 'fabric.editor.ai.proactive.moreMenu.toggleErrorPanelDescription.non-final',
36
- defaultMessage: 'Transform text into a red error panel',
36
+ defaultMessage: 'Transform text into a red error panel.',
37
37
  description: 'This is the description displayed in the modal to allow the user to toggle error panel on or off'
38
38
  },
39
39
  toggleInfoPanelTitle: {
@@ -43,7 +43,7 @@ var aiProactiveSettingMessages = exports.aiProactiveSettingMessages = (0, _react
43
43
  },
44
44
  toggleInfoPanelDescription: {
45
45
  id: 'fabric.editor.ai.proactive.moreMenu.toggleInfoPanelDescription.non-final',
46
- defaultMessage: 'Transform text into a blue information panel',
46
+ defaultMessage: 'Transform text into a blue information panel.',
47
47
  description: 'This is the description displayed in the modal to allow the user to toggle info panel on or off'
48
48
  },
49
49
  toggleNotePanelTitle: {
@@ -53,7 +53,7 @@ var aiProactiveSettingMessages = exports.aiProactiveSettingMessages = (0, _react
53
53
  },
54
54
  toggleNotePanelDescription: {
55
55
  id: 'fabric.editor.ai.proactive.moreMenu.toggleNotePanelDescription.non-final',
56
- defaultMessage: 'Transform text into a purple note panel',
56
+ defaultMessage: 'Transform text into a purple note panel.',
57
57
  description: 'This is the description displayed in the modal to allow the user to toggle success panel on or off'
58
58
  },
59
59
  toggleSuccessPanelTitle: {
@@ -63,7 +63,7 @@ var aiProactiveSettingMessages = exports.aiProactiveSettingMessages = (0, _react
63
63
  },
64
64
  toggleSuccessPanelDescription: {
65
65
  id: 'fabric.editor.ai.proactive.moreMenu.toggleSuccessPanelDescription.non-final',
66
- defaultMessage: 'Transform text into a green success panel',
66
+ defaultMessage: 'Transform text into a green success panel.',
67
67
  description: 'This is the description displayed in the modal to allow the user to toggle success panel on or off'
68
68
  },
69
69
  toggleWarningPanelTitle: {
@@ -73,7 +73,7 @@ var aiProactiveSettingMessages = exports.aiProactiveSettingMessages = (0, _react
73
73
  },
74
74
  toggleWarningPanelDescription: {
75
75
  id: 'fabric.editor.ai.proactive.moreMenu.toggleWarningPanelDescription.non-final',
76
- defaultMessage: 'Transform text into a yellow warning panel',
76
+ defaultMessage: 'Transform text into a yellow warning panel.',
77
77
  description: 'This is the description displayed in the modal to allow the user to toggle warning panel on or off'
78
78
  },
79
79
  toggleTableTitle: {
@@ -83,7 +83,7 @@ var aiProactiveSettingMessages = exports.aiProactiveSettingMessages = (0, _react
83
83
  },
84
84
  toggleTableDescription: {
85
85
  id: 'fabric.editor.ai.proactive.moreMenu.toggleTableDescription.non-final',
86
- defaultMessage: 'Format content in a table to improve readability',
86
+ defaultMessage: 'Format content in a table to improve readability.',
87
87
  description: 'This is the description displayed in the modal to allow the user to toggle table on or off'
88
88
  },
89
89
  toggleSplitParagraphTitle: {
@@ -93,17 +93,17 @@ var aiProactiveSettingMessages = exports.aiProactiveSettingMessages = (0, _react
93
93
  },
94
94
  toggleSplitParagraphDescription: {
95
95
  id: 'fabric.editor.ai.proactive.moreMenu.toggleSplitParagraphDescription.non-final',
96
- defaultMessage: 'Add paragraph breaks to separate key ideas',
96
+ defaultMessage: 'Add paragraph breaks to separate key ideas.',
97
97
  description: 'This is the description displayed in the modal to allow the user to toggle paragraph break on or off'
98
98
  },
99
99
  toggleFormatParagraphTitle: {
100
100
  id: 'fabric.editor.ai.proactive.moreMenu.toggleFormatParagraphTitle.non-final',
101
- defaultMessage: 'Improve paragraph',
102
- description: 'This is the title displayed in the modal to allow the user to toggle format paragraph on or off'
101
+ defaultMessage: 'Enhance content',
102
+ description: 'This is the title displayed in the modal to allow the user to toggle enhance content on or off'
103
103
  },
104
104
  toggleFormatParagraphDescription: {
105
105
  id: 'fabric.editor.ai.proactive.moreMenu.toggleFormatParagraphDescription.non-final',
106
- defaultMessage: 'Simplify content and fix spelling and grammar.',
106
+ defaultMessage: 'Suggestions for writing, lists, content structure, and spelling.',
107
107
  description: 'This is the description displayed in the modal to allow the user to toggle format paragraph on or off'
108
108
  }
109
109
  });
@@ -88,12 +88,52 @@ var aiProactiveTransformMessages = exports.aiProactiveTransformMessages = (0, _r
88
88
  },
89
89
  recommendationFormatParagraphTitle: {
90
90
  id: 'fabric.editor.ai.proactive.recommendation.formatParagraph.title.non-final',
91
- defaultMessage: 'Improve paragraph',
91
+ defaultMessage: 'Enhance content',
92
92
  description: 'The title displayed in the side context panel for AI recommendations which suggest a format paragraph operation'
93
93
  },
94
94
  recommendationFormatParagraphDescription: {
95
95
  id: 'fabric.editor.ai.proactive.recommendation.formatParagraph.description.non-final',
96
- defaultMessage: 'Simplify content and fix spelling and grammar.',
96
+ defaultMessage: 'Clarify content writing and structure.',
97
97
  description: 'The description displayed in the side context panel for AI recommendations which suggest a format paragraph operation'
98
+ },
99
+ recommendationFormatParagraphClarityTitle: {
100
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphClarity.title.non-final',
101
+ defaultMessage: 'Clarify writing',
102
+ description: 'The title displayed in the side context panel for AI recommendations which suggest an improve paragraph clarity operation'
103
+ },
104
+ recommendationFormatParagraphClarityDescription: {
105
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphClarity.description.non-final',
106
+ defaultMessage: 'Simplify phrasing and grammar.',
107
+ description: 'The description displayed in the side context panel for AI recommendations which suggest an improve paragraph clarity operation'
108
+ },
109
+ recommendationFormatParagraphListTitle: {
110
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphList.title.non-final',
111
+ defaultMessage: 'Create list',
112
+ description: 'The title displayed in the side context panel for AI recommendations which suggest to create a list'
113
+ },
114
+ recommendationFormatParagraphListDescription: {
115
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphList.description.non-final',
116
+ defaultMessage: 'Turn content into a scannable list.',
117
+ description: 'The description displayed in the side context panel for AI recommendations which suggest to create a list'
118
+ },
119
+ recommendationFormatParagraphStructureTitle: {
120
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphStructure.title.non-final',
121
+ defaultMessage: 'Improve structure',
122
+ description: 'The title displayed in the side context panel for AI recommendations which suggest an improve paragraph structure operation'
123
+ },
124
+ recommendationFormatParagraphStructureDescription: {
125
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphStructure.description.non-final',
126
+ defaultMessage: 'Add paragraph breaks and headings.',
127
+ description: 'The description displayed in the side context panel for AI recommendations which suggest an improve paragraph structure operation'
128
+ },
129
+ recommendationFormatParagraphSpellcheckTitle: {
130
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphSpellcheck.title.non-final',
131
+ defaultMessage: 'Fix spelling',
132
+ description: 'The title displayed in the side context panel for AI recommendations which suggest an improve paragraph spellcheck operation'
133
+ },
134
+ recommendationFormatParagraphSpellcheckDescription: {
135
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphSpellcheck.description.non-final',
136
+ defaultMessage: 'Spot and correct spelling errors.',
137
+ description: 'The description displayed in the side context panel for AI recommendations which suggest an improve paragraph spellcheck operation'
98
138
  }
99
139
  });
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "99.5.5";
20
+ var packageVersion = "99.5.6";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "99.5.5";
26
+ var packageVersion = "99.5.6";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -7,8 +7,8 @@ export const aiProactiveSettingMessages = defineMessages({
7
7
  },
8
8
  toggleAllSuggestionsDescription: {
9
9
  id: 'fabric.editor.ai.proactive.moreMenu.toggleAllSuggestionsDescription.non-final',
10
- defaultMessage: 'Toggle to turn suggested edits on or off',
11
- description: 'This is the description displayed in the modal to allow the user to toggle all suggestions on or off'
10
+ defaultMessage: 'Toggle to turn suggested edits on or off.',
11
+ description: 'This is the description displayed in the modal to allow the user to toggle all suggestions on or off.'
12
12
  },
13
13
  toggleAllPanelSuggestionsTitle: {
14
14
  id: 'fabric.editor.ai.proactive.moreMenu.toggleAllPanelSuggestionsTitle.non-final',
@@ -17,7 +17,7 @@ export const aiProactiveSettingMessages = defineMessages({
17
17
  },
18
18
  toggleAllPanelSuggestionsDescription: {
19
19
  id: 'fabric.editor.ai.proactive.moreMenu.toggleAllPanelSuggestionsDescription.non-final',
20
- defaultMessage: 'Use panels to make your message stand out',
20
+ defaultMessage: 'Use panels to make your message stand out.',
21
21
  description: 'This is the description displayed in the modal to allow the user to toggle all suggestions on or off'
22
22
  },
23
23
  toggleErrorPanelTitle: {
@@ -27,7 +27,7 @@ export const aiProactiveSettingMessages = defineMessages({
27
27
  },
28
28
  toggleErrorPanelDescription: {
29
29
  id: 'fabric.editor.ai.proactive.moreMenu.toggleErrorPanelDescription.non-final',
30
- defaultMessage: 'Transform text into a red error panel',
30
+ defaultMessage: 'Transform text into a red error panel.',
31
31
  description: 'This is the description displayed in the modal to allow the user to toggle error panel on or off'
32
32
  },
33
33
  toggleInfoPanelTitle: {
@@ -37,7 +37,7 @@ export const aiProactiveSettingMessages = defineMessages({
37
37
  },
38
38
  toggleInfoPanelDescription: {
39
39
  id: 'fabric.editor.ai.proactive.moreMenu.toggleInfoPanelDescription.non-final',
40
- defaultMessage: 'Transform text into a blue information panel',
40
+ defaultMessage: 'Transform text into a blue information panel.',
41
41
  description: 'This is the description displayed in the modal to allow the user to toggle info panel on or off'
42
42
  },
43
43
  toggleNotePanelTitle: {
@@ -47,7 +47,7 @@ export const aiProactiveSettingMessages = defineMessages({
47
47
  },
48
48
  toggleNotePanelDescription: {
49
49
  id: 'fabric.editor.ai.proactive.moreMenu.toggleNotePanelDescription.non-final',
50
- defaultMessage: 'Transform text into a purple note panel',
50
+ defaultMessage: 'Transform text into a purple note panel.',
51
51
  description: 'This is the description displayed in the modal to allow the user to toggle success panel on or off'
52
52
  },
53
53
  toggleSuccessPanelTitle: {
@@ -57,7 +57,7 @@ export const aiProactiveSettingMessages = defineMessages({
57
57
  },
58
58
  toggleSuccessPanelDescription: {
59
59
  id: 'fabric.editor.ai.proactive.moreMenu.toggleSuccessPanelDescription.non-final',
60
- defaultMessage: 'Transform text into a green success panel',
60
+ defaultMessage: 'Transform text into a green success panel.',
61
61
  description: 'This is the description displayed in the modal to allow the user to toggle success panel on or off'
62
62
  },
63
63
  toggleWarningPanelTitle: {
@@ -67,7 +67,7 @@ export const aiProactiveSettingMessages = defineMessages({
67
67
  },
68
68
  toggleWarningPanelDescription: {
69
69
  id: 'fabric.editor.ai.proactive.moreMenu.toggleWarningPanelDescription.non-final',
70
- defaultMessage: 'Transform text into a yellow warning panel',
70
+ defaultMessage: 'Transform text into a yellow warning panel.',
71
71
  description: 'This is the description displayed in the modal to allow the user to toggle warning panel on or off'
72
72
  },
73
73
  toggleTableTitle: {
@@ -77,7 +77,7 @@ export const aiProactiveSettingMessages = defineMessages({
77
77
  },
78
78
  toggleTableDescription: {
79
79
  id: 'fabric.editor.ai.proactive.moreMenu.toggleTableDescription.non-final',
80
- defaultMessage: 'Format content in a table to improve readability',
80
+ defaultMessage: 'Format content in a table to improve readability.',
81
81
  description: 'This is the description displayed in the modal to allow the user to toggle table on or off'
82
82
  },
83
83
  toggleSplitParagraphTitle: {
@@ -87,17 +87,17 @@ export const aiProactiveSettingMessages = defineMessages({
87
87
  },
88
88
  toggleSplitParagraphDescription: {
89
89
  id: 'fabric.editor.ai.proactive.moreMenu.toggleSplitParagraphDescription.non-final',
90
- defaultMessage: 'Add paragraph breaks to separate key ideas',
90
+ defaultMessage: 'Add paragraph breaks to separate key ideas.',
91
91
  description: 'This is the description displayed in the modal to allow the user to toggle paragraph break on or off'
92
92
  },
93
93
  toggleFormatParagraphTitle: {
94
94
  id: 'fabric.editor.ai.proactive.moreMenu.toggleFormatParagraphTitle.non-final',
95
- defaultMessage: 'Improve paragraph',
96
- description: 'This is the title displayed in the modal to allow the user to toggle format paragraph on or off'
95
+ defaultMessage: 'Enhance content',
96
+ description: 'This is the title displayed in the modal to allow the user to toggle enhance content on or off'
97
97
  },
98
98
  toggleFormatParagraphDescription: {
99
99
  id: 'fabric.editor.ai.proactive.moreMenu.toggleFormatParagraphDescription.non-final',
100
- defaultMessage: 'Simplify content and fix spelling and grammar.',
100
+ defaultMessage: 'Suggestions for writing, lists, content structure, and spelling.',
101
101
  description: 'This is the description displayed in the modal to allow the user to toggle format paragraph on or off'
102
102
  }
103
103
  });
@@ -82,12 +82,52 @@ export const aiProactiveTransformMessages = defineMessages({
82
82
  },
83
83
  recommendationFormatParagraphTitle: {
84
84
  id: 'fabric.editor.ai.proactive.recommendation.formatParagraph.title.non-final',
85
- defaultMessage: 'Improve paragraph',
85
+ defaultMessage: 'Enhance content',
86
86
  description: 'The title displayed in the side context panel for AI recommendations which suggest a format paragraph operation'
87
87
  },
88
88
  recommendationFormatParagraphDescription: {
89
89
  id: 'fabric.editor.ai.proactive.recommendation.formatParagraph.description.non-final',
90
- defaultMessage: 'Simplify content and fix spelling and grammar.',
90
+ defaultMessage: 'Clarify content writing and structure.',
91
91
  description: 'The description displayed in the side context panel for AI recommendations which suggest a format paragraph operation'
92
+ },
93
+ recommendationFormatParagraphClarityTitle: {
94
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphClarity.title.non-final',
95
+ defaultMessage: 'Clarify writing',
96
+ description: 'The title displayed in the side context panel for AI recommendations which suggest an improve paragraph clarity operation'
97
+ },
98
+ recommendationFormatParagraphClarityDescription: {
99
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphClarity.description.non-final',
100
+ defaultMessage: 'Simplify phrasing and grammar.',
101
+ description: 'The description displayed in the side context panel for AI recommendations which suggest an improve paragraph clarity operation'
102
+ },
103
+ recommendationFormatParagraphListTitle: {
104
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphList.title.non-final',
105
+ defaultMessage: 'Create list',
106
+ description: 'The title displayed in the side context panel for AI recommendations which suggest to create a list'
107
+ },
108
+ recommendationFormatParagraphListDescription: {
109
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphList.description.non-final',
110
+ defaultMessage: 'Turn content into a scannable list.',
111
+ description: 'The description displayed in the side context panel for AI recommendations which suggest to create a list'
112
+ },
113
+ recommendationFormatParagraphStructureTitle: {
114
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphStructure.title.non-final',
115
+ defaultMessage: 'Improve structure',
116
+ description: 'The title displayed in the side context panel for AI recommendations which suggest an improve paragraph structure operation'
117
+ },
118
+ recommendationFormatParagraphStructureDescription: {
119
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphStructure.description.non-final',
120
+ defaultMessage: 'Add paragraph breaks and headings.',
121
+ description: 'The description displayed in the side context panel for AI recommendations which suggest an improve paragraph structure operation'
122
+ },
123
+ recommendationFormatParagraphSpellcheckTitle: {
124
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphSpellcheck.title.non-final',
125
+ defaultMessage: 'Fix spelling',
126
+ description: 'The title displayed in the side context panel for AI recommendations which suggest an improve paragraph spellcheck operation'
127
+ },
128
+ recommendationFormatParagraphSpellcheckDescription: {
129
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphSpellcheck.description.non-final',
130
+ defaultMessage: 'Spot and correct spelling errors.',
131
+ description: 'The description displayed in the side context panel for AI recommendations which suggest an improve paragraph spellcheck operation'
92
132
  }
93
133
  });
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "99.5.5";
4
+ const packageVersion = "99.5.6";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "99.5.5";
16
+ const packageVersion = "99.5.6";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -7,8 +7,8 @@ export var aiProactiveSettingMessages = defineMessages({
7
7
  },
8
8
  toggleAllSuggestionsDescription: {
9
9
  id: 'fabric.editor.ai.proactive.moreMenu.toggleAllSuggestionsDescription.non-final',
10
- defaultMessage: 'Toggle to turn suggested edits on or off',
11
- description: 'This is the description displayed in the modal to allow the user to toggle all suggestions on or off'
10
+ defaultMessage: 'Toggle to turn suggested edits on or off.',
11
+ description: 'This is the description displayed in the modal to allow the user to toggle all suggestions on or off.'
12
12
  },
13
13
  toggleAllPanelSuggestionsTitle: {
14
14
  id: 'fabric.editor.ai.proactive.moreMenu.toggleAllPanelSuggestionsTitle.non-final',
@@ -17,7 +17,7 @@ export var aiProactiveSettingMessages = defineMessages({
17
17
  },
18
18
  toggleAllPanelSuggestionsDescription: {
19
19
  id: 'fabric.editor.ai.proactive.moreMenu.toggleAllPanelSuggestionsDescription.non-final',
20
- defaultMessage: 'Use panels to make your message stand out',
20
+ defaultMessage: 'Use panels to make your message stand out.',
21
21
  description: 'This is the description displayed in the modal to allow the user to toggle all suggestions on or off'
22
22
  },
23
23
  toggleErrorPanelTitle: {
@@ -27,7 +27,7 @@ export var aiProactiveSettingMessages = defineMessages({
27
27
  },
28
28
  toggleErrorPanelDescription: {
29
29
  id: 'fabric.editor.ai.proactive.moreMenu.toggleErrorPanelDescription.non-final',
30
- defaultMessage: 'Transform text into a red error panel',
30
+ defaultMessage: 'Transform text into a red error panel.',
31
31
  description: 'This is the description displayed in the modal to allow the user to toggle error panel on or off'
32
32
  },
33
33
  toggleInfoPanelTitle: {
@@ -37,7 +37,7 @@ export var aiProactiveSettingMessages = defineMessages({
37
37
  },
38
38
  toggleInfoPanelDescription: {
39
39
  id: 'fabric.editor.ai.proactive.moreMenu.toggleInfoPanelDescription.non-final',
40
- defaultMessage: 'Transform text into a blue information panel',
40
+ defaultMessage: 'Transform text into a blue information panel.',
41
41
  description: 'This is the description displayed in the modal to allow the user to toggle info panel on or off'
42
42
  },
43
43
  toggleNotePanelTitle: {
@@ -47,7 +47,7 @@ export var aiProactiveSettingMessages = defineMessages({
47
47
  },
48
48
  toggleNotePanelDescription: {
49
49
  id: 'fabric.editor.ai.proactive.moreMenu.toggleNotePanelDescription.non-final',
50
- defaultMessage: 'Transform text into a purple note panel',
50
+ defaultMessage: 'Transform text into a purple note panel.',
51
51
  description: 'This is the description displayed in the modal to allow the user to toggle success panel on or off'
52
52
  },
53
53
  toggleSuccessPanelTitle: {
@@ -57,7 +57,7 @@ export var aiProactiveSettingMessages = defineMessages({
57
57
  },
58
58
  toggleSuccessPanelDescription: {
59
59
  id: 'fabric.editor.ai.proactive.moreMenu.toggleSuccessPanelDescription.non-final',
60
- defaultMessage: 'Transform text into a green success panel',
60
+ defaultMessage: 'Transform text into a green success panel.',
61
61
  description: 'This is the description displayed in the modal to allow the user to toggle success panel on or off'
62
62
  },
63
63
  toggleWarningPanelTitle: {
@@ -67,7 +67,7 @@ export var aiProactiveSettingMessages = defineMessages({
67
67
  },
68
68
  toggleWarningPanelDescription: {
69
69
  id: 'fabric.editor.ai.proactive.moreMenu.toggleWarningPanelDescription.non-final',
70
- defaultMessage: 'Transform text into a yellow warning panel',
70
+ defaultMessage: 'Transform text into a yellow warning panel.',
71
71
  description: 'This is the description displayed in the modal to allow the user to toggle warning panel on or off'
72
72
  },
73
73
  toggleTableTitle: {
@@ -77,7 +77,7 @@ export var aiProactiveSettingMessages = defineMessages({
77
77
  },
78
78
  toggleTableDescription: {
79
79
  id: 'fabric.editor.ai.proactive.moreMenu.toggleTableDescription.non-final',
80
- defaultMessage: 'Format content in a table to improve readability',
80
+ defaultMessage: 'Format content in a table to improve readability.',
81
81
  description: 'This is the description displayed in the modal to allow the user to toggle table on or off'
82
82
  },
83
83
  toggleSplitParagraphTitle: {
@@ -87,17 +87,17 @@ export var aiProactiveSettingMessages = defineMessages({
87
87
  },
88
88
  toggleSplitParagraphDescription: {
89
89
  id: 'fabric.editor.ai.proactive.moreMenu.toggleSplitParagraphDescription.non-final',
90
- defaultMessage: 'Add paragraph breaks to separate key ideas',
90
+ defaultMessage: 'Add paragraph breaks to separate key ideas.',
91
91
  description: 'This is the description displayed in the modal to allow the user to toggle paragraph break on or off'
92
92
  },
93
93
  toggleFormatParagraphTitle: {
94
94
  id: 'fabric.editor.ai.proactive.moreMenu.toggleFormatParagraphTitle.non-final',
95
- defaultMessage: 'Improve paragraph',
96
- description: 'This is the title displayed in the modal to allow the user to toggle format paragraph on or off'
95
+ defaultMessage: 'Enhance content',
96
+ description: 'This is the title displayed in the modal to allow the user to toggle enhance content on or off'
97
97
  },
98
98
  toggleFormatParagraphDescription: {
99
99
  id: 'fabric.editor.ai.proactive.moreMenu.toggleFormatParagraphDescription.non-final',
100
- defaultMessage: 'Simplify content and fix spelling and grammar.',
100
+ defaultMessage: 'Suggestions for writing, lists, content structure, and spelling.',
101
101
  description: 'This is the description displayed in the modal to allow the user to toggle format paragraph on or off'
102
102
  }
103
103
  });
@@ -82,12 +82,52 @@ export var aiProactiveTransformMessages = defineMessages({
82
82
  },
83
83
  recommendationFormatParagraphTitle: {
84
84
  id: 'fabric.editor.ai.proactive.recommendation.formatParagraph.title.non-final',
85
- defaultMessage: 'Improve paragraph',
85
+ defaultMessage: 'Enhance content',
86
86
  description: 'The title displayed in the side context panel for AI recommendations which suggest a format paragraph operation'
87
87
  },
88
88
  recommendationFormatParagraphDescription: {
89
89
  id: 'fabric.editor.ai.proactive.recommendation.formatParagraph.description.non-final',
90
- defaultMessage: 'Simplify content and fix spelling and grammar.',
90
+ defaultMessage: 'Clarify content writing and structure.',
91
91
  description: 'The description displayed in the side context panel for AI recommendations which suggest a format paragraph operation'
92
+ },
93
+ recommendationFormatParagraphClarityTitle: {
94
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphClarity.title.non-final',
95
+ defaultMessage: 'Clarify writing',
96
+ description: 'The title displayed in the side context panel for AI recommendations which suggest an improve paragraph clarity operation'
97
+ },
98
+ recommendationFormatParagraphClarityDescription: {
99
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphClarity.description.non-final',
100
+ defaultMessage: 'Simplify phrasing and grammar.',
101
+ description: 'The description displayed in the side context panel for AI recommendations which suggest an improve paragraph clarity operation'
102
+ },
103
+ recommendationFormatParagraphListTitle: {
104
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphList.title.non-final',
105
+ defaultMessage: 'Create list',
106
+ description: 'The title displayed in the side context panel for AI recommendations which suggest to create a list'
107
+ },
108
+ recommendationFormatParagraphListDescription: {
109
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphList.description.non-final',
110
+ defaultMessage: 'Turn content into a scannable list.',
111
+ description: 'The description displayed in the side context panel for AI recommendations which suggest to create a list'
112
+ },
113
+ recommendationFormatParagraphStructureTitle: {
114
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphStructure.title.non-final',
115
+ defaultMessage: 'Improve structure',
116
+ description: 'The title displayed in the side context panel for AI recommendations which suggest an improve paragraph structure operation'
117
+ },
118
+ recommendationFormatParagraphStructureDescription: {
119
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphStructure.description.non-final',
120
+ defaultMessage: 'Add paragraph breaks and headings.',
121
+ description: 'The description displayed in the side context panel for AI recommendations which suggest an improve paragraph structure operation'
122
+ },
123
+ recommendationFormatParagraphSpellcheckTitle: {
124
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphSpellcheck.title.non-final',
125
+ defaultMessage: 'Fix spelling',
126
+ description: 'The title displayed in the side context panel for AI recommendations which suggest an improve paragraph spellcheck operation'
127
+ },
128
+ recommendationFormatParagraphSpellcheckDescription: {
129
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraphSpellcheck.description.non-final',
130
+ defaultMessage: 'Spot and correct spelling errors.',
131
+ description: 'The description displayed in the side context panel for AI recommendations which suggest an improve paragraph spellcheck operation'
92
132
  }
93
133
  });
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "99.5.5";
10
+ var packageVersion = "99.5.6";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "99.5.5";
23
+ var packageVersion = "99.5.6";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -17,14 +17,22 @@ type AIProactiveSuggestionDisplayToggledAEP = TrackAEP<ACTION.TOGGLED, ACTION_SU
17
17
  type AIProactiveSuggestionInsertedAEP = TrackAEP<ACTION.INSERTED, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.PROACTIVE_SUGGESTION, {
18
18
  aiInteractionID: string | undefined;
19
19
  triggeredFrom: string;
20
- transformAction: string;
20
+ transformAction?: string;
21
+ type?: string;
22
+ details?: {
23
+ [key: string]: string[] | string;
24
+ };
21
25
  transformType: 'REPLACE_PARAGRAPH';
22
26
  insertionMethod: 'replace' | 'insertBelow';
23
27
  }, undefined>;
24
28
  type AIProactiveSuggestionDismissedAEP = TrackAEP<ACTION.DISMISSED, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.PROACTIVE_SUGGESTION, {
25
29
  aiInteractionID: string | undefined;
26
30
  triggeredFrom: string;
27
- transformAction: string;
31
+ transformAction?: string;
32
+ type?: string;
33
+ details?: {
34
+ [key: string]: string[] | string;
35
+ };
28
36
  transformType: 'REPLACE_PARAGRAPH';
29
37
  }, undefined>;
30
38
  type AIProactiveSuggestionFeedbackClickedAEP = UIAEP<ACTION.CLICK, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.RESPONSE_FEEDBACK_BUTTON, {
@@ -89,4 +89,44 @@ export declare const aiProactiveTransformMessages: {
89
89
  defaultMessage: string;
90
90
  description: string;
91
91
  };
92
+ recommendationFormatParagraphClarityTitle: {
93
+ id: string;
94
+ defaultMessage: string;
95
+ description: string;
96
+ };
97
+ recommendationFormatParagraphClarityDescription: {
98
+ id: string;
99
+ defaultMessage: string;
100
+ description: string;
101
+ };
102
+ recommendationFormatParagraphListTitle: {
103
+ id: string;
104
+ defaultMessage: string;
105
+ description: string;
106
+ };
107
+ recommendationFormatParagraphListDescription: {
108
+ id: string;
109
+ defaultMessage: string;
110
+ description: string;
111
+ };
112
+ recommendationFormatParagraphStructureTitle: {
113
+ id: string;
114
+ defaultMessage: string;
115
+ description: string;
116
+ };
117
+ recommendationFormatParagraphStructureDescription: {
118
+ id: string;
119
+ defaultMessage: string;
120
+ description: string;
121
+ };
122
+ recommendationFormatParagraphSpellcheckTitle: {
123
+ id: string;
124
+ defaultMessage: string;
125
+ description: string;
126
+ };
127
+ recommendationFormatParagraphSpellcheckDescription: {
128
+ id: string;
129
+ defaultMessage: string;
130
+ description: string;
131
+ };
92
132
  };
@@ -17,14 +17,22 @@ type AIProactiveSuggestionDisplayToggledAEP = TrackAEP<ACTION.TOGGLED, ACTION_SU
17
17
  type AIProactiveSuggestionInsertedAEP = TrackAEP<ACTION.INSERTED, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.PROACTIVE_SUGGESTION, {
18
18
  aiInteractionID: string | undefined;
19
19
  triggeredFrom: string;
20
- transformAction: string;
20
+ transformAction?: string;
21
+ type?: string;
22
+ details?: {
23
+ [key: string]: string[] | string;
24
+ };
21
25
  transformType: 'REPLACE_PARAGRAPH';
22
26
  insertionMethod: 'replace' | 'insertBelow';
23
27
  }, undefined>;
24
28
  type AIProactiveSuggestionDismissedAEP = TrackAEP<ACTION.DISMISSED, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.PROACTIVE_SUGGESTION, {
25
29
  aiInteractionID: string | undefined;
26
30
  triggeredFrom: string;
27
- transformAction: string;
31
+ transformAction?: string;
32
+ type?: string;
33
+ details?: {
34
+ [key: string]: string[] | string;
35
+ };
28
36
  transformType: 'REPLACE_PARAGRAPH';
29
37
  }, undefined>;
30
38
  type AIProactiveSuggestionFeedbackClickedAEP = UIAEP<ACTION.CLICK, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.RESPONSE_FEEDBACK_BUTTON, {
@@ -89,4 +89,44 @@ export declare const aiProactiveTransformMessages: {
89
89
  defaultMessage: string;
90
90
  description: string;
91
91
  };
92
+ recommendationFormatParagraphClarityTitle: {
93
+ id: string;
94
+ defaultMessage: string;
95
+ description: string;
96
+ };
97
+ recommendationFormatParagraphClarityDescription: {
98
+ id: string;
99
+ defaultMessage: string;
100
+ description: string;
101
+ };
102
+ recommendationFormatParagraphListTitle: {
103
+ id: string;
104
+ defaultMessage: string;
105
+ description: string;
106
+ };
107
+ recommendationFormatParagraphListDescription: {
108
+ id: string;
109
+ defaultMessage: string;
110
+ description: string;
111
+ };
112
+ recommendationFormatParagraphStructureTitle: {
113
+ id: string;
114
+ defaultMessage: string;
115
+ description: string;
116
+ };
117
+ recommendationFormatParagraphStructureDescription: {
118
+ id: string;
119
+ defaultMessage: string;
120
+ description: string;
121
+ };
122
+ recommendationFormatParagraphSpellcheckTitle: {
123
+ id: string;
124
+ defaultMessage: string;
125
+ description: string;
126
+ };
127
+ recommendationFormatParagraphSpellcheckDescription: {
128
+ id: string;
129
+ defaultMessage: string;
130
+ description: string;
131
+ };
92
132
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "99.5.5",
3
+ "version": "99.5.6",
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/"