@atlaskit/editor-common 99.5.0 → 99.5.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/analytics/types/ai-events.js +5 -0
  3. package/dist/cjs/analytics/types/enums.js +2 -0
  4. package/dist/cjs/messages/ai-proactive-setting.js +109 -0
  5. package/dist/cjs/messages/ai-proactive-transform.js +99 -0
  6. package/dist/cjs/messages/ai-proactive.js +145 -0
  7. package/dist/cjs/messages/index.js +14 -0
  8. package/dist/cjs/monitoring/error.js +1 -1
  9. package/dist/cjs/ui/DropList/index.js +1 -1
  10. package/dist/es2019/analytics/types/ai-events.js +1 -0
  11. package/dist/es2019/analytics/types/enums.js +2 -0
  12. package/dist/es2019/messages/ai-proactive-setting.js +103 -0
  13. package/dist/es2019/messages/ai-proactive-transform.js +93 -0
  14. package/dist/es2019/messages/ai-proactive.js +145 -0
  15. package/dist/es2019/messages/index.js +2 -0
  16. package/dist/es2019/monitoring/error.js +1 -1
  17. package/dist/es2019/ui/DropList/index.js +1 -1
  18. package/dist/esm/analytics/types/ai-events.js +1 -0
  19. package/dist/esm/analytics/types/enums.js +2 -0
  20. package/dist/esm/messages/ai-proactive-setting.js +103 -0
  21. package/dist/esm/messages/ai-proactive-transform.js +93 -0
  22. package/dist/esm/messages/ai-proactive.js +145 -0
  23. package/dist/esm/messages/index.js +2 -0
  24. package/dist/esm/monitoring/error.js +1 -1
  25. package/dist/esm/ui/DropList/index.js +1 -1
  26. package/dist/types/analytics/index.d.ts +1 -0
  27. package/dist/types/analytics/types/ai-events.d.ts +15 -0
  28. package/dist/types/analytics/types/ai-proactive-events.d.ts +1 -1
  29. package/dist/types/analytics/types/enums.d.ts +2 -0
  30. package/dist/types/analytics/types/events.d.ts +5 -4
  31. package/dist/types/messages/ai-proactive-setting.d.ts +102 -0
  32. package/dist/types/messages/ai-proactive-transform.d.ts +92 -0
  33. package/dist/types/messages/ai-proactive.d.ts +145 -0
  34. package/dist/types/messages/index.d.ts +2 -0
  35. package/dist/types-ts4.5/analytics/index.d.ts +1 -0
  36. package/dist/types-ts4.5/analytics/types/ai-events.d.ts +15 -0
  37. package/dist/types-ts4.5/analytics/types/ai-proactive-events.d.ts +1 -1
  38. package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -0
  39. package/dist/types-ts4.5/analytics/types/events.d.ts +5 -4
  40. package/dist/types-ts4.5/messages/ai-proactive-setting.d.ts +102 -0
  41. package/dist/types-ts4.5/messages/ai-proactive-transform.d.ts +92 -0
  42. package/dist/types-ts4.5/messages/ai-proactive.d.ts +145 -0
  43. package/dist/types-ts4.5/messages/index.d.ts +2 -0
  44. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 99.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#104870](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104870)
