@atlaskit/editor-common 100.5.0 → 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 (88) hide show
  1. package/CHANGELOG.md +19 -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/element-browser/components/ElementList/EmptyState.js +1 -1
  10. package/dist/cjs/extensibility/Extension/Lozenge/EditToggle.js +1 -1
  11. package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  12. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  13. package/dist/cjs/messages/index.js +0 -28
  14. package/dist/cjs/monitoring/error.js +1 -1
  15. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +3 -3
  16. package/dist/cjs/ui/DropList/index.js +1 -1
  17. package/dist/cjs/ui/FloatingToolbar/Button.js +5 -2
  18. package/dist/cjs/ui/FloatingToolbar/Separator.js +12 -6
  19. package/dist/cjs/ui-menu/ColorPickerButton/index.js +2 -1
  20. package/dist/es2019/ai-messages/ai-config-items.js +483 -0
  21. package/dist/es2019/ai-messages/ai-experience-application.js +124 -0
  22. package/dist/es2019/ai-messages/ai-failed-state.js +49 -0
  23. package/dist/es2019/ai-messages/ai-languages.js +361 -0
  24. package/dist/es2019/ai-messages/ai.js +116 -0
  25. package/dist/es2019/ai-messages/index.js +12 -0
  26. package/dist/es2019/element-browser/components/ElementList/EmptyState.js +1 -1
  27. package/dist/es2019/extensibility/Extension/Lozenge/EditToggle.js +1 -1
  28. package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  29. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  30. package/dist/es2019/messages/index.js +0 -4
  31. package/dist/es2019/monitoring/error.js +1 -1
  32. package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +3 -3
  33. package/dist/es2019/ui/DropList/index.js +1 -1
  34. package/dist/es2019/ui/FloatingToolbar/Button.js +5 -1
  35. package/dist/es2019/ui/FloatingToolbar/Separator.js +11 -4
  36. package/dist/es2019/ui-menu/ColorPickerButton/index.js +2 -1
  37. package/dist/esm/ai-messages/ai-config-items.js +483 -0
  38. package/dist/esm/ai-messages/ai-experience-application.js +124 -0
  39. package/dist/esm/ai-messages/ai-failed-state.js +49 -0
  40. package/dist/esm/ai-messages/ai-languages.js +361 -0
  41. package/dist/esm/ai-messages/ai.js +116 -0
  42. package/dist/esm/ai-messages/index.js +12 -0
  43. package/dist/esm/element-browser/components/ElementList/EmptyState.js +1 -1
  44. package/dist/esm/extensibility/Extension/Lozenge/EditToggle.js +1 -1
  45. package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
  46. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  47. package/dist/esm/messages/index.js +0 -4
  48. package/dist/esm/monitoring/error.js +1 -1
  49. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +3 -3
  50. package/dist/esm/ui/DropList/index.js +1 -1
  51. package/dist/esm/ui/FloatingToolbar/Button.js +5 -2
  52. package/dist/esm/ui/FloatingToolbar/Separator.js +12 -6
  53. package/dist/esm/ui-menu/ColorPickerButton/index.js +2 -1
  54. package/dist/types/ai-messages/ai-config-items.d.ts +462 -0
  55. package/dist/types/ai-messages/ai-experience-application.d.ts +122 -0
  56. package/dist/types/ai-messages/ai-failed-state.d.ts +47 -0
  57. package/dist/types/ai-messages/ai-languages.d.ts +357 -0
  58. package/dist/types/ai-messages/ai.d.ts +107 -0
  59. package/dist/types/ai-messages/index.d.ts +9 -0
  60. package/dist/types/messages/index.d.ts +0 -4
  61. package/dist/types-ts4.5/ai-messages/ai-config-items.d.ts +462 -0
  62. package/dist/types-ts4.5/ai-messages/ai-experience-application.d.ts +122 -0
  63. package/dist/types-ts4.5/ai-messages/ai-failed-state.d.ts +47 -0
  64. package/dist/types-ts4.5/ai-messages/ai-languages.d.ts +357 -0
  65. package/dist/types-ts4.5/ai-messages/ai.d.ts +107 -0
  66. package/dist/types-ts4.5/ai-messages/index.d.ts +9 -0
  67. package/dist/types-ts4.5/messages/index.d.ts +0 -4
  68. package/package.json +2 -1
  69. /package/dist/cjs/{messages → ai-messages}/ai-definitions.js +0 -0
  70. /package/dist/cjs/{messages → ai-messages}/ai-proactive-setting.js +0 -0
  71. /package/dist/cjs/{messages → ai-messages}/ai-proactive-transform.js +0 -0
  72. /package/dist/cjs/{messages → ai-messages}/ai-proactive.js +0 -0
  73. /package/dist/es2019/{messages → ai-messages}/ai-definitions.js +0 -0
  74. /package/dist/es2019/{messages → ai-messages}/ai-proactive-setting.js +0 -0
  75. /package/dist/es2019/{messages → ai-messages}/ai-proactive-transform.js +0 -0
  76. /package/dist/es2019/{messages → ai-messages}/ai-proactive.js +0 -0
  77. /package/dist/esm/{messages → ai-messages}/ai-definitions.js +0 -0
  78. /package/dist/esm/{messages → ai-messages}/ai-proactive-setting.js +0 -0
  79. /package/dist/esm/{messages → ai-messages}/ai-proactive-transform.js +0 -0
  80. /package/dist/esm/{messages → ai-messages}/ai-proactive.js +0 -0
  81. /package/dist/types/{messages → ai-messages}/ai-definitions.d.ts +0 -0
  82. /package/dist/types/{messages → ai-messages}/ai-proactive-setting.d.ts +0 -0
  83. /package/dist/types/{messages → ai-messages}/ai-proactive-transform.d.ts +0 -0
  84. /package/dist/types/{messages → ai-messages}/ai-proactive.d.ts +0 -0
  85. /package/dist/types-ts4.5/{messages → ai-messages}/ai-definitions.d.ts +0 -0
  86. /package/dist/types-ts4.5/{messages → ai-messages}/ai-proactive-setting.d.ts +0 -0
  87. /package/dist/types-ts4.5/{messages → ai-messages}/ai-proactive-transform.d.ts +0 -0
  88. /package/dist/types-ts4.5/{messages → ai-messages}/ai-proactive.d.ts +0 -0
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.aiFailedStateMessages = void 0;
7
+ var _reactIntlNext = require("react-intl-next");
8
+ // eslint-disable-next-line no-restricted-imports
9
+
10
+ var aiFailedStateMessages = exports.aiFailedStateMessages = (0, _reactIntlNext.defineMessages)({
11
+ aupViolationMessage: {
12
+ id: 'fabric.editor.ai.experience.aupViolationMessage',
13
+ 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.',
14
+ 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.'
15
+ },
16
+ documentInsertError: {
17
+ id: 'fabric.editor.ai.experience-application.documentInsertError',
18
+ defaultMessage: "We're having trouble inserting the response. Close the dialog and try again.",
19
+ description: 'Message to users that displays when error happens during document insertion.'
20
+ },
21
+ tokenLimitExceeded: {
22
+ id: 'fabric.editor.ai.experience-application.tokenLimitExceeded',
23
+ defaultMessage: "We couldn't get a response. Your prompt or response was over the limit for this request. Close the dialog and try again.",
24
+ description: 'Message to users that displays when their request has exceeded the maximum input or output limit.'
25
+ },
26
+ rateLimitEnforced: {
27
+ id: 'fabric.editor.ai.experience-application.rateLimitEnforced',
28
+ 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>.',
29
+ description: 'Message to users that rate limiting has been enforced.'
30
+ },
31
+ apiError: {
32
+ id: 'fabric.editor.ai.experience.apiError',
33
+ defaultMessage: "We couldn\u2019t get a response, please try again.",
34
+ description: "We couldn't get a response due to an api error (ie. the backend responded with an error, or got a timeout)"
35
+ },
36
+ elevateDisabledGenerateError: {
37
+ id: 'fabric.editor.ai.experience.elevateDisabledGenetateError',
38
+ defaultMessage: "Free generate is disabled in Elevate at this time.",
39
+ description: "Message to let internal users know that the free generate editor ai feature is is disabled in Elevate at this time."
40
+ },
41
+ internalServerError: {
42
+ id: 'fabric.editor.ai.experience.internalServerError',
43
+ defaultMessage: "Atlassian Intelligence (AI) isn\u2019t responding. Try again later or <link>check the status of AI</link>.",
44
+ description: "We couldn't get a response due to an internal server error."
45
+ },
46
+ inputTooShortError: {
47
+ id: 'fabric.editor.ai.experience.inputTooShortError',
48
+ defaultMessage: "The content is too short to summarize. Please add more and try again.",
49
+ description: "The input was too short to summarize"
50
+ },
51
+ hipaaContentError: {
52
+ id: 'fabric.editor.ai.experience.hipaaContentError',
53
+ 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.",
54
+ description: "The input contained HIPAA content"
55
+ }
56
+ });
@@ -0,0 +1,368 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.aiLanguageMessages = void 0;
7
+ var _reactIntlNext = require("react-intl-next");
8
+ // eslint-disable-next-line no-restricted-imports
9
+
10
+ var aiLanguageMessages = exports.aiLanguageMessages = (0, _reactIntlNext.defineMessages)({
11
+ // Language Messages
12
+ nestingParentTitle: {
13
+ id: 'fabric.editor.ai.config.item.translate.nestingParentTitle.ga',
14
+ defaultMessage: 'Translate',
15
+ description: 'The nested title which shows in the generative-ai-modal'
16
+ },
17
+ nestingParentTitlePostGA: {
18
+ id: 'fabric.editor.ai.config.item.translate.nestingParentTitlePostGA',
19
+ defaultMessage: 'Translate to ...',
20
+ description: 'The nested title which shows in the generative-ai-modal'
21
+ },
22
+ chineseSimplified: {
23
+ id: 'fabric.editor.ai.config.item.translate.chineseSimplified',
24
+ defaultMessage: 'Chinese (Simplified)',
25
+ description: 'Language string referenced in UIs involving the translation AI prompt for Chinese (Simplified)'
26
+ },
27
+ chineseTraditional: {
28
+ id: 'fabric.editor.ai.config.item.translate.chineseTraditional',
29
+ defaultMessage: 'Chinese (Traditional)',
30
+ description: 'Language string referenced in UIs involving the translation AI prompt for Chinese (Traditional)'
31
+ },
32
+ czech: {
33
+ id: 'fabric.editor.ai.config.item.translate.czech',
34
+ defaultMessage: 'Czech',
35
+ description: 'Language string referenced in UIs involving the translation AI prompt for Czech'
36
+ },
37
+ danish: {
38
+ id: 'fabric.editor.ai.config.item.translate.danish',
39
+ defaultMessage: 'Danish',
40
+ description: 'Language string referenced in UIs involving the translation AI prompt for Danish'
41
+ },
42
+ dutch: {
43
+ id: 'fabric.editor.ai.config.item.translate.dutch',
44
+ defaultMessage: 'Dutch',
45
+ description: 'Language string referenced in UIs involving the translation AI prompt for Dutch'
46
+ },
47
+ english: {
48
+ id: 'fabric.editor.ai.config.item.translate.english',
49
+ defaultMessage: 'English',
50
+ description: 'Language string referenced in UIs involving the translation AI prompt for English'
51
+ },
52
+ finnish: {
53
+ id: 'fabric.editor.ai.config.item.translate.finnish',
54
+ defaultMessage: 'Finnish',
55
+ description: 'Language string referenced in UIs involving the translation AI prompt for Finnish'
56
+ },
57
+ french: {
58
+ id: 'fabric.editor.ai.config.item.translate.french',
59
+ defaultMessage: 'French',
60
+ description: 'Language string referenced in UIs involving the translation AI prompt for French'
61
+ },
62
+ german: {
63
+ id: 'fabric.editor.ai.config.item.translate.german',
64
+ defaultMessage: 'German',
65
+ description: 'Language string referenced in UIs involving the translation AI prompt for German'
66
+ },
67
+ hungarian: {
68
+ id: 'fabric.editor.ai.config.item.translate.hungarian',
69
+ defaultMessage: 'Hungarian',
70
+ description: 'Language string referenced in UIs involving the translation AI prompt for Hungarian'
71
+ },
72
+ italian: {
73
+ id: 'fabric.editor.ai.config.item.translate.italian',
74
+ defaultMessage: 'Italian',
75
+ description: 'Language string referenced in UIs involving the translation AI prompt for Italian'
76
+ },
77
+ japanese: {
78
+ id: 'fabric.editor.ai.config.item.translate.japanese',
79
+ defaultMessage: 'Japanese',
80
+ description: 'Language string referenced in UIs involving the translation AI prompt for Japanese'
81
+ },
82
+ korean: {
83
+ id: 'fabric.editor.ai.config.item.translate.korean',
84
+ defaultMessage: 'Korean',
85
+ description: 'Language string referenced in UIs involving the translation AI prompt for Korean'
86
+ },
87
+ norwegian: {
88
+ id: 'fabric.editor.ai.config.item.translate.norwegian',
89
+ defaultMessage: 'Norwegian',
90
+ description: 'Language string referenced in UIs involving the translation AI prompt for Norwegian'
91
+ },
92
+ polish: {
93
+ id: 'fabric.editor.ai.config.item.translate.polish',
94
+ defaultMessage: 'Polish',
95
+ description: 'Language string referenced in UIs involving the translation AI prompt for Polish'
96
+ },
97
+ portugueseBrazilian: {
98
+ id: 'fabric.editor.ai.config.item.translate.portugueseBrazilian',
99
+ defaultMessage: 'Portuguese (Brazilian)',
100
+ description: 'Language string referenced in UIs involving the translation AI prompt for Portuguese (Brazilian)'
101
+ },
102
+ russian: {
103
+ id: 'fabric.editor.ai.config.item.translate.russian',
104
+ defaultMessage: 'Russian',
105
+ description: 'Language string referenced in UIs involving the translation AI prompt for Russian'
106
+ },
107
+ spanish: {
108
+ id: 'fabric.editor.ai.config.item.translate.spanish',
109
+ defaultMessage: 'Spanish',
110
+ description: 'Language string referenced in UIs involving the translation AI prompt for Spanish'
111
+ },
112
+ swedish: {
113
+ id: 'fabric.editor.ai.config.item.translate.swedish',
114
+ defaultMessage: 'Swedish',
115
+ description: 'Language string referenced in UIs involving the translation AI prompt for Swedish'
116
+ },
117
+ turkish: {
118
+ id: 'fabric.editor.ai.config.item.translate.turkish',
119
+ defaultMessage: 'Turkish',
120
+ description: 'Language string referenced in UIs involving the translation AI prompt for Turkish'
121
+ },
122
+ thai: {
123
+ id: 'fabric.editor.ai.config.item.translate.thai',
124
+ defaultMessage: 'Thai',
125
+ description: 'Language string referenced in UIs involving the translation AI prompt for Thai'
126
+ },
127
+ ukrainian: {
128
+ id: 'fabric.editor.ai.config.item.translate.ukrainian',
129
+ defaultMessage: 'Ukrainian',
130
+ description: 'Language string referenced in UIs involving the translation AI prompt for Ukrainian'
131
+ },
132
+ vietnamese: {
133
+ id: 'fabric.editor.ai.config.item.translate.vietnamese',
134
+ defaultMessage: 'Vietnamese',
135
+ description: 'Language string referenced in UIs involving the translation AI prompt for Vietnamese'
136
+ },
137
+ // Translate to messages
138
+ chineseSimplifiedTitle: {
139
+ id: 'fabric.editor.ai.config.item.translateTo.chineseSimplified.title',
140
+ defaultMessage: 'Translate to Chinese (Simplified)',
141
+ description: 'Title of a prompt that translates the selected content into Chinese (Simplified)'
142
+ },
143
+ chineseSimplifiedDescription: {
144
+ id: 'fabric.editor.ai.config.item.translateTo.chineseSimplified.description',
145
+ defaultMessage: "Translates the text you're working on to Chinese (Simplified)",
146
+ description: 'Description for prompt that translates selected content into Chinese (Simplified)'
147
+ },
148
+ chineseTraditionalTitle: {
149
+ id: 'fabric.editor.ai.config.item.translateTo.chineseTraditional.title',
150
+ defaultMessage: 'Translate to Chinese (Traditional)',
151
+ description: 'Title of a prompt that translates the selected content into Chinese (Traditional)'
152
+ },
153
+ chineseTraditionalDescription: {
154
+ id: 'fabric.editor.ai.config.item.translateTo.chineseTraditional.description',
155
+ defaultMessage: "Translates the text you're working on to Chinese (Traditional)",
156
+ description: 'Description for prompt that translates selected content into Chinese (Traditional)'
157
+ },
158
+ czechTitle: {
159
+ id: 'fabric.editor.ai.config.item.translateTo.czech.title',
160
+ defaultMessage: 'Translate to Czech',
161
+ description: 'Title of a prompt that translates the selected content into Czech'
162
+ },
163
+ czechDescription: {
164
+ id: 'fabric.editor.ai.config.item.translateTo.czech.description',
165
+ defaultMessage: "Translates the text you're working on to Czech",
166
+ description: 'Description for prompt that translates selected content into Czech'
167
+ },
168
+ danishTitle: {
169
+ id: 'fabric.editor.ai.config.item.translateTo.danish.title',
170
+ defaultMessage: 'Translate to Danish',
171
+ description: 'Title of a prompt that translates the selected content into Danish'
172
+ },
173
+ danishDescription: {
174
+ id: 'fabric.editor.ai.config.item.translateTo.danish.description',
175
+ defaultMessage: "Translates the text you're working on to Danish",
176
+ description: 'Description for prompt that translates selected content into Danish'
177
+ },
178
+ dutchTitle: {
179
+ id: 'fabric.editor.ai.config.item.translateTo.dutch.title',
180
+ defaultMessage: 'Translate to Dutch',
181
+ description: 'Title of a prompt that translates the selected content into Dutch'
182
+ },
183
+ dutchDescription: {
184
+ id: 'fabric.editor.ai.config.item.translateTo.dutch.description',
185
+ defaultMessage: "Translates the text you're working on to Dutch",
186
+ description: 'Description for prompt that translates selected content into Dutch'
187
+ },
188
+ englishTitle: {
189
+ id: 'fabric.editor.ai.config.item.translateTo.english.title',
190
+ defaultMessage: 'Translate to English',
191
+ description: 'Title of a prompt that translates the selected content into English'
192
+ },
193
+ englishDescription: {
194
+ id: 'fabric.editor.ai.config.item.translateTo.english.description',
195
+ defaultMessage: "Translates the text you're working on to English",
196
+ description: 'Description for prompt that translates selected content into English'
197
+ },
198
+ finnishTitle: {
199
+ id: 'fabric.editor.ai.config.item.translateTo.finnish.title',
200
+ defaultMessage: 'Translate to Finnish',
201
+ description: 'Title of a prompt that translates the selected content into Finnish'
202
+ },
203
+ finnishDescription: {
204
+ id: 'fabric.editor.ai.config.item.translateTo.finnish.description',
205
+ defaultMessage: "Translates the text you're working on to Finnish",
206
+ description: 'Description for prompt that translates selected content into Finnish'
207
+ },
208
+ frenchTitle: {
209
+ id: 'fabric.editor.ai.config.item.translateTo.french.title',
210
+ defaultMessage: 'Translate to French',
211
+ description: 'Title of a prompt that translates the selected content into French'
212
+ },
213
+ frenchDescription: {
214
+ id: 'fabric.editor.ai.config.item.translateTo.french.description',
215
+ defaultMessage: "Translates the text you're working on to French",
216
+ description: 'Description for prompt that translates selected content into French'
217
+ },
218
+ germanTitle: {
219
+ id: 'fabric.editor.ai.config.item.translateTo.german.title',
220
+ defaultMessage: 'Translate to German',
221
+ description: 'Title of a prompt that translates the selected content into German'
222
+ },
223
+ germanDescription: {
224
+ id: 'fabric.editor.ai.config.item.translateTo.german.description',
225
+ defaultMessage: "Translates the text you're working on to German",
226
+ description: 'Description for prompt that translates selected content into German'
227
+ },
228
+ hungarianTitle: {
229
+ id: 'fabric.editor.ai.config.item.translateTo.hungarian.title',
230
+ defaultMessage: 'Translate to Hungarian',
231
+ description: 'Title of a prompt that translates the selected content into Hungarian'
232
+ },
233
+ hungarianDescription: {
234
+ id: 'fabric.editor.ai.config.item.translateTo.hungarian.description',
235
+ defaultMessage: "Translates the text you're working on to Hungarian",
236
+ description: 'Description for prompt that translates selected content into Hungarian'
237
+ },
238
+ italianTitle: {
239
+ id: 'fabric.editor.ai.config.item.translateTo.italian.title',
240
+ defaultMessage: 'Translate to Italian',
241
+ description: 'Title of a prompt that translates the selected content into Italian'
242
+ },
243
+ italianDescription: {
244
+ id: 'fabric.editor.ai.config.item.translateTo.italian.description',
245
+ defaultMessage: "Translates the text you're working on to Italian",
246
+ description: 'Description for prompt that translates selected content into Italian'
247
+ },
248
+ japaneseTitle: {
249
+ id: 'fabric.editor.ai.config.item.translateTo.japanese.title',
250
+ defaultMessage: 'Translate to Japanese',
251
+ description: 'Title of a prompt that translates the selected content into Japanese'
252
+ },
253
+ japaneseDescription: {
254
+ id: 'fabric.editor.ai.config.item.translateTo.japanese.description',
255
+ defaultMessage: "Translates the text you're working on to Japanese",
256
+ description: 'Description for prompt that translates selected content into Japanese'
257
+ },
258
+ koreanTitle: {
259
+ id: 'fabric.editor.ai.config.item.translateTo.korean.title',
260
+ defaultMessage: 'Translate to Korean',
261
+ description: 'Title of a prompt that translates the selected content into Korean'
262
+ },
263
+ koreanDescription: {
264
+ id: 'fabric.editor.ai.config.item.translateTo.korean.description',
265
+ defaultMessage: "Translates the text you're working on to Korean",
266
+ description: 'Description for prompt that translates selected content into Korean'
267
+ },
268
+ norwegianTitle: {
269
+ id: 'fabric.editor.ai.config.item.translateTo.norwegian.title',
270
+ defaultMessage: 'Translate to Norwegian',
271
+ description: 'Title of a prompt that translates the selected content into Norwegian'
272
+ },
273
+ norwegianDescription: {
274
+ id: 'fabric.editor.ai.config.item.translateTo.norwegian.description',
275
+ defaultMessage: "Translates the text you're working on to Norwegian",
276
+ description: 'Description for prompt that translates selected content into Norwegian'
277
+ },
278
+ polishTitle: {
279
+ id: 'fabric.editor.ai.config.item.translateTo.polish.title',
280
+ defaultMessage: 'Translate to Polish',
281
+ description: 'Title of a prompt that translates the selected content into Polish'
282
+ },
283
+ polishDescription: {
284
+ id: 'fabric.editor.ai.config.item.translateTo.polish.description',
285
+ defaultMessage: "Translates the text you're working on to Polish",
286
+ description: 'Description for prompt that translates selected content into Polish'
287
+ },
288
+ portugueseBrazilianTitle: {
289
+ id: 'fabric.editor.ai.config.item.translateTo.portugueseBrazilian.title',
290
+ defaultMessage: 'Translate to Portuguese (Brazilian)',
291
+ description: 'Title of a prompt that translates the selected content into Portuguese (Brazilian)'
292
+ },
293
+ portugueseBrazilianDescription: {
294
+ id: 'fabric.editor.ai.config.item.translateTo.portugueseBrazilian.description',
295
+ defaultMessage: "Translates the text you're working on to Portuguese (Brazilian)",
296
+ description: 'Description for prompt that translates selected content into Portuguese (Brazilian)'
297
+ },
298
+ russianTitle: {
299
+ id: 'fabric.editor.ai.config.item.translateTo.russian.title',
300
+ defaultMessage: 'Translate to Russian',
301
+ description: 'Title of a prompt that translates the selected content into Russian'
302
+ },
303
+ russianDescription: {
304
+ id: 'fabric.editor.ai.config.item.translateTo.russian.description',
305
+ defaultMessage: "Translates the text you're working on to Russian",
306
+ description: 'Description for prompt that translates selected content into Russian'
307
+ },
308
+ spanishTitle: {
309
+ id: 'fabric.editor.ai.config.item.translateTo.spanish.title',
310
+ defaultMessage: 'Translate to Spanish',
311
+ description: 'Title of a prompt that translates the selected content into Spanish'
312
+ },
313
+ spanishDescription: {
314
+ id: 'fabric.editor.ai.config.item.translateTo.spanish.description',
315
+ defaultMessage: "Translates the text you're working on to Spanish",
316
+ description: 'Description for prompt that translates selected content into Spanish'
317
+ },
318
+ swedishTitle: {
319
+ id: 'fabric.editor.ai.config.item.translateTo.swedish.title',
320
+ defaultMessage: 'Translate to Swedish',
321
+ description: 'Title of a prompt that translates the selected content into Swedish'
322
+ },
323
+ swedishDescription: {
324
+ id: 'fabric.editor.ai.config.item.translateTo.swedish.description',
325
+ defaultMessage: "Translates the text you're working on to Swedish",
326
+ description: 'Description for prompt that translates selected content into Swedish'
327
+ },
328
+ turkishTitle: {
329
+ id: 'fabric.editor.ai.config.item.translateTo.turkish.title',
330
+ defaultMessage: 'Translate to Turkish',
331
+ description: 'Title of a prompt that translates the selected content into Turkish'
332
+ },
333
+ turkishDescription: {
334
+ id: 'fabric.editor.ai.config.item.translateTo.turkish.description',
335
+ defaultMessage: "Translates the text you're working on to Turkish",
336
+ description: 'Description for prompt that translates selected content into Turkish'
337
+ },
338
+ thaiTitle: {
339
+ id: 'fabric.editor.ai.config.item.translateTo.thai.title',
340
+ defaultMessage: 'Translate to Thai',
341
+ description: 'Title of a prompt that translates the selected content into Thai'
342
+ },
343
+ thaiDescription: {
344
+ id: 'fabric.editor.ai.config.item.translateTo.thai.description',
345
+ defaultMessage: "Translates the text you're working on to Thai",
346
+ description: 'Description for prompt that translates selected content into Thai'
347
+ },
348
+ ukrainianTitle: {
349
+ id: 'fabric.editor.ai.config.item.translateTo.ukrainian.title',
350
+ defaultMessage: 'Translate to Ukrainian',
351
+ description: 'Title of a prompt that translates the selected content into Ukrainian'
352
+ },
353
+ ukrainianDescription: {
354
+ id: 'fabric.editor.ai.config.item.translateTo.ukrainian.description',
355
+ defaultMessage: "Translates the text you're working on to Ukrainian",
356
+ description: 'Description for prompt that translates selected content into Ukrainian'
357
+ },
358
+ vietnameseTitle: {
359
+ id: 'fabric.editor.ai.config.item.translateTo.vietnamese.title',
360
+ defaultMessage: 'Translate to Vietnamese',
361
+ description: 'Title of a prompt that translates the selected content into Vietnamese'
362
+ },
363
+ vietnameseDescription: {
364
+ id: 'fabric.editor.ai.config.item.translateTo.vietnamese.description',
365
+ defaultMessage: "Translates the text you're working on to Vietnamese",
366
+ description: 'Description for prompt that translates selected content into Vietnamese'
367
+ }
368
+ });
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.aiMessages = void 0;
7
+ var _reactIntlNext = require("react-intl-next");
8
+ var aiMessages = exports.aiMessages = (0, _reactIntlNext.defineMessages)({
9
+ // Event hub messages
10
+ eventHubfallbackSuggestedTitle: {
11
+ id: 'fabric.editor.ai.eventHub.fallbackSuggestedTitle',
12
+ defaultMessage: 'Page title',
13
+ description: 'A fallback suggested title for the suggest title prompt'
14
+ },
15
+ // Toolbar messages
16
+ aiToolbarTitle: {
17
+ id: 'fabric.editor.ai.toolbar.titleText',
18
+ defaultMessage: 'Atlassian Intelligence',
19
+ description: 'Title for Atlassian Intelligence button in editor selection floating toolbar'
20
+ },
21
+ improveWritingToolbarIconTitle: {
22
+ id: 'fabric.editor.ai.toolbar.improveWriting.title',
23
+ defaultMessage: 'Improve writing',
24
+ description: 'Title for an option to use Atlassian Intellgience to improve the writing of content currently selected by the user'
25
+ },
26
+ improveWritingToolbarIconTooltip: {
27
+ id: 'fabric.editor.ai.toolbar.improveWriting.tooltip',
28
+ defaultMessage: 'Tell Atlassian Intelligence to improve the writing of your selection',
29
+ description: 'Tooltip text for an option to use Atlassian Intellgience to improve the writing of content currently selected by the user'
30
+ },
31
+ tryAIToolbarIconTitle: {
32
+ id: 'fabric.editor.ai.toolbar.tryAI.title',
33
+ defaultMessage: 'Try AI',
34
+ description: 'Title for an option to use Atlassian Intellgience'
35
+ },
36
+ tryAIToolbarIconTooltip: {
37
+ id: 'fabric.editor.ai.toolbar.tryAI.tooltip',
38
+ defaultMessage: 'Open Atlassian Intelligence',
39
+ description: 'Tooltip text for an option to use Atlassian Intellgience'
40
+ },
41
+ simplifiedAIToolbarIconTitle: {
42
+ id: 'fabric.editor.ai.toolbar.simplifiedAI.title',
43
+ defaultMessage: 'AI',
44
+ description: 'Title for Atlassian Intelligence button in editor selection floating toolbar'
45
+ },
46
+ // Prebuilt messages
47
+ atlasGenerateContentConfigItemDescription: {
48
+ id: 'fabric.editor.ai.atlas-prebuilt.atlasGenerateContentConfigItemDescription',
49
+ defaultMessage: "Generates content to be inserted into the update",
50
+ description: 'Description for AI Generate content prompt'
51
+ },
52
+ atlasSummarizePageConfigItemDescription: {
53
+ id: 'fabric.editor.ai.atlas-prebuilt.atlasSummarizePageConfigItemDescription',
54
+ defaultMessage: "Summarizes the content of the update",
55
+ description: 'Description for AI Summarise content prompt'
56
+ },
57
+ confluenceChangeToneSelectionToolbarDropdownMenuTitle: {
58
+ id: 'fabric.editor.ai.confluence-prebuilt.confluenceChangeToneSelectionToolbarDropdownMenuTitle',
59
+ defaultMessage: 'Change tone',
60
+ description: 'Title for Atlassian Intelligence "Change Tone" dropdown in editor selection floating toolbar'
61
+ },
62
+ confluenceRewriteSelectionToolbarDropdownMenuTitle: {
63
+ id: 'fabric.editor.ai.confluence-prebuilt.confluenceRewriteSelectionToolbarDropdownMenuTitle',
64
+ defaultMessage: 'Rewrite',
65
+ description: 'Title for Atlassian Intelligence "Rewrite" dropdown in editor selection floating toolbar'
66
+ },
67
+ confluenceTranslateSelectionToolbarDropdownMenuTitle: {
68
+ id: 'fabric.editor.ai.confluence-prebuilt.confluenceTranslateSelectionToolbarDropdownMenuTitle',
69
+ defaultMessage: 'Translate',
70
+ description: 'Title for Atlassian Intelligence "Translate" dropdown in editor selection floating toolbar'
71
+ },
72
+ // AI Panel Action items messages
73
+ actionItemsPageTitle: {
74
+ id: 'fabric.editor.ai.ai-panels.actionItemsPageTitle',
75
+ defaultMessage: "Action items panel (Beta)",
76
+ description: 'Title for AI action items panel'
77
+ },
78
+ actionItemsPageDescription: {
79
+ id: 'fabric.editor.ai.ai-panels.actionItemsPageDescription',
80
+ defaultMessage: "Use Atlassian Intelligence to find action items and display in a panel",
81
+ description: 'Description for AI action items panel'
82
+ },
83
+ // AI Panel Summarise page messages
84
+ summarizePageTitle: {
85
+ id: 'fabric.editor.ai.ai-panels.summarizePageTitle',
86
+ defaultMessage: "Page summary panel (Beta)",
87
+ description: 'Title for AI summary panel'
88
+ },
89
+ summarisePageDescription: {
90
+ id: 'fabric.editor.ai.ai-panels.summarizePageDescription',
91
+ defaultMessage: "Use Atlassian Intelligence to summarize this page and display in a panel",
92
+ description: 'Description for AI summary panel'
93
+ },
94
+ // Agent messages
95
+ agentsDropdownTitle: {
96
+ id: 'rovo.agents.dropdown.title',
97
+ defaultMessage: 'Agents',
98
+ description: 'Title for the agents dropdown in the editor toolbar'
99
+ },
100
+ agentsViewAgentsLabel: {
101
+ id: 'rovo.agents.dropdown.viewAgents.label',
102
+ defaultMessage: 'View all agents',
103
+ description: 'Label for the dropdown option that allows a user to View all available Agents'
104
+ },
105
+ // Error messages
106
+ unhandledErrorMessage: {
107
+ id: 'fabric.editor.ai.experience-application.unhandledErrorMessage',
108
+ defaultMessage: "We're having trouble. Close the dialog and try again.",
109
+ description: 'Message to users that displays when an unexpected error happens'
110
+ },
111
+ markdownErrorMessage: {
112
+ id: 'fabric.editor.ai.experience-application.error-boundary.markdownErrorMessage',
113
+ defaultMessage: "We're having trouble generating the preview. Close the dialog and try again.",
114
+ description: 'Message to users that displays when an error occurs while generating a preview.'
115
+ },
116
+ // Prompt Builder messages
117
+ promptBuilderFromButton: {
118
+ id: 'fabric.editor.ai.commandPalette.promptBuilderForm.buttons.submit',
119
+ defaultMessage: 'Generate',
120
+ description: 'Label for the Submit button in the command palette'
121
+ }
122
+ });
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "aiConfigItemMessages", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _aiConfigItems.aiConfigItemMessages;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "aiDefinitionsMessages", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _aiDefinitions.aiDefinitionsMessages;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "aiExperienceApplicationMessages", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _aiExperienceApplication.aiExperienceApplicationMessages;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "aiFailedStateMessages", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _aiFailedState.aiFailedStateMessages;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "aiLanguageMessages", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _aiLanguages.aiLanguageMessages;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "aiMessages", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _ai.aiMessages;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "aiProactiveMessages", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _aiProactive.aiProactiveMessages;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "aiProactiveSettingMessages", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _aiProactiveSetting.aiProactiveSettingMessages;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "aiProactiveTransformMessages", {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _aiProactiveTransform.aiProactiveTransformMessages;
58
+ }
59
+ });
60
+ var _aiConfigItems = require("./ai-config-items");
61
+ var _aiDefinitions = require("./ai-definitions");
62
+ var _aiExperienceApplication = require("./ai-experience-application");
63
+ var _aiFailedState = require("./ai-failed-state");
64
+ var _aiLanguages = require("./ai-languages");
65
+ var _aiProactive = require("./ai-proactive");
66
+ var _ai = require("./ai");
67
+ var _aiProactiveSetting = require("./ai-proactive-setting");
68
+ var _aiProactiveTransform = require("./ai-proactive-transform");
@@ -47,7 +47,7 @@ function EmptyState(_ref) {
47
47
  })))));
