@atlaskit/editor-common 100.4.3 → 101.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/ai-messages/package.json +17 -0
  3. package/dist/cjs/ai-messages/ai-config-items.js +489 -0
  4. package/dist/cjs/ai-messages/ai-experience-application.js +131 -0
  5. package/dist/cjs/ai-messages/ai-failed-state.js +56 -0
  6. package/dist/cjs/ai-messages/ai-languages.js +368 -0
  7. package/dist/cjs/ai-messages/ai.js +122 -0
  8. package/dist/cjs/ai-messages/index.js +68 -0
  9. package/dist/cjs/card/index.js +13 -0
  10. package/dist/cjs/card/link-toolbar-button-group-options.js +2 -2
  11. package/dist/cjs/card/link-toolbar-dropdown-options.js +33 -0
  12. package/dist/cjs/element-browser/components/ElementList/EmptyState.js +1 -1
  13. package/dist/cjs/extensibility/Extension/Lozenge/EditToggle.js +1 -1
  14. package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  15. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  16. package/dist/cjs/media/messages/altText.js +5 -0
  17. package/dist/cjs/messages/index.js +0 -28
  18. package/dist/cjs/monitoring/error.js +1 -1
  19. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +35 -8
  20. package/dist/cjs/selection/gap-cursor/styles.js +1 -1
  21. package/dist/cjs/type-ahead/messages.js +10 -0
  22. package/dist/cjs/ui/DropList/index.js +1 -1
  23. package/dist/cjs/ui/FloatingToolbar/Button.js +5 -2
  24. package/dist/cjs/ui/FloatingToolbar/Separator.js +12 -6
  25. package/dist/cjs/ui-menu/ColorPickerButton/index.js +2 -1
  26. package/dist/es2019/ai-messages/ai-config-items.js +483 -0
  27. package/dist/es2019/ai-messages/ai-experience-application.js +124 -0
  28. package/dist/es2019/ai-messages/ai-failed-state.js +49 -0
  29. package/dist/es2019/ai-messages/ai-languages.js +361 -0
  30. package/dist/es2019/ai-messages/ai.js +116 -0
  31. package/dist/es2019/ai-messages/index.js +12 -0
  32. package/dist/es2019/card/index.js +2 -1
  33. package/dist/es2019/card/link-toolbar-button-group-options.js +1 -1
  34. package/dist/es2019/card/link-toolbar-dropdown-options.js +26 -0
  35. package/dist/es2019/element-browser/components/ElementList/EmptyState.js +1 -1
  36. package/dist/es2019/extensibility/Extension/Lozenge/EditToggle.js +1 -1
  37. package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  38. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  39. package/dist/es2019/media/messages/altText.js +5 -0
  40. package/dist/es2019/messages/index.js +0 -4
  41. package/dist/es2019/monitoring/error.js +1 -1
  42. package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +34 -8
  43. package/dist/es2019/selection/gap-cursor/styles.js +1 -1
  44. package/dist/es2019/type-ahead/messages.js +10 -0
  45. package/dist/es2019/ui/DropList/index.js +1 -1
  46. package/dist/es2019/ui/FloatingToolbar/Button.js +5 -1
  47. package/dist/es2019/ui/FloatingToolbar/Separator.js +11 -4
  48. package/dist/es2019/ui-menu/ColorPickerButton/index.js +2 -1
  49. package/dist/esm/ai-messages/ai-config-items.js +483 -0
  50. package/dist/esm/ai-messages/ai-experience-application.js +124 -0
  51. package/dist/esm/ai-messages/ai-failed-state.js +49 -0
  52. package/dist/esm/ai-messages/ai-languages.js +361 -0
  53. package/dist/esm/ai-messages/ai.js +116 -0
  54. package/dist/esm/ai-messages/index.js +12 -0
  55. package/dist/esm/card/index.js +2 -1
  56. package/dist/esm/card/link-toolbar-button-group-options.js +1 -1
  57. package/dist/esm/card/link-toolbar-dropdown-options.js +26 -0
  58. package/dist/esm/element-browser/components/ElementList/EmptyState.js +1 -1
  59. package/dist/esm/extensibility/Extension/Lozenge/EditToggle.js +1 -1
  60. package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  61. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  62. package/dist/esm/media/messages/altText.js +5 -0
  63. package/dist/esm/messages/index.js +0 -4
  64. package/dist/esm/monitoring/error.js +1 -1
  65. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +35 -8
  66. package/dist/esm/selection/gap-cursor/styles.js +1 -1
  67. package/dist/esm/type-ahead/messages.js +10 -0
  68. package/dist/esm/ui/DropList/index.js +1 -1
  69. package/dist/esm/ui/FloatingToolbar/Button.js +5 -2
  70. package/dist/esm/ui/FloatingToolbar/Separator.js +12 -6
  71. package/dist/esm/ui-menu/ColorPickerButton/index.js +2 -1
  72. package/dist/types/ai-messages/ai-config-items.d.ts +462 -0
  73. package/dist/types/ai-messages/ai-experience-application.d.ts +122 -0
  74. package/dist/types/ai-messages/ai-failed-state.d.ts +47 -0
  75. package/dist/types/ai-messages/ai-languages.d.ts +357 -0
  76. package/dist/types/ai-messages/ai.d.ts +107 -0
  77. package/dist/types/ai-messages/index.d.ts +9 -0
  78. package/dist/types/card/index.d.ts +2 -1
  79. package/dist/types/card/link-toolbar-button-group-options.d.ts +51 -0
  80. package/dist/types/card/link-toolbar-dropdown-options.d.ts +4 -0
  81. package/dist/types/media/messages/altText.d.ts +5 -0
  82. package/dist/types/messages/index.d.ts +0 -4
  83. package/dist/types/type-ahead/messages.d.ts +10 -0
  84. package/dist/types-ts4.5/ai-messages/ai-config-items.d.ts +462 -0
  85. package/dist/types-ts4.5/ai-messages/ai-experience-application.d.ts +122 -0
  86. package/dist/types-ts4.5/ai-messages/ai-failed-state.d.ts +47 -0
  87. package/dist/types-ts4.5/ai-messages/ai-languages.d.ts +357 -0
  88. package/dist/types-ts4.5/ai-messages/ai.d.ts +107 -0
  89. package/dist/types-ts4.5/ai-messages/index.d.ts +9 -0
  90. package/dist/types-ts4.5/card/index.d.ts +2 -1
  91. package/dist/types-ts4.5/card/link-toolbar-button-group-options.d.ts +51 -0
  92. package/dist/types-ts4.5/card/link-toolbar-dropdown-options.d.ts +4 -0
  93. package/dist/types-ts4.5/media/messages/altText.d.ts +5 -0
  94. package/dist/types-ts4.5/messages/index.d.ts +0 -4
  95. package/dist/types-ts4.5/type-ahead/messages.d.ts +10 -0
  96. package/package.json +9 -11
  97. /package/dist/cjs/{messages → ai-messages}/ai-definitions.js +0 -0
  98. /package/dist/cjs/{messages → ai-messages}/ai-proactive-setting.js +0 -0
  99. /package/dist/cjs/{messages → ai-messages}/ai-proactive-transform.js +0 -0
  100. /package/dist/cjs/{messages → ai-messages}/ai-proactive.js +0 -0
  101. /package/dist/es2019/{messages → ai-messages}/ai-definitions.js +0 -0
  102. /package/dist/es2019/{messages → ai-messages}/ai-proactive-setting.js +0 -0
  103. /package/dist/es2019/{messages → ai-messages}/ai-proactive-transform.js +0 -0
  104. /package/dist/es2019/{messages → ai-messages}/ai-proactive.js +0 -0
  105. /package/dist/esm/{messages → ai-messages}/ai-definitions.js +0 -0
  106. /package/dist/esm/{messages → ai-messages}/ai-proactive-setting.js +0 -0
  107. /package/dist/esm/{messages → ai-messages}/ai-proactive-transform.js +0 -0
  108. /package/dist/esm/{messages → ai-messages}/ai-proactive.js +0 -0
  109. /package/dist/types/{messages → ai-messages}/ai-definitions.d.ts +0 -0
  110. /package/dist/types/{messages → ai-messages}/ai-proactive-setting.d.ts +0 -0
  111. /package/dist/types/{messages → ai-messages}/ai-proactive-transform.d.ts +0 -0
  112. /package/dist/types/{messages → ai-messages}/ai-proactive.d.ts +0 -0
  113. /package/dist/types-ts4.5/{messages → ai-messages}/ai-definitions.d.ts +0 -0
  114. /package/dist/types-ts4.5/{messages → ai-messages}/ai-proactive-setting.d.ts +0 -0
  115. /package/dist/types-ts4.5/{messages → ai-messages}/ai-proactive-transform.d.ts +0 -0
  116. /package/dist/types-ts4.5/{messages → ai-messages}/ai-proactive.d.ts +0 -0