8
+ [`79e0bedfbaf1f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/79e0bedfbaf1f) -
9
+ EDF-2202 copy ai-proactive from editor-plugin-ai to editor-plugin-ai-proactive
10
+
3
11
  ## 99.5.0
4
12
 
5
13
  ### Minor Changes
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -120,6 +120,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
120
120
  ACTION["TRANSACTION_MUTATED_AFTER_DISPATCH"] = "transactionMutatedAfterDispatched";
121
121
  ACTION["TYPING_FINISHED"] = "typingFinished";
122
122
  ACTION["TYPING_STARTED"] = "typingStarted";
123
+ ACTION["UNHANDLED_ERROR_CAUGHT"] = "unhandledErrorCaught";
123
124
  ACTION["UNLINK"] = "unlinked";
124
125
  ACTION["UNSUPPORTED_CONTENT_ENCOUNTERED"] = "unsupportedContentEncounteredV2";
125
126
  ACTION["UPDATED"] = "updated";
@@ -332,6 +333,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
332
333
  ACTION_SUBJECT_ID["EMBEDS"] = "embeds";
333
334
  ACTION_SUBJECT_ID["EMOJI"] = "emoji";
334
335
  ACTION_SUBJECT_ID["EXPAND"] = "expand";
336
+ ACTION_SUBJECT_ID["EXPERIENCE_APPLICATION"] = "experienceApplication";
335
337
  ACTION_SUBJECT_ID["EXTENSION"] = "extension";
336
338
  ACTION_SUBJECT_ID["EXTENSION_API"] = "extensionApi";
337
339
  ACTION_SUBJECT_ID["EXTENSION_BLOCK"] = "extension";
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.aiProactiveSettingMessages = void 0;
7
+ var _reactIntlNext = require("react-intl-next");
8
+ var aiProactiveSettingMessages = exports.aiProactiveSettingMessages = (0, _reactIntlNext.defineMessages)({
9
+ toggleAllSuggestionsTitle: {
10
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleAllSuggestionsTitle.non-final',
11
+ defaultMessage: 'All suggestions',
12
+ description: 'This is the title displayed in the modal to allow the user to toggle all suggestions on or off'
13
+ },
14
+ toggleAllSuggestionsDescription: {
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'
18
+ },
19
+ toggleAllPanelSuggestionsTitle: {
20
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleAllPanelSuggestionsTitle.non-final',
21
+ defaultMessage: 'Panels',
22
+ description: 'This is the title displayed in the modal to allow the user to toggle all suggestions on or off'
23
+ },
24
+ toggleAllPanelSuggestionsDescription: {
25
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleAllPanelSuggestionsDescription.non-final',
26
+ defaultMessage: 'Use panels to make your message stand out',
27
+ description: 'This is the description displayed in the modal to allow the user to toggle all suggestions on or off'
28
+ },
29
+ toggleErrorPanelTitle: {
30
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleErrorPanelTitle.non-final',
31
+ defaultMessage: 'Error panel',
32
+ description: 'This is the title displayed in the modal to allow the user to toggle error panel on or off'
33
+ },
34
+ toggleErrorPanelDescription: {
35
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleErrorPanelDescription.non-final',
36
+ defaultMessage: 'Transform text into a red error panel',
37
+ description: 'This is the description displayed in the modal to allow the user to toggle error panel on or off'
38
+ },
39
+ toggleInfoPanelTitle: {
40
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleInfoPanelTitle.non-final',
41
+ defaultMessage: 'Info panel',
42
+ description: 'This is the title displayed in the modal to allow the user to toggle info panel on or off'
43
+ },
44
+ toggleInfoPanelDescription: {
45
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleInfoPanelDescription.non-final',
46
+ defaultMessage: 'Transform text into a blue information panel',
47
+ description: 'This is the description displayed in the modal to allow the user to toggle info panel on or off'
48
+ },
49
+ toggleNotePanelTitle: {
50
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleNotePanelTitle.non-final',
51
+ defaultMessage: 'Note panel',
52
+ description: 'This is the title displayed in the modal to allow the user to toggle success panel on or off'
53
+ },
54
+ toggleNotePanelDescription: {
55
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleNotePanelDescription.non-final',
56
+ defaultMessage: 'Transform text into a purple note panel',
57
+ description: 'This is the description displayed in the modal to allow the user to toggle success panel on or off'
58
+ },
59
+ toggleSuccessPanelTitle: {
60
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleSuccessPanelTitle.non-final',
61
+ defaultMessage: 'Success panel',
62
+ description: 'This is the title displayed in the modal to allow the user to toggle success panel on or off'
63
+ },
64
+ toggleSuccessPanelDescription: {
65
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleSuccessPanelDescription.non-final',
66
+ defaultMessage: 'Transform text into a green success panel',
67
+ description: 'This is the description displayed in the modal to allow the user to toggle success panel on or off'
68
+ },
69
+ toggleWarningPanelTitle: {
70
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleWarningPanelTitle.non-final',
71
+ defaultMessage: 'Warning panel',
72
+ description: 'This is the title displayed in the modal to allow the user to toggle warning panel on or off'
73
+ },
74
+ toggleWarningPanelDescription: {
75
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleWarningPanelDescription.non-final',
76
+ defaultMessage: 'Transform text into a yellow warning panel',
77
+ description: 'This is the description displayed in the modal to allow the user to toggle warning panel on or off'
78
+ },
79
+ toggleTableTitle: {
80
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleTableTitle.non-final',
81
+ defaultMessage: 'Table',
82
+ description: 'This is the title displayed in the modal to allow the user to toggle table on or off'
83
+ },
84
+ toggleTableDescription: {
85
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleTableDescription.non-final',
86
+ defaultMessage: 'Format content in a table to improve readability',
87
+ description: 'This is the description displayed in the modal to allow the user to toggle table on or off'
88
+ },
89
+ toggleSplitParagraphTitle: {
90
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleSplitParagraphTitle.non-final',
91
+ defaultMessage: 'Paragraph break',
92
+ description: 'This is the title displayed in the modal to allow the user to toggle paragraph break on or off'
93
+ },
94
+ toggleSplitParagraphDescription: {
95
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleSplitParagraphDescription.non-final',
96
+ defaultMessage: 'Add paragraph breaks to separate key ideas',
97
+ description: 'This is the description displayed in the modal to allow the user to toggle paragraph break on or off'
98
+ },
99
+ toggleFormatParagraphTitle: {
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'
103
+ },
104
+ toggleFormatParagraphDescription: {
105
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleFormatParagraphDescription.non-final',
106
+ defaultMessage: 'Simplify content and fix spelling and grammar.',
107
+ description: 'This is the description displayed in the modal to allow the user to toggle format paragraph on or off'
108
+ }
109
+ });
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.aiProactiveTransformMessages = void 0;
7
+ var _reactIntlNext = require("react-intl-next");
8
+ var aiProactiveTransformMessages = exports.aiProactiveTransformMessages = (0, _reactIntlNext.defineMessages)({
9
+ recommendationDefaultTitle: {
10
+ id: 'fabric.editor.ai.proactive.recommendation.default.title.non-final',
11
+ defaultMessage: 'Suggestion',
12
+ description: 'The default generic title displayed in the side context panel for AI recommendations which have not explicit matching override'
13
+ },
14
+ recommendationDefaultDescription: {
15
+ id: 'fabric.editor.ai.proactive.recommendation.default.description.non-final',
16
+ defaultMessage: 'A suggestion to improve the content.',
17
+ description: 'The default generic description displayed in the side context panel for AI recommendations which have no explicit matching override'
18
+ },
19
+ recommendationConvertToTableTitle: {
20
+ id: 'fabric.editor.ai.proactive.recommendation.convertToTable.title.non-final',
21
+ defaultMessage: 'Format in table',
22
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a conversion to table operation'
23
+ },
24
+ recommendationConvertToTableDescription: {
25
+ id: 'fabric.editor.ai.proactive.recommendation.convertToTable.description.non-final',
26
+ defaultMessage: 'Format content in a table to improve readability.',
27
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a conversion to table operation'
28
+ },
29
+ recommendationConvertToNotePanelTitle: {
30
+ id: 'fabric.editor.ai.proactive.recommendation.convertToNotePanel.title.non-final',
31
+ defaultMessage: 'Frame with note panel',
32
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a conversion to note panel operation'
33
+ },
34
+ recommendationConvertToNotePanelDescription: {
35
+ id: 'fabric.editor.ai.proactive.recommendation.convertToNotePanel.description.non-final',
36
+ defaultMessage: 'Use a purple note panel to make your message stand out.',
37
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a conversion to note panel operation'
38
+ },
39
+ recommendationConvertToInfoPanelTitle: {
40
+ id: 'fabric.editor.ai.proactive.recommendation.convertToInfoPanel.title.non-final',
41
+ defaultMessage: 'Frame with info panel',
42
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a conversion to note panel operation'
43
+ },
44
+ recommendationConvertToInfoPanelDescription: {
45
+ id: 'fabric.editor.ai.proactive.recommendation.convertToInfoPanel.description.non-final',
46
+ defaultMessage: 'Use a blue info panel to make your message stand out. ',
47
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a conversion to info panel operation'
48
+ },
49
+ recommendationConvertToWarnPanelTitle: {
50
+ id: 'fabric.editor.ai.proactive.recommendation.convertToWarnPanel.title.non-final',
51
+ defaultMessage: 'Frame with warning panel',
52
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a conversion to warning panel operation'
53
+ },
54
+ recommendationConvertToWarnPanelDescription: {
55
+ id: 'fabric.editor.ai.proactive.recommendation.convertToWarnPanel.description.non-final',
56
+ defaultMessage: 'Use a yellow warning panel to make your message stand out.',
57
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a conversion to warning panel operation'
58
+ },
59
+ recommendationConvertToErrorPanelTitle: {
60
+ id: 'fabric.editor.ai.proactive.recommendation.convertToErrorPanel.title.non-final',
61
+ defaultMessage: 'Frame with error panel',
62
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a conversion to error panel operation'
63
+ },
64
+ recommendationConvertToErrorPanelDescription: {
65
+ id: 'fabric.editor.ai.proactive.recommendation.convertToErrorPanel.description.non-final',
66
+ defaultMessage: 'Use a red error panel to make your message stand out.',
67
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a conversion to error panel operation'
68
+ },
69
+ recommendationConvertToSuccessPanelTitle: {
70
+ id: 'fabric.editor.ai.proactive.recommendation.convertToSuccessPanel.title.non-final',
71
+ defaultMessage: 'Frame with success panel',
72
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a conversion to success panel operation'
73
+ },
74
+ recommendationConvertToSuccessPanelDescription: {
75
+ id: 'fabric.editor.ai.proactive.recommendation.convertToSuccessPanel.description.non-final',
76
+ defaultMessage: 'Use a green success panel to make your message stand out.',
77
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a conversion to success panel operation'
78
+ },
79
+ recommendationSplitParagraphTitle: {
80
+ id: 'fabric.editor.ai.proactive.recommendation.splitParagraph.title.non-final',
81
+ defaultMessage: 'Divide paragraph',
82
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a split paragraph operation'
83
+ },
84
+ recommendationSplitParagraphDescription: {
85
+ id: 'fabric.editor.ai.proactive.recommendation.splitParagraph.description.non-final',
86
+ defaultMessage: 'Add paragraph breaks to separate key ideas.',
87
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a split paragraph operation'
88
+ },
89
+ recommendationFormatParagraphTitle: {
90
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraph.title.non-final',
91
+ defaultMessage: 'Improve paragraph',
92
+ description: 'The title displayed in the side context panel for AI recommendations which suggest a format paragraph operation'
93
+ },
94
+ recommendationFormatParagraphDescription: {
95
+ id: 'fabric.editor.ai.proactive.recommendation.formatParagraph.description.non-final',
96
+ defaultMessage: 'Simplify content and fix spelling and grammar.',
97
+ description: 'The description displayed in the side context panel for AI recommendations which suggest a format paragraph operation'
98
+ }
99
+ });
@@ -10,5 +10,150 @@ var aiProactiveMessages = exports.aiProactiveMessages = (0, _reactIntlNext.defin
10
10
  id: 'fabric.editor.ai.proactive.loading.iconAltText.non-final',
11
11
  defaultMessage: 'Loading icon',
12
12
  description: 'Icon alt text of the Loading icon'
13
+ },
14
+ findingSuggestionsLabel: {
15
+ id: 'fabric.editor.ai.proactive.findingSuggestionsLabel.non-final',
16
+ defaultMessage: 'Finding suggestions',
17
+ description: 'The label next to the spinner which indicates recommendations are being requested.'
18
+ },
19
+ findingSuggestionsLoadingLabel: {
20
+ id: 'fabric.editor.ai.proactive.findingSuggestionsLoadingLabel.non-final',
21
+ defaultMessage: 'Finding suggestions',
22
+ description: 'This is the label under the loading spinner when suggestions are being reloaded.'
23
+ },
24
+ findingMoreSuggestionsLoadingLabel: {
25
+ id: 'fabric.editor.ai.proactive.findingMoreSuggestionsLoadingLabel.non-final',
26
+ defaultMessage: 'Finding more suggestions',
27
+ description: 'The label next to the spinner which indicates more recommendations are being requested.'
28
+ },
29
+ unhandledErrorMessage: {
30
+ id: 'fabric.editor.ai.proactive.error.unhandledErrorMessage',
31
+ defaultMessage: "We're having trouble. Close the dialog and try again.",
32
+ description: 'Message to users that displays when an unexpected error happens'
33
+ },
34
+ markdownErrorMessage: {
35
+ id: 'fabric.editor.ai.proactive.error.markdownErrorMessage',
36
+ defaultMessage: "We're having trouble generating the preview. Close the dialog and try again.",
37
+ description: 'Message to users that displays when an error occurs while generating a preview.'
38
+ },
39
+ recommendationPreviewButtonLabel: {
40
+ id: 'fabric.editor.ai.proactive.recommendation.preview.button.non-final',
41
+ defaultMessage: 'Preview',
42
+ description: 'The preview button label which allows the user to open the preview modal and see the AI recommendation which will be applied when the user inserts'
43
+ },
44
+ recommendationReplaceButtonLabel: {
45
+ id: 'fabric.editor.ai.proactive.recommendation.replace.button.non-final',
46
+ defaultMessage: 'Replace',
47
+ description: 'The replace button label, when clicked the AI recommendation which immediately be inserted'
48
+ },
49
+ recommendationDismissButtonLabel: {
50
+ id: 'fabric.editor.ai.proactive.recommendation.dismiss.button.non-final',
51
+ defaultMessage: 'Dismiss',
52
+ description: 'The dismiss button label,when clicked the AI recommendation will be removed from the list and no longer displayed to the user'
53
+ },
54
+ dismissProactiveRecommendation: {
55
+ id: 'fabric.editor.ai.proactive.preview.dismissProactiveRecommendation.non-final',
56
+ defaultMessage: 'Dismiss',
57
+ description: 'Label for button to dismiss the proactive recommendation'
58
+ },
59
+ insertBelowProactiveRecommendation: {
60
+ id: 'fabric.editor.ai.proactive.preview.insertBelowProactiveRecommendation',
61
+ defaultMessage: 'Insert below',
62
+ description: 'Label for button to insert the proactive recommendation below the user selection'
63
+ },
64
+ replaceProactiveRecommendation: {
65
+ id: 'fabric.editor.ai.proactive.preview.replaceProactiveRecommendation',
66
+ defaultMessage: 'Replace',
67
+ description: 'Label for button to replace selection with proactive recommendation'
68
+ },
69
+ spellingAndGrammarLabel: {
70
+ id: 'fabric.editor.ai.proactive.spellingAndGrammar.label.non-final',
71
+ defaultMessage: 'Spelling and grammar',
72
+ description: 'The label displayed in the context panel on the spelling and grammar item which display the total spelling and grammar issues found'
73
+ },
74
+ ManageSuggestionTitle: {
75
+ id: 'fabric.editor.ai.proactive.moreMenu.manageSuggestionsTitle.non-final',
76
+ defaultMessage: 'Manage suggestions',
77
+ description: 'This is the message displayed in the more menu dropdown in the context panel to allow the user to manage suggestions on the suggestions'
78
+ },
79
+ closeButtonLabel: {
80
+ id: 'fabric.editor.ai.proactive.close.label.non-final',
81
+ defaultMessage: 'Close',
82
+ description: 'This is the text applied to the Close icon button label'
83
+ },
84
+ suggestionsTitle: {
85
+ id: 'fabric.editor.ai.proactive.suggestions.title.non-final',
86
+ defaultMessage: 'Suggestions',
87
+ description: 'The title displayed at the top of the context panel for all recommendations displayed'
88
+ },
89
+ betaLabel: {
90
+ id: 'fabric.editor.ai.proactive.beta.label.non-final',
91
+ defaultMessage: 'BETA',
92
+ description: 'This is a lozenge displayed in the suggested edits header to signify that this is a beta feature'
93
+ },
94
+ moreMenuLabel: {
95
+ id: 'fabric.editor.ai.proactive.moreMenu.label.non-final',
96
+ defaultMessage: 'more',
97
+ description: 'This is the message displayed tooltip in the more menu dropdown in the context panel'
98
+ },
99
+ moreMenuManageSuggestions: {
100
+ id: 'fabric.editor.ai.proactive.moreMenu.manageSuggestions.non-final',
101
+ defaultMessage: 'Manage Suggestions',
102
+ description: 'This is the message displayed in the more menu dropdown in the context panel to allow the user to manage suggestions on the suggestions'
103
+ },
104
+ moreMenuGiveFeedback: {
105
+ id: 'fabric.editor.ai.proactive.moreMenu.giveFeedback.non-final',
106
+ defaultMessage: 'Give feedback',
107
+ description: 'This is the message displayed in the more menu dropdown in the context panel to allow the user to give feedback on the suggestions'
108
+ },
109
+ moreActionsLabel: {
110
+ id: 'fabric.editor.ai.proactive.moreActions.label.non-final',
111
+ defaultMessage: 'More actions',
112
+ description: 'This is the text applied to the More icon button label'
113
+ },
114
+ reloadSuggestionsStateTitle: {
115
+ id: 'fabric.editor.ai.proactive.reloadSuggestionsState.title.non-final',
116
+ defaultMessage: 'Your content’s looking good',
117
+ description: 'This is the title of the message displayed in the suggested edits panel when there are new recommendations left after a user has dismissed them all.'
118
+ },
119
+ reloadSuggestionsStateDescription: {
120
+ id: 'fabric.editor.ai.proactive.reloadSuggestionsState.description.non-final',
121
+ defaultMessage: 'Any new suggestions will appear here.',
122
+ description: 'This is the message displayed in the suggested edits panel when there are no new recommendations left after a user has dismissed them all.'
123
+ },
124
+ reloadSuggestionsButtonLabel: {
125
+ id: 'fabric.editor.ai.proactive.reloadSuggestionsButtonLabel.non-final',
126
+ defaultMessage: 'View past suggestions',
127
+ description: 'This is the button label to reload suggestions when a user has dismised all recommendations.'
128
+ },
129
+ noSuggestionsStateTitle: {
130
+ id: 'fabric.editor.ai.proactive.noSuggestionsState.title.non-final',
131
+ defaultMessage: 'Suggestions will appear here',
132
+ description: 'This is the title of the message displayed in the suggested edits panel when there are no recommendations available.'
133
+ },
134
+ noSuggestionsStateDescription: {
135
+ id: 'fabric.editor.ai.proactive.noSuggestionsState.description.non-final',
136
+ defaultMessage: 'You can also ask AI to improve your page with requests such as <i>Add a table of contents</i> or <i>Create headings</i>.',
137
+ description: 'This is the message displayed in the suggested edits panel when there are no recommendations available'
138
+ },
139
+ askAIButtonLabel: {
140
+ id: 'fabric.editor.ai.proactive.askAIButtonLabel.non-final',
141
+ defaultMessage: 'Ask AI',
142
+ description: 'This is the button label to open the AI modal.'
143
+ },
144
+ enableSuggestionsStateTitle: {
145
+ id: 'fabric.editor.ai.proactive.enableSuggestionsState.title.non-final',
146
+ defaultMessage: 'You create. We polish.',
147
+ description: 'This is the title of the message displayed in the suggested edits panel when suggestions are disabled.'
148
+ },
149
+ enableSuggestionsStateDescription: {
150
+ id: 'fabric.editor.ai.proactive.enableSuggestionsState.description.non-final',
151
+ defaultMessage: 'Turn on suggested edits to quickly preview content improvements.',
152
+ description: 'This is the message displayed in the suggested edits panel when suggestions are disabled.'
153
+ },
154
+ enableSuggestionsButtonLabel: {
155
+ id: 'fabric.editor.ai.proactive.enableSuggestionsButtonLabel.non-final',
156
+ defaultMessage: 'Turn on',
157
+ description: 'This is the button label in the suggested edits panel when suggestions are disabled.'
13
158
  }
14
159
  });
@@ -15,6 +15,18 @@ Object.defineProperty(exports, "aiProactiveMessages", {
15
15
  return _aiProactive.aiProactiveMessages;
16
16
  }
17
17
  });
18
+ Object.defineProperty(exports, "aiProactiveSettingMessages", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _aiProactiveSetting.aiProactiveSettingMessages;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "aiProactiveTransformMessages", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _aiProactiveTransform.aiProactiveTransformMessages;
28
+ }
29
+ });
18
30
  Object.defineProperty(exports, "alignmentMessages", {
19
31
  enumerable: true,
20
32
  get: function get() {
@@ -211,6 +223,8 @@ Object.defineProperty(exports, "unsupportedContentMessages", {
211
223
  var _reactIntlNext = require("react-intl-next");
212
224
  var _aiDefinitions = require("./ai-definitions");
213
225
  var _aiProactive = require("./ai-proactive");
226
+ var _aiProactiveSetting = require("./ai-proactive-setting");
227
+ var _aiProactiveTransform = require("./ai-proactive-transform");
214
228
  var _alignment = require("./alignment");
215
229
  var _annotation = require("./annotation");
216
230
  var _blockType = require("./block-type");
@@ -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.0";
20
+ var packageVersion = "99.5.1";
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.0";
26
+ var packageVersion = "99.5.1";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -0,0 +1 @@
1
+ export {};
@@ -114,6 +114,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
114
114
  ACTION["TRANSACTION_MUTATED_AFTER_DISPATCH"] = "transactionMutatedAfterDispatched";
115
115
  ACTION["TYPING_FINISHED"] = "typingFinished";
116
116
  ACTION["TYPING_STARTED"] = "typingStarted";
117
+ ACTION["UNHANDLED_ERROR_CAUGHT"] = "unhandledErrorCaught";
117
118
  ACTION["UNLINK"] = "unlinked";
118
119
  ACTION["UNSUPPORTED_CONTENT_ENCOUNTERED"] = "unsupportedContentEncounteredV2";
119
120
  ACTION["UPDATED"] = "updated";
@@ -326,6 +327,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
326
327
  ACTION_SUBJECT_ID["EMBEDS"] = "embeds";
327
328
  ACTION_SUBJECT_ID["EMOJI"] = "emoji";
328
329
  ACTION_SUBJECT_ID["EXPAND"] = "expand";
330
+ ACTION_SUBJECT_ID["EXPERIENCE_APPLICATION"] = "experienceApplication";
329
331
  ACTION_SUBJECT_ID["EXTENSION"] = "extension";
330
332
  ACTION_SUBJECT_ID["EXTENSION_API"] = "extensionApi";
331
333
  ACTION_SUBJECT_ID["EXTENSION_BLOCK"] = "extension";
@@ -0,0 +1,103 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export const aiProactiveSettingMessages = defineMessages({
3
+ toggleAllSuggestionsTitle: {
4
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleAllSuggestionsTitle.non-final',
5
+ defaultMessage: 'All suggestions',
6
+ description: 'This is the title displayed in the modal to allow the user to toggle all suggestions on or off'
7
+ },
8
+ toggleAllSuggestionsDescription: {
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'
12
+ },
13
+ toggleAllPanelSuggestionsTitle: {
14
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleAllPanelSuggestionsTitle.non-final',
15
+ defaultMessage: 'Panels',
16
+ description: 'This is the title displayed in the modal to allow the user to toggle all suggestions on or off'
17
+ },
18
+ toggleAllPanelSuggestionsDescription: {
19
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleAllPanelSuggestionsDescription.non-final',
20
+ defaultMessage: 'Use panels to make your message stand out',
21
+ description: 'This is the description displayed in the modal to allow the user to toggle all suggestions on or off'
22
+ },
23
+ toggleErrorPanelTitle: {
24
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleErrorPanelTitle.non-final',
25
+ defaultMessage: 'Error panel',
26
+ description: 'This is the title displayed in the modal to allow the user to toggle error panel on or off'
27
+ },
28
+ toggleErrorPanelDescription: {
29
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleErrorPanelDescription.non-final',
30
+ defaultMessage: 'Transform text into a red error panel',
31
+ description: 'This is the description displayed in the modal to allow the user to toggle error panel on or off'
32
+ },
33
+ toggleInfoPanelTitle: {
34
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleInfoPanelTitle.non-final',
35
+ defaultMessage: 'Info panel',
36
+ description: 'This is the title displayed in the modal to allow the user to toggle info panel on or off'
37
+ },
38
+ toggleInfoPanelDescription: {
39
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleInfoPanelDescription.non-final',
40
+ defaultMessage: 'Transform text into a blue information panel',
41
+ description: 'This is the description displayed in the modal to allow the user to toggle info panel on or off'
42
+ },
43
+ toggleNotePanelTitle: {
44
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleNotePanelTitle.non-final',
45
+ defaultMessage: 'Note panel',
46
+ description: 'This is the title displayed in the modal to allow the user to toggle success panel on or off'
47
+ },
48
+ toggleNotePanelDescription: {
49
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleNotePanelDescription.non-final',
50
+ defaultMessage: 'Transform text into a purple note panel',
51
+ description: 'This is the description displayed in the modal to allow the user to toggle success panel on or off'
52
+ },
53
+ toggleSuccessPanelTitle: {
54
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleSuccessPanelTitle.non-final',
55
+ defaultMessage: 'Success panel',
56
+ description: 'This is the title displayed in the modal to allow the user to toggle success panel on or off'
57
+ },
58
+ toggleSuccessPanelDescription: {
59
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleSuccessPanelDescription.non-final',
60
+ defaultMessage: 'Transform text into a green success panel',
61
+ description: 'This is the description displayed in the modal to allow the user to toggle success panel on or off'
62
+ },
63
+ toggleWarningPanelTitle: {
64
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleWarningPanelTitle.non-final',
65
+ defaultMessage: 'Warning panel',
66
+ description: 'This is the title displayed in the modal to allow the user to toggle warning panel on or off'
67
+ },
68
+ toggleWarningPanelDescription: {
69
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleWarningPanelDescription.non-final',
70
+ defaultMessage: 'Transform text into a yellow warning panel',
71
+ description: 'This is the description displayed in the modal to allow the user to toggle warning panel on or off'
72
+ },
73
+ toggleTableTitle: {
74
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleTableTitle.non-final',
75
+ defaultMessage: 'Table',
76
+ description: 'This is the title displayed in the modal to allow the user to toggle table on or off'
77
+ },
78
+ toggleTableDescription: {
79
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleTableDescription.non-final',
80
+ defaultMessage: 'Format content in a table to improve readability',
81
+ description: 'This is the description displayed in the modal to allow the user to toggle table on or off'
82
+ },
83
+ toggleSplitParagraphTitle: {
84
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleSplitParagraphTitle.non-final',
85
+ defaultMessage: 'Paragraph break',
86
+ description: 'This is the title displayed in the modal to allow the user to toggle paragraph break on or off'
87
+ },
88
+ toggleSplitParagraphDescription: {
89
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleSplitParagraphDescription.non-final',
90
+ defaultMessage: 'Add paragraph breaks to separate key ideas',
91
+ description: 'This is the description displayed in the modal to allow the user to toggle paragraph break on or off'
92
+ },
93
+ toggleFormatParagraphTitle: {
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'
97
+ },
98
+ toggleFormatParagraphDescription: {
99
+ id: 'fabric.editor.ai.proactive.moreMenu.toggleFormatParagraphDescription.non-final',
100
+ defaultMessage: 'Simplify content and fix spelling and grammar.',
101
+ description: 'This is the description displayed in the modal to allow the user to toggle format paragraph on or off'
102
+ }
103
+ });