48
48
  }
49
49
  var emptyStateHeading = (0, _react.css)({
50
- font: "var(--ds-font-heading-medium, normal 500 20px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
50
+ font: "var(--ds-font-heading-medium, normal 500 20px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
51
51
  color: "var(--ds-text, rgb(23, 43, 77))",
52
52
  marginTop: "var(--ds-space-300, 24px)"
53
53
  });
@@ -39,7 +39,7 @@ var buttonStyles = (0, _react2.css)({
39
39
  borderRadius: "var(--ds-border-radius, 4px)",
40
40
  paddingLeft: "var(--ds-space-150, 12px)",
41
41
  paddingRight: "var(--ds-space-150, 12px)",
42
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
42
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
43
43
  '&:hover': {
44
44
  backgroundColor: "var(--ds-background-input-hovered, #F7F8F9)"
45
45
  },
@@ -80,7 +80,7 @@ var labelStyles = (0, _react.css)({
80
80
  '&.remove-nested-left-margin': {
81
81
  marginLeft: 0
82
82
  },
83
- font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
83
+ font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
84
84
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
85
85
  '&.with-bodied-macro-live-page-styles': {
86
86
  backgroundColor: "var(--ds-background-input, #FFFFFF)",
@@ -76,7 +76,7 @@ var textLabelMargin = (0, _react2.css)({
76
76
  var inputLabel = (0, _react2.css)({
77
77
  color: "var(--ds-text-subtlest, #626F86)",
78
78
  paddingBottom: "var(--ds-space-050, 4px)",
79
- font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
79
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
80
80
  fontWeight: "var(--ds-font-weight-medium, 500)"
81
81
  });
82
82
  var inputWrapperPosition = (0, _react2.css)({