@@ -0,0 +1,483 @@
1
+ import { defineMessages } from 'react-intl-next';
2
+ export var aiConfigItemMessages = defineMessages({
3
+ // Agent config messages
4
+ agentConfigTitle: {
5
+ id: 'fabric.editor.ai.config.item.agent.title',
6
+ defaultMessage: 'Atlassian Intelligence Rovo Agent',
7
+ description: 'Title for the menu item of the Atlassian Intelligence agent without a predefined name.'
8
+ },
9
+ agentConfigDescription: {
10
+ id: 'fabric.editor.ai.config.item.range.agent.description',
11
+ defaultMessage: 'No description',
12
+ description: 'Subtitle for the menu item of the Atlassian Intelligence agent without a predefined description.'
13
+ },
14
+ agentConfigPromptHint: {
15
+ id: 'fabric.editor.ai.config.item.range.agent.prompt.hint',
16
+ defaultMessage: 'Tell the Agent to write anything or choose from below',
17
+ description: 'Hint text for the prompt input when interacting with the Atlassian Intelligence'
18
+ },
19
+ // Config action messages
20
+ configActionInsert: {
21
+ id: 'fabric.editor.ai.config.item.action.insert',
22
+ defaultMessage: 'Insert',
23
+ description: 'Inserts the response at the current location'
24
+ },
25
+ configActionInsertAtTop: {
26
+ id: 'fabric.editor.ai.config.item.action.insertAtTop',
27
+ defaultMessage: 'Insert at top',
28
+ description: 'Inserts the response at the start of the content'
29
+ },
30
+ configActionInsertBelow: {
31
+ id: 'fabric.editor.ai.config.item.action.insertBelow',
32
+ defaultMessage: 'Insert below',
33
+ description: 'Inserts the response below the current location'
34
+ },
35
+ configActionReplace: {
36
+ id: 'fabric.editor.ai.config.item.action.replace',
37
+ defaultMessage: 'Replace',
38
+ description: 'Replaces the existing or selected content with the response'
39
+ },
40
+ configActionReplaceTitle: {
41
+ id: 'fabric.editor.ai.config.item.action.replaceTitle',
42
+ defaultMessage: 'Replace title',
43
+ description: 'Replaces the existing Confluence document title with the generated title'
44
+ },
45
+ configActionReplaceTitleTooLongDisabledTooltip: {
46
+ id: 'fabric.editor.ai.config.item.action.replaceTitleTooLongDisabledTooltip',
47
+ defaultMessage: 'Title cannot exceed {maxLength} characters',
48
+ description: 'Tooltip that appears over disabled action button when disabled because of title being too long'
49
+ },
50
+ configActionContinueInChatLabel: {
51
+ id: 'fabric.editor.ai.config.item.action.rovoAgents.continueInChatLabel',
52
+ defaultMessage: 'Open in Chat',
53
+ description: 'Tooltip and label for Open in Chat button'
54
+ },
55
+ // Advanced prompt messages
56
+ advancedPromptTitle: {
57
+ id: 'fabric.editor.ai.config.item.advancedPrompt.title',
58
+ defaultMessage: 'Build an advanced prompt',
59
+ description: 'Describes an option to use Atlassian Intelligence to show a more advanced prompt'
60
+ },
61
+ advancedPromptDescription: {
62
+ id: 'fabric.editor.ai.config.item.advancedPrompt.description',
63
+ defaultMessage: 'Specify task, instructions and rules',
64
+ description: 'Description for the the Atlassian Intelligence "Build an advanced prompt".'
65
+ },
66
+ advancedPromptLabel: {
67
+ id: 'fabric.editor.ai.config.item.advancedPrompt.promptLabel',
68
+ defaultMessage: 'Build an advanced prompt',
69
+ description: 'Label text in the prompt input.'
70
+ },
71
+ advancedPromptTaskLabel: {
72
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.task.label',
73
+ defaultMessage: 'Task',
74
+ description: 'Label for the Task input in the prompt builder.'
75
+ },
76
+ advancedPromptTaskPlaceholder: {
77
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.task.placeholder',
78
+ defaultMessage: 'Describe the task that needs completing.',
79
+ description: 'Placeholder for the Task input in the prompt builder.'
80
+ },
81
+ advancedPromptTaskHelperMessage: {
82
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.task.helperMessage',
83
+ defaultMessage: 'For example: Create an onboarding documentation for new employees joining the team.',
84
+ description: 'Helper message for the Task input in the prompt builder.'
85
+ },
86
+ advancedPromptTaskRequired: {
87
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.task.error.required',
88
+ defaultMessage: 'Please provide task',
89
+ description: 'Error message for the Task input in the prompt builder.'
90
+ },
91
+ advancedPromptInstructionsLabel: {
92
+ id: 'fabric.editor.ai.config.item.advanced-prompt.form.instructions.label',
93
+ defaultMessage: 'Instructions',
94
+ description: 'Label for the Instructions input in the prompt builder.'
95
+ },
96
+ advancedPromptInstructionsPlaceholder: {
97
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.instructions.placeholder',
98
+ defaultMessage: 'Provide task instructions to help generate specific outputs.',
99
+ description: 'Placeholder for the Instructions input in the prompt builder.'
100
+ },
101
+ advancedPromptInstructionsHelperMessage: {
102
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.instructions.helperMessage',
103
+ defaultMessage: 'For example: 1. Start the document with a brief overview of our company goals. 2. Create a list of key team members to meet in their first week.',
104
+ description: 'Helper message for the Instructions input in the prompt builder.'
105
+ },
106
+ advancedPromptRulesLabel: {
107
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.rules.label',
108
+ defaultMessage: 'Rules',
109
+ description: 'Label for the Rules input in the prompt builder.'
110
+ },
111
+ advancedPromptRulesPlaceholder: {
112
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.rules.placeholder',
113
+ defaultMessage: 'Outline any rules you want followed.',
114
+ description: 'Placeholder for the Rules input in the prompt builder.'
115
+ },
116
+ advancedPromptRulesHelperMessage: {
117
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.rules.helperMessage',
118
+ defaultMessage: 'For example: The output must follow the company style guidelines and not use unverified data.',
119
+ description: 'Helper message for the Rules input in the prompt builder.'
120
+ },
121
+ advancedPromptToneLabel: {
122
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.tone.label',
123
+ defaultMessage: 'Tone',
124
+ description: 'Label for the Tone input in the prompt builder.'
125
+ },
126
+ advancedPromptToneProfessional: {
127
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.tone.option.professional',
128
+ defaultMessage: 'Professional',
129
+ description: 'Option for the Tone input in the prompt builder.'
130
+ },
131
+ advancedPromptToneEmpathetic: {
132
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.tone.option.empathetic',
133
+ defaultMessage: 'Empathetic',
134
+ description: 'Option for the Tone input in the prompt builder.'
135
+ },
136
+ advancedPromptToneCasual: {
137
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.tone.option.casual',
138
+ defaultMessage: 'Casual',
139
+ description: 'Option for the Tone input in the prompt builder.'
140
+ },
141
+ advancedPromptToneNeutral: {
142
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.tone.option.neutral',
143
+ defaultMessage: 'Neutral',
144
+ description: 'Option for the Tone input in the prompt builder.'
145
+ },
146
+ advancedPromptToneEducational: {
147
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.tone.option.educational',
148
+ defaultMessage: 'Educational',
149
+ description: 'Option for the Tone input in the prompt builder.'
150
+ },
151
+ advancedPromptCreativityLabel: {
152
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.creativity.label',
153
+ defaultMessage: 'Creativity',
154
+ description: 'Label for the Creativity input in the prompt builder.'
155
+ },
156
+ advancedPromptCreativityLow: {
157
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.creativity.option.low',
158
+ defaultMessage: 'Low',
159
+ description: 'Option for the Creativity input in the prompt builder.'
160
+ },
161
+ advancedPromptCreativityMedium: {
162
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.creativity.option.medium',
163
+ defaultMessage: 'Medium',
164
+ description: 'Option for the Creativity input in the prompt builder.'
165
+ },
166
+ advancedPromptCreativityHigh: {
167
+ id: 'fabric.editor.ai.config.item.advancedPrompt.form.creativity.option.high',
168
+ defaultMessage: 'High',
169
+ description: 'Option for the Creativity input in the prompt builder.'
170
+ },
171
+ // Atlas shorten update messages
172
+ atlasShortenUpdatetitle: {
173
+ id: 'fabric.editor.ai.config.item.atlas-shorten-update.title',
174
+ defaultMessage: 'Shorten update',
175
+ description: 'Describes an option to use Atlassian Intelligence to shorten the content currently selected by the user'
176
+ },
177
+ atlasShortenUpdateDescription: {
178
+ id: 'fabric.editor.ai.config.item.atlas-shorten-update.description',
179
+ defaultMessage: 'Shortens the content to make it more concise',
180
+ description: 'Description for the the Atlassian Intelligence "Shorten update".'
181
+ },
182
+ // Brainstorm messages
183
+ brainstormTitle: {
184
+ id: 'fabric.editor.ai.config.item.brainstorm.title',
185
+ defaultMessage: 'Brainstorm',
186
+ description: 'Title for "Brainstorm" Atlassian Intelligence feature shown in editor typeahead and element browser.'
187
+ },
188
+ brainstormDescription: {
189
+ id: 'fabric.editor.ai.config.item.brainstorm.description',
190
+ defaultMessage: 'Generates a list of ideas for a topic you provide',
191
+ description: 'Describes the "Brainstorm" Atlassian Intelligence feature shown in editor typeahead and element browser.'
192
+ },
193
+ brainstormPromptLabel: {
194
+ id: 'fabric.editor.ai.config.item.brainstorm.promptLabel',
195
+ defaultMessage: 'Brainstorm',
196
+ description: 'Label text in the prompt input.'
197
+ },
198
+ brainstormPromptHint: {
199
+ id: 'fabric.editor.ai.config.item.brainstorm.promptHint',
200
+ defaultMessage: 'Tell me the topic...',
201
+ description: 'Placeholder text in the prompt input guiding user interaction.'
202
+ },
203
+ // Change tone messages
204
+ changeToneNestingParentTitlePostGA: {
205
+ id: 'fabric.editor.ai.config.item.changeTone.nestingParentTitlePostGA',
206
+ defaultMessage: 'Change tone to ...',
207
+ description: 'Describes a (nested) option to use Atlassian Intelligence to change the tone of content currently selected by the user'
208
+ },
209
+ changeToneNeutralToneTitle: {
210
+ id: 'fabric.editor.ai.config.item.changeTone.neutralTone.title',
211
+ defaultMessage: 'Change tone to neutral',
212
+ description: 'Describes an option to use Atlassian Intellgience to change the tone of content currently selected by the user'
213
+ },
214
+ changeToneNeutralToneShortTitle: {
215
+ id: 'fabric.editor.ai.config.item.changeTone.neutralTone.shortTitle',
216
+ defaultMessage: 'Neutral',
217
+ description: 'Describes an option to use Atlassian Intellgience to change the tone of content currently selected by the user'
218
+ },
219
+ changeToneNeutralToneDescription: {
220
+ id: 'fabric.editor.ai.config.item.changeTone.neutralTone.description',
221
+ defaultMessage: 'Changes the tone of the content to neutral',
222
+ description: 'Desciption for the Atlassian Intellgience "Change tone to neutral" option'
223
+ },
224
+ changeToneNeutralToneSelectionToolbarDropdownItemTitle: {
225
+ id: 'fabric.editor.ai.config.item.changeTone.neutralTone.selectionToolbar.dropdownItem.title',
226
+ defaultMessage: 'Neutral',
227
+ description: 'Title for Atlassian Intelligence "Change tone to neutral" in editor selection floating toolbar'
228
+ },
229
+ changeToneProfessionalToneTitle: {
230
+ id: 'fabric.editor.ai.config.item.changeTone.professionalTone.title',
231
+ defaultMessage: 'Change tone to professional',
232
+ description: 'Describes an option to use Atlassian Intellgience to change the tone of content currently selected by the user'
233
+ },
234
+ changeToneProfessionalToneShortTitle: {
235
+ id: 'fabric.editor.ai.config.item.changeTone.professionalTone.shortTitle',
236
+ defaultMessage: 'Professional',
237
+ description: 'Describes an option to use Atlassian Intellgience to change the tone of content currently selected by the user'
238
+ },
239
+ changeToneProfessionalToneDescription: {
240
+ id: 'fabric.editor.ai.config.item.changeTone.professionalTone.description',
241
+ defaultMessage: 'Changes the tone of the content to professional',
242
+ description: 'Desciption for the Atlassian Intellgience "Change tone to professional" option'
243
+ },
244
+ changeToneProfessionalToneSelectionToolbarDropdownItemTitle: {
245
+ id: 'fabric.editor.ai.config.item.changeTone.professionalTone.selectionToolbar.dropdownItem.title',
246
+ defaultMessage: 'Professional',
247
+ description: 'Title for Atlassian Intelligence "Change tone to professional" in editor selection floating toolbar'
248
+ },
249
+ changeToneCasualToneTitle: {
250
+ id: 'fabric.editor.ai.config.item.changeTone.casualTone.title',
251
+ defaultMessage: 'Change tone to casual',
252
+ description: 'Describes an option to use Atlassian Intellgience to change the tone of content currently selected by the user'
253
+ },
254
+ changeToneCasualToneShortTitle: {
255
+ id: 'fabric.editor.ai.config.item.changeTone.casualTone.shortTitle',
256
+ defaultMessage: 'Casual',
257
+ description: 'Describes an option to use Atlassian Intellgience to change the tone of content currently selected by the user'
258
+ },
259
+ changeToneCasualToneDescription: {
260
+ id: 'fabric.editor.ai.config.item.changeTone.casualTone.description',
261
+ defaultMessage: 'Changes the tone of the content to casual',
262
+ description: 'Desciption for the Atlassian Intellgience "Change tone to casual" option'
263
+ },
264
+ changeToneCasualToneSelectionToolbarDropdownItemTitle: {
265
+ id: 'fabric.editor.ai.config.item.changeTone.casualTone.selectionToolbar.dropdownItem.title',
266
+ defaultMessage: 'Casual',
267
+ description: 'Title for Atlassian Intelligence "Change tone to casual" in editor selection floating toolbar'
268
+ },
269
+ changeToneEducationalToneTitle: {
270
+ id: 'fabric.editor.ai.config.item.changeTone.educationalTone.title',
271
+ defaultMessage: 'Change tone to educational',
272
+ description: 'Describes an option to use Atlassian Intellgience to change the tone of content currently selected by the user'
273
+ },
274
+ changeToneEducationalToneShortTitle: {
275
+ id: 'fabric.editor.ai.config.item.changeTone.educationalTone.shortTitle',
276
+ defaultMessage: 'Educational',
277
+ description: 'Describes an option to use Atlassian Intellgience to change the tone of content currently selected by the user'
278
+ },
279
+ changeToneEducationalToneDescription: {
280
+ id: 'fabric.editor.ai.config.item.changeTone.educationalTone.description',
281
+ defaultMessage: 'Changes the tone of the content to educational',
282
+ description: 'Desciption for the Atlassian Intellgience "Change tone to educational" option'
283
+ },
284
+ changeToneEducationalToneSelectionToolbarDropdownItemTitle: {
285
+ id: 'fabric.editor.ai.config.item.changeTone.educationalTone.selectionToolbar.dropdownItem.title',
286
+ defaultMessage: 'Educational',
287
+ description: 'Title for Atlassian Intelligence "Change tone to educational" in editor selection floating toolbar'
288
+ },
289
+ changeToneEmpatheticToneTitle: {
290
+ id: 'fabric.editor.ai.config.item.changeTone.empatheticTone.title',
291
+ defaultMessage: 'Change tone to empathetic',
292
+ description: 'Describes an option to use Atlassian Intellgience to change the tone of content currently selected by the user'
293
+ },
294
+ changeToneEmpatheticToneShortTitle: {
295
+ id: 'fabric.editor.ai.config.item.changeTone.empatheticTone.shortTitle',
296
+ defaultMessage: 'Empathetic',
297
+ description: 'Describes an option to use Atlassian Intellgience to change the tone of content currently selected by the user'
298
+ },
299
+ changeToneEmpatheticToneDescription: {
300
+ id: 'fabric.editor.ai.config.item.changeTone.empatheticTone.description',
301
+ defaultMessage: 'Changes the tone of the content to empathetic',
302
+ description: 'Desciption for the Atlassian Intellgience "Change tone to empathetic" option'
303
+ },
304
+ changeToneEmpatheticToneSelectionToolbarDropdownItemTitle: {
305
+ id: 'fabric.editor.ai.config.item.changeTone.empatheticTone.selectionToolbar.dropdownItem.title',
306
+ defaultMessage: 'Empathetic',
307
+ description: 'Title for Atlassian Intelligence "Change tone to empathetic" in editor selection floating toolbar'
308
+ },
309
+ // Convert to bullet list messages
310
+ convertToBulletListTitle: {
311
+ id: 'fabric.editor.ai.config.item.convertToBulletList.title',
312
+ defaultMessage: 'Convert to bulleted list',
313
+ description: 'Describes an option to use Atlassian Intelligence to reformat content currently selected by the user to a bulleted list'
314
+ },
315
+ convertToBulletListDescription: {
316
+ id: 'fabric.editor.ai.config.item.convertToBulletList.description',
317
+ defaultMessage: 'Reformats content to a bulleted list',
318
+ description: 'Description for the the Atlassian Intelligence "Convert to bulleted list".'
319
+ },
320
+ // Convert to table messages
321
+ convertToTableTitle: {
322
+ id: 'fabric.editor.ai.config.item.convertToTable.title',
323
+ defaultMessage: 'Convert to table',
324
+ description: 'Describes an option to use Atlassian Intelligence to reformat content currently selected by the user to a table with headings'
325
+ },
326
+ convertToTableDescription: {
327
+ id: 'fabric.editor.ai.config.item.convertToTable.description',
328
+ defaultMessage: 'Reformats content to a table with headings',
329
+ description: 'Description for the the Atlassian Intelligence "Convert to table".'
330
+ },
331
+ // Draft reply messages
332
+ draftReplyTitle: {
333
+ id: 'fabric.editor.ai.config.item.draftReply.title',
334
+ defaultMessage: 'Draft reply',
335
+ description: 'Title for "Draft reply" Atlassian Intelligence feature shown in editor typeahead and element browser.'
336
+ },
337
+ draftReplyDescription: {
338
+ id: 'fabric.editor.ai.config.item.draftReply.description',
339
+ defaultMessage: 'Drafts a reply based on issues similar to the one you’re working on',
340
+ description: 'Describes the "Draft reply" Atlassian Intelligence feature shown in editor typeahead and element browser.'
341
+ },
342
+ // Enhance messages
343
+ improveWritingTitle: {
344
+ id: 'fabric.editor.ai.config.item.enhance.improveWriting.title',
345
+ defaultMessage: 'Improve writing',
346
+ description: 'Describes an option to use Atlassian Intellgience to improve the writing of content currently selected by the user'
347
+ },
348
+ improveWritingSelectionToolbarDropdownItemTitle: {
349
+ id: 'fabric.editor.ai.config.item.enhance.improveWriting.selectionToolbar.dropdownItem.title',
350
+ defaultMessage: 'Improve writing',
351
+ description: 'Title for Atlassian Intelligence "improve writing" in editor selection floating toolbar'
352
+ },
353
+ fixSpellingGrammarTitle: {
354
+ id: 'fabric.editor.ai.config.item.enhance.fixSpellingGrammar.title',
355
+ defaultMessage: 'Fix spelling & grammar',
356
+ description: 'Describes an option to use Atlassian Intellgience to improve the writing of content currently selected by the user'
357
+ },
358
+ improveWritingDescription: {
359
+ id: 'fabric.editor.ai.config.item.enhance.improveWriting.description',
360
+ defaultMessage: 'Enhances clarity, structure, and tone for better engagement and comprehension',
361
+ description: 'Description for the the Atlassian Intelligence "Improve Writing".'
362
+ },
363
+ fixSpellingGrammarDescription: {
364
+ id: 'fabric.editor.ai.config.item.enhance.fixSpellingGrammar.description',
365
+ defaultMessage: 'Fixes spelling and grammar mistakes',
366
+ description: 'Description for the the Atlassian Intelligence "Fix Spelling & Grammar".'
367
+ },
368
+ fixSpellingGrammarSelectionToolbarDropdownItemTitle: {
369
+ id: 'fabric.editor.ai.config.item.enhance.fixSpellingGrammar.selectionToolbar.dropdownItem.title',
370
+ defaultMessage: 'Spelling & grammar',
371
+ description: 'Title for Atlassian Intelligence "fix spelling grammar" in editor selection floating toolbar'
372
+ },
373
+ // Find action items messages
374
+ findActionItemsTitle: {
375
+ id: 'fabric.editor.ai.config.item.findActionItems.title',
376
+ defaultMessage: 'Find action items',
377
+ description: 'Title for "Find Action Items" Atlassian Intelligence feature shown in editor typeahead and element browser.'
378
+ },
379
+ findActionItemsDescription: {
380
+ id: 'fabric.editor.ai.config.item.findActionItems.description',
381
+ defaultMessage: 'Finds action items in the content you provide',
382
+ description: 'Describes the "Find Action Items" Atlassian Intelligence feature shown in editor typeahead and element browser.'
383
+ },
384
+ // Free generate messages
385
+ freeGeneratePromptHint: {
386
+ id: 'fabric.editor.ai.config.item.generateContent.promptHint',
387
+ defaultMessage: 'Write with AI or select from below',
388
+ description: 'Placeholder text in the prompt input guiding user interaction.'
389
+ },
390
+ // Free generate disabled messages
391
+ freeGenerateDisabledPromptHint: {
392
+ id: 'fabric.editor.ai.config.item.freeGenerate.disabled.promptHint',
393
+ defaultMessage: 'Select from below (free generate is disabled in Elevate at this time)',
394
+ description: 'Placeholder text in the prompt input guiding user interaction.'
395
+ },
396
+ // Improve description messages
397
+ reformatWithTemplateDescription: {
398
+ id: 'fabric.editor.ai.config.item.improveDescription.default.description',
399
+ defaultMessage: 'Restructure the issue description based on the issue type',
400
+ description: 'Description for the Atlassian Intelligence "Improve description" feature.'
401
+ },
402
+ improveDescription: {
403
+ id: 'fabric.editor.ai.config.item.improveDescription.default.title.experiment.one',
404
+ defaultMessage: 'Improve description',
405
+ description: 'Describes an option to use Atlassian Intelligence to improve the issue description currently selected by the user.'
406
+ },
407
+ // Make longer messages
408
+ makeLongerTitle: {
409
+ id: 'fabric.editor.ai.config.item.makeLonger.title',
410
+ defaultMessage: 'Make longer',
411
+ description: 'Describes an option to use Atlassian Intelligence to make the content longer currently selected by the user'
412
+ },
413
+ makeLongerDescription: {
414
+ id: 'fabric.editor.ai.config.item.makeLonger.description',
415
+ defaultMessage: 'Expands the content based on the context you provide',
416
+ description: 'Description for the the Atlassian Intelligence "Make longer".'
417
+ },
418
+ // Make shorter messages
419
+ makeShorterTitle: {
420
+ id: 'fabric.editor.ai.config.item.shorten.title',
421
+ defaultMessage: 'Make shorter',
422
+ description: 'Describes an option to use Atlassian Intelligence to shorten the content currently selected by the user'
423
+ },
424
+ makeShorterDescription: {
425
+ id: 'fabric.editor.ai.config.item.shorten.description',
426
+ defaultMessage: 'Shortens the content to make it more concise',
427
+ description: 'Description for the the Atlassian Intelligence "Shorten".'
428
+ },
429
+ makeShorterSelectionToolbarDropdownItemTitle: {
430
+ id: 'fabric.editor.ai.config.item.shorten.selectionToolbar.dropdownItem.title',
431
+ defaultMessage: 'Make shorter',
432
+ description: 'Title for Atlassian Intelligence "Shorten" in editor selection floating toolbar'
433
+ },
434
+ // PR Description messages
435
+ prDescriptionTitle: {
436
+ id: 'fabric.editor.ai.config.item.bb.pr.description.title',
437
+ defaultMessage: 'Create pull request description',
438
+ description: 'Title for "Create pull request description" Atlassian Intelligence feature shown in editor typeahead and element browser.'
439
+ },
440
+ prDescriptionDescription: {
441
+ id: 'fabric.editor.ai.config.item.bb.pr.description.description',
442
+ defaultMessage: 'Creates a pull request description with a summary of changes',
443
+ description: 'Describes the "Create pull request description" Atlassian Intelligence feature shown in editor typeahead and element browser.'
444
+ },
445
+ // Rephrase messages
446
+ rephraseTitle: {
447
+ id: 'fabric.editor.ai.config.item.rephrase.title',
448
+ defaultMessage: 'Rephrase',
449
+ description: 'Describes an option to use Atlassian Intelligence to rephrase the content currently selected by the user'
450
+ },
451
+ rephraseDescription: {
452
+ id: 'fabric.editor.ai.config.item.rephrase.description',
453
+ defaultMessage: 'Creates a suggestion for rewriting your sentences',
454
+ description: 'Description for the the Atlassian Intelligence "Rephrase".'
455
+ },
456
+ // Suggest title messages
457
+ suggestTitleTitle: {
458
+ id: 'fabric.editor.ai.config.item.suggest.title',
459
+ defaultMessage: 'Suggest a title',
460
+ description: 'Describes an option to use Atlassian Intellgience to suggest an appropriate title for the content currently selected by the user'
461
+ },
462
+ suggestTitleDescription: {
463
+ id: 'fabric.editor.ai.config.item.suggest.description',
464
+ defaultMessage: 'Suggests a title for content you provide',
465
+ description: 'Describes "Suggest a Title" Atlassian Intelligence feature to suggest an appropriate title for the content currently selected by the user'
466
+ },
467
+ // Summarize writing messages
468
+ summarizeWritingtitle: {
469
+ id: 'fabric.editor.ai.config.item.summarize.title',
470
+ defaultMessage: 'Summarize writing',
471
+ description: 'Describes an option to use Atlassian Intellgience to summarize the content currently selected by the user'
472
+ },
473
+ summarizeWritingDescription: {
474
+ id: 'fabric.editor.ai.config.item.summarize.description',
475
+ defaultMessage: "Creates a summary of the text you're working on, highlighting key points",
476
+ description: 'Describes "Summarize writing" Atlassian Intelligence feature to summarize the content currently selected by the user'
477
+ },
478
+ summarizeWritingSelectionToolbarDropdownItemTitle: {
479
+ id: 'fabric.editor.ai.config.item.summarize.dropdownItem.title',
480
+ defaultMessage: 'Summarize writing',
481
+ description: 'Title for Atlassian Intelligence "Summarize writing" in editor selection floating toolbar'
482
+ }
483
+ });
@@ -0,0 +1,124 @@
1
+ // eslint-disable-next-line no-restricted-imports
2
+ import { defineMessages } from 'react-intl-next';
3
+ export var aiExperienceApplicationMessages = defineMessages({
4
+ responseTooSimilarMessage: {
5
+ id: 'fabric.editor.ai.experience.responseTooSimilarMessage',
6
+ defaultMessage: 'Atlassian Intelligence has no suggestions at this time. Feel free to try a different prompt or content.',
7
+ description: 'Message to indicate to user the response from Atlassian Intelligence response is too similar or the same as their input.'
8
+ },
9
+ discardMessagePrompt: {
10
+ id: 'fabric.editor.ai.experience.discardMessagePrompt',
11
+ defaultMessage: 'Do you want to discard your prompt?',
12
+ description: 'Message to confirm if the user wants to discard their input.'
13
+ },
14
+ discardMessageResponse: {
15
+ id: 'fabric.editor.ai.experience.discardMessageResponse',
16
+ defaultMessage: 'Do you want to discard your response?',
17
+ description: 'Message to confirm if the user wants to discard the generated response from Atlassian Intelligence.'
18
+ },
19
+ loadingTitle: {
20
+ id: 'fabric.editor.ai.experience.loadingTitle',
21
+ defaultMessage: 'Generating',
22
+ description: 'The title string that appears on the "Loading" screen when the user is waiting for Atlassian Intelligence to generate content'
23
+ },
24
+ messageTemplateAnalysingQuery: {
25
+ id: 'fabric.editor.ai.experience.messageTemplateAnalysingQuery',
26
+ defaultMessage: 'Analyzing: Reviewing your question.',
27
+ description: 'Message to indicate to user that the AI is reading and understanding their question'
28
+ },
29
+ messageTemplateContentSearch: {
30
+ id: 'fabric.editor.ai.experience.messageTemplateContentSearch',
31
+ defaultMessage: 'Searching: One moment while we search for information.',
32
+ description: 'Message to indicate to user that the AI is searching for content'
33
+ },
34
+ messageTemplatePageHydration: {
35
+ id: 'fabric.editor.ai.experience.messageTemplatePageHydration',
36
+ defaultMessage: 'Searching: One moment while we search the page.',
37
+ description: 'Message to indicate to user that the AI is searching a URL for content'
38
+ },
39
+ messageTemplateNextBestTask: {
40
+ id: 'fabric.editor.ai.experience.messageTemplateNextBestTask',
41
+ defaultMessage: 'Searching: One moment while we search Jira.',
42
+ description: 'Message to indicate to user that the AI is searching Jira'
43
+ },
44
+ convoAIBeta: {
45
+ id: 'fabric.editor.ai.screens.preview.convoAIBeta',
46
+ defaultMessage: 'Content generation requests that reference URLs is in beta.',
47
+ description: 'The disclaimer for convo ai beta lozenge'
48
+ },
49
+ useRovoOrganisationKnowledgeRightText: {
50
+ id: 'fabric.editor.ai.experience.labelRight.rovo',
51
+ defaultMessage: 'Rovo',
52
+ description: 'Righthand side text for Atlassian Intelligence general knowledge suggestion'
53
+ },
54
+ useGeneralAiKnowledgeRightText: {
55
+ id: 'fabric.editor.ai.experience.labelRight.atlassianIntelligence',
56
+ defaultMessage: 'Atlassian Intelligence',
57
+ description: 'Righthand side text for Rovo general knowledge suggestion'
58
+ },
59
+ atlassianIntelligenceGroupHeading: {
60
+ id: 'fabric.editor.ai.experience.suggestionGroupHeading.atlassianIntelligence',
61
+ defaultMessage: 'Atlassian intelligence',
62
+ description: 'Heading text to indicate that the next set of features are for Atlassian intelligence'
63
+ },
64
+ knowledgeSourceGroupHeading: {
65
+ id: 'fabric.editor.ai.experience.suggestionGroupHeading.knowledgeSource',
66
+ defaultMessage: 'Knowledge source',
67
+ description: 'Heading text to indicate that the next set of features are for Knowledge source'
68
+ },
69
+ agentsSuggestionGroupHeading: {
70
+ id: 'fabric.editor.ai.experience.suggestionGroupHeading.agents',
71
+ defaultMessage: 'Agents',
72
+ description: 'Heading text to indicate that the next set of features are for agents'
73
+ },
74
+ rovoAgentsCountSuggestionGroupHeading: {
75
+ id: 'fabric.editor.ai.experience.suggestionGroupHeading.rovoAgentsCount',
76
+ defaultMessage: "Rovo agents ({numberOfAgents})",
77
+ description: 'Heading text to indicate that the next set of features are for starred agents'
78
+ },
79
+ useRovoAgentsCountSuggestionGroupHeading: {
80
+ id: 'fabric.editor.ai.experience.suggestionGroupHeading.useRovoAgentsCount',
81
+ defaultMessage: "Use a Rovo agent ({numberOfAgents})",
82
+ description: 'Heading text to indicate that the next set of features are for starred agents'
83
+ },
84
+ rovoAgentsSuggestionGroupHeading: {
85
+ id: 'fabric.editor.ai.experience.suggestionGroupHeading.rovoAgents',
86
+ defaultMessage: 'Rovo agents',
87
+ description: 'Heading text to indicate that the next set of features are for agents'
88
+ },
89
+ useGeneralAiKnowledgeLabel: {
90
+ id: 'fabric.editor.ai.experience.useGeneralAiKnowledgeLabel',
91
+ defaultMessage: 'Use general knowledge',
92
+ description: 'Label for the button to write using general AI knowledge'
93
+ },
94
+ useRovoOrganisationKnowledgeLabel: {
95
+ id: 'fabric.editor.ai.experience.useRovoOrganisationKnowledgeLabel',
96
+ defaultMessage: 'Use knowledge from your organization',
97
+ description: 'Label for the button to ask using Rovo organisation knowledge'
98
+ },
99
+ agentsFooterRightText: {
100
+ id: 'fabric.editor.ai.experience.footerRightText.agents',
101
+ defaultMessage: 'Powered by Rovo',
102
+ description: 'Label text for Rovo footer icon'
103
+ },
104
+ agentsBrowseMore: {
105
+ id: 'fabric.editor.ai.experience.browseMore.agents',
106
+ defaultMessage: 'Browse Agents',
107
+ description: 'Link text to browse more agents'
108
+ },
109
+ showMoreButton: {
110
+ id: 'fabric.editor.ai.experience.showMoreButton',
111
+ defaultMessage: 'Show more',
112
+ description: 'Link text for the Show more button which is shown when hiding extra suggestions'
113
+ },
114
+ noResultsSuggestion: {
115
+ id: 'fabric.editor.ai.experience.noResultsSuggestion',
116
+ defaultMessage: 'No results',
117
+ description: 'Text which displays when a nested set of results has no search results'
118
+ },
119
+ engagementBannerLinksText: {
120
+ id: 'fabric.editor.ai.experience.engagementBannerLinksText',
121
+ defaultMessage: '🚀 You can now paste links 🔗 to Jira and Confluence content in your prompts.',
122
+ description: 'Text for the engagement banner'
123
+ }
124
+ });
@@ -0,0 +1,49 @@
1
+ // eslint-disable-next-line no-restricted-imports
2
+ import { defineMessages } from 'react-intl-next';
3
+ export var aiFailedStateMessages = defineMessages({
4
+ aupViolationMessage: {
5
+ id: 'fabric.editor.ai.experience.aupViolationMessage',
6
+ defaultMessage: 'Your prompt or content might not comply with our Acceptable Use Policy. Please review both and refer to our <link>Acceptable Use Policy</link> if needed. If the problem persists, consider trying a different prompt or content.',
7
+ description: 'Message to indicate to user their prompt or content (this can be a range of content, such as a selection or document -- we used content to keep it vague -- as this will change without user knowing) has been detected as violating Atlassians acceptable use policy. Note the markdown link -- this is expected to remain as markdown as this string is converted to html.'
8
+ },
9
+ documentInsertError: {
10
+ id: 'fabric.editor.ai.experience-application.documentInsertError',
11
+ defaultMessage: "We're having trouble inserting the response. Close the dialog and try again.",
12
+ description: 'Message to users that displays when error happens during document insertion.'
13
+ },
14
+ tokenLimitExceeded: {
15
+ id: 'fabric.editor.ai.experience-application.tokenLimitExceeded',
16
+ defaultMessage: "We couldn't get a response. Your prompt or response was over the limit for this request. Close the dialog and try again.",
17
+ description: 'Message to users that displays when their request has exceeded the maximum input or output limit.'
18
+ },
19
+ rateLimitEnforced: {
20
+ id: 'fabric.editor.ai.experience-application.rateLimitEnforced',
21
+ defaultMessage: 'We’ve received too many recent requests for Atlassian Intelligence (AI). Try again in a few minutes or read about <link>excessive use of AI</link>.',
22
+ description: 'Message to users that rate limiting has been enforced.'
23
+ },
24
+ apiError: {
25
+ id: 'fabric.editor.ai.experience.apiError',
26
+ defaultMessage: "We couldn\u2019t get a response, please try again.",
27
+ description: "We couldn't get a response due to an api error (ie. the backend responded with an error, or got a timeout)"
28
+ },
29
+ elevateDisabledGenerateError: {
30
+ id: 'fabric.editor.ai.experience.elevateDisabledGenetateError',
31
+ defaultMessage: "Free generate is disabled in Elevate at this time.",
32
+ description: "Message to let internal users know that the free generate editor ai feature is is disabled in Elevate at this time."
33
+ },
34
+ internalServerError: {
35
+ id: 'fabric.editor.ai.experience.internalServerError',
36
+ defaultMessage: "Atlassian Intelligence (AI) isn\u2019t responding. Try again later or <link>check the status of AI</link>.",
37
+ description: "We couldn't get a response due to an internal server error."
38
+ },
39
+ inputTooShortError: {
40
+ id: 'fabric.editor.ai.experience.inputTooShortError',
41
+ defaultMessage: "The content is too short to summarize. Please add more and try again.",
42
+ description: "The input was too short to summarize"
43
+ },
44
+ hipaaContentError: {
45
+ id: 'fabric.editor.ai.experience.hipaaContentError',
46
+ defaultMessage: "Atlassian Intelligence was unable to process your request as your content contains links to HIPAA restricted content. Please remove these links and try again.",
47
+ description: "The input contained HIPAA content"
48
+ }
49
+ });