@atlaskit/editor-common 112.13.4 → 112.13.7

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 (31) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/ai-messages/ai.js +46 -0
  3. package/dist/cjs/extensibility/Extension/Extension/index.js +6 -5
  4. package/dist/cjs/extensibility/Extension/InlineExtension/index.js +6 -5
  5. package/dist/cjs/extensibility/Extension/Lozenge/EditToggle.js +5 -4
  6. package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -4
  7. package/dist/cjs/extensibility/MultiBodiedExtension/index.js +6 -5
  8. package/dist/cjs/monitoring/error.js +1 -1
  9. package/dist/cjs/ui/DropList/index.js +1 -1
  10. package/dist/cjs/user-intent/UserIntentPopupWrapper.js +7 -13
  11. package/dist/es2019/ai-messages/ai.js +46 -0
  12. package/dist/es2019/extensibility/Extension/Extension/index.js +6 -5
  13. package/dist/es2019/extensibility/Extension/InlineExtension/index.js +6 -5
  14. package/dist/es2019/extensibility/Extension/Lozenge/EditToggle.js +5 -4
  15. package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -4
  16. package/dist/es2019/extensibility/MultiBodiedExtension/index.js +6 -5
  17. package/dist/es2019/monitoring/error.js +1 -1
  18. package/dist/es2019/ui/DropList/index.js +1 -1
  19. package/dist/es2019/user-intent/UserIntentPopupWrapper.js +7 -13
  20. package/dist/esm/ai-messages/ai.js +46 -0
  21. package/dist/esm/extensibility/Extension/Extension/index.js +6 -5
  22. package/dist/esm/extensibility/Extension/InlineExtension/index.js +6 -5
  23. package/dist/esm/extensibility/Extension/Lozenge/EditToggle.js +5 -4
  24. package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -4
  25. package/dist/esm/extensibility/MultiBodiedExtension/index.js +6 -5
  26. package/dist/esm/monitoring/error.js +1 -1
  27. package/dist/esm/ui/DropList/index.js +1 -1
  28. package/dist/esm/user-intent/UserIntentPopupWrapper.js +7 -13
  29. package/dist/types/ai-messages/ai.d.ts +128 -83
  30. package/dist/types-ts4.5/ai-messages/ai.d.ts +128 -83
  31. package/package.json +3 -6
@@ -163,17 +163,19 @@ export var ExtensionLabel = function ExtensionLabel(_ref) {
163
163
  className: containerClassNames
164
164
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
165
165
  ,
166
- style: customContainerStyles
167
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
168
- ,
166
+ style: customContainerStyles,
169
167
  onMouseOver: function onMouseOver() {
170
168
  setIsNodeHovered === null || setIsNodeHovered === void 0 || setIsNodeHovered(true);
171
169
  }
172
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
170
+ // @atlassian/a11y/mouse-events-have-key-events: label visibility on keyboard focus is already
171
+ // handled via the .ak-editor-selected-node CSS class applied by ProseMirror on node selection.
172
+ // No-ops here satisfy the rule.
173
173
  ,
174
+ onFocus: expValEquals('editor_a11y__enghealth-46814_fy26', 'isEnabled', true) ? function () {} : undefined,
174
175
  onMouseLeave: function onMouseLeave() {
175
176
  setIsNodeHovered === null || setIsNodeHovered === void 0 || setIsNodeHovered(false);
176
177
  },
178
+ onBlur: expValEquals('editor_a11y__enghealth-46814_fy26', 'isEnabled', true) ? function () {} : undefined,
177
179
  "data-testid": "new-lozenge-container",
178
180
  contentEditable: false
179
181
  }, jsx(Tooltip, {
@@ -209,17 +209,18 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref2
209
209
  "data-layout": node.attrs.layout
210
210
  // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
211
211
  ,
212
- style: mbeWrapperStyles
213
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
214
- ,
212
+ style: mbeWrapperStyles,
215
213
  onMouseEnter: function onMouseEnter() {
216
214
  return handleMouseEvent(true);
217
215
  }
218
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
216
+ // @atlassian/a11y/mouse-events-have-key-events: hover border is also applied via .ak-editor-selected-node
217
+ // CSS on keyboard selection. No-ops here satisfy the rule without duplicating state updates.
219
218
  ,
219
+ onFocus: expValEquals('editor_a11y__enghealth-46814_fy26', 'isEnabled', true) ? function () {} : undefined,
220
220
  onMouseLeave: function onMouseLeave() {
221
221
  return handleMouseEvent(false);
222
- }
222
+ },
223
+ onBlur: expValEquals('editor_a11y__enghealth-46814_fy26', 'isEnabled', true) ? function () {} : undefined
223
224
  }, jsx("div", {
224
225
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
225
226
  css: overlayStyles
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "112.13.3";
13
+ var packageVersion = "112.13.6";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "112.13.3";
24
+ var packageVersion = "112.13.6";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -1,5 +1,4 @@
1
1
  import { useEffect } from 'react';
2
- import { fg } from '@atlaskit/platform-feature-flags';
3
2
  /**
4
3
  *
5
4
  * A wrapper for popups to signal popupOpen user intent
@@ -15,18 +14,13 @@ export var UserIntentPopupWrapper = function UserIntentPopupWrapper(_ref) {
15
14
  return function () {
16
15
  var _api$userIntent2;
17
16
  if (userIntent === (api === null || api === void 0 || (_api$userIntent2 = api.userIntent) === null || _api$userIntent2 === void 0 || (_api$userIntent2 = _api$userIntent2.sharedState.currentState()) === null || _api$userIntent2 === void 0 ? void 0 : _api$userIntent2.currentUserIntent)) {
18
- if (fg('platform_editor_fix_popup_user_intent')) {
19
- // Defer the reset to avoid interfering with ongoing ProseMirror transactions
20
- // This fixes a race condition where cleanup happens during a transaction
21
- // (e.g., during drag handle mouse over -> unmountDecorations -> flushSync)
22
- setTimeout(function () {
23
- var _api$userIntent3;
24
- api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$userIntent3 = api.userIntent) === null || _api$userIntent3 === void 0 ? void 0 : _api$userIntent3.commands.setCurrentUserIntent('default'));
25
- }, 0);
26
- } else {
27
- var _api$userIntent4;
28
- api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$userIntent4 = api.userIntent) === null || _api$userIntent4 === void 0 ? void 0 : _api$userIntent4.commands.setCurrentUserIntent('default'));
29
- }
17
+ // Defer the reset to avoid interfering with ongoing ProseMirror transactions
18
+ // This fixes a race condition where cleanup happens during a transaction
19
+ // (e.g., during drag handle mouse over -> unmountDecorations -> flushSync)
20
+ setTimeout(function () {
21
+ var _api$userIntent3;
22
+ api === null || api === void 0 || api.core.actions.execute(api === null || api === void 0 || (_api$userIntent3 = api.userIntent) === null || _api$userIntent3 === void 0 ? void 0 : _api$userIntent3.commands.setCurrentUserIntent('default'));
23
+ }, 0);
30
24
  }
31
25
  };
32
26
 
@@ -1,242 +1,287 @@
1
1
  export declare const aiMessages: {
2
- eventHubfallbackSuggestedTitle: {
3
- id: string;
2
+ actionItemsPageDescription: {
4
3
  defaultMessage: string;
5
4
  description: string;
6
- };
7
- eventHubfallbackSuggestedTitlePrefix: {
8
5
  id: string;
6
+ };
7
+ actionItemsPageTitle: {
9
8
  defaultMessage: string;
10
9
  description: string;
11
- };
12
- aiToolbarTitle: {
13
10
  id: string;
11
+ };
12
+ adjustLengthToolbarDropdownIconTitle: {
14
13
  defaultMessage: string;
15
14
  description: string;
16
- };
17
- improveWritingToolbarIconTitle: {
18
15
  id: string;
16
+ };
17
+ agentsDropdownTitle: {
19
18
  defaultMessage: string;
20
19
  description: string;
21
- };
22
- improveWritingToolbarIconTooltip: {
23
20
  id: string;
21
+ };
22
+ agentsViewAgentsLabel: {
24
23
  defaultMessage: string;
25
24
  description: string;
26
- };
27
- askAIToolbarIconTitle: {
28
25
  id: string;
26
+ };
27
+ aiRovoTelepointer: {
29
28
  defaultMessage: string;
30
29
  description: string;
31
- };
32
- askRovoToolbarIconTitle: {
33
30
  id: string;
31
+ };
32
+ aiSmartButtonDynamicSurfaceSelectedContent: {
34
33
  defaultMessage: string;
35
34
  description: string;
36
- };
37
- moreRovoOptionsMenuLabel: {
38
35
  id: string;
36
+ };
37
+ aiToolbarTitle: {
39
38
  defaultMessage: string;
40
39
  description: string;
41
- };
42
- askRovoAiSplitButtonLabel: {
43
40
  id: string;
41
+ };
42
+ askAIToolbarIconTitle: {
44
43
  defaultMessage: string;
45
44
  description: string;
45
+ id: string;
46
46
  };
47
47
  askAIToolbarIconTooltip: {
48
- id: string;
49
48
  defaultMessage: string;
50
49
  description: string;
50
+ id: string;
51
51
  };
52
52
  askAIToolbarIconTooltipQuickCommand: {
53
- id: string;
54
53
  defaultMessage: string;
55
54
  description: string;
56
- };
57
- askRovoToolbarIconTooltipQuickCommand: {
58
55
  id: string;
56
+ };
57
+ askRovoAiSplitButtonLabel: {
59
58
  defaultMessage: string;
60
59
  description: string;
61
- };
62
- tryAIToolbarIconTitle: {
63
60
  id: string;
61
+ };
62
+ askRovoToolbarIconTitle: {
64
63
  defaultMessage: string;
65
64
  description: string;
66
- };
67
- tryAIToolbarIconTooltip: {
68
65
  id: string;
66
+ };
67
+ askRovoToolbarIconTooltipQuickCommand: {
69
68
  defaultMessage: string;
70
69
  description: string;
71
- };
72
- simplifiedAIToolbarIconTitle: {
73
70
  id: string;
71
+ };
72
+ atlasGenerateContentConfigItemDescription: {
74
73
  defaultMessage: string;
75
74
  description: string;
76
- };
77
- summarizeToolbarDropdownIconTitle: {
78
75
  id: string;
76
+ };
77
+ atlasSummarizePageConfigItemDescription: {
79
78
  defaultMessage: string;
80
79
  description: string;
81
- };
82
- translateToolbarDropdownIconTitle: {
83
80
  id: string;
81
+ };
82
+ blockMenuNestedMenuTitle: {
84
83
  defaultMessage: string;
85
84
  description: string;
85
+ id: string;
86
86
  };
87
- translateOptionsIconLabel: {
87
+ changeToneOptionsIconLabel: {
88
+ defaultMessage: string;
89
+ description: string;
88
90
  id: string;
91
+ };
92
+ changeToneToolbarDropdownIconTitle: {
89
93
  defaultMessage: string;
90
94
  description: string;
95
+ id: string;
91
96
  };
92
- spellingAndGrammarToolbarDropdownIconTitle: {
97
+ cmdPaletteUnhandledErrorMessage: {
98
+ defaultMessage: string;
99
+ description: string;
93
100
  id: string;
101
+ };
102
+ confluenceChangeToneSelectionToolbarDropdownMenuTitle: {
94
103
  defaultMessage: string;
95
104
  description: string;
105
+ id: string;
96
106
  };
97
- makeLongerToolbarDropdownIconTitle: {
107
+ confluenceRewriteSelectionToolbarDropdownMenuTitle: {
108
+ defaultMessage: string;
109
+ description: string;
98
110
  id: string;
111
+ };
112
+ confluenceTranslateSelectionToolbarDropdownMenuTitle: {
99
113
  defaultMessage: string;
100
114
  description: string;
115
+ id: string;
101
116
  };
102
- makeShorterToolbarDropdownIconTitle: {
117
+ DefineDropdownIconTitle: {
118
+ defaultMessage: string;
119
+ description: string;
103
120
  id: string;
121
+ };
122
+ eventHubfallbackSuggestedTitle: {
104
123
  defaultMessage: string;
105
124
  description: string;
125
+ id: string;
106
126
  };
107
- changeToneToolbarDropdownIconTitle: {
127
+ eventHubfallbackSuggestedTitlePrefix: {
128
+ defaultMessage: string;
129
+ description: string;
108
130
  id: string;
131
+ };
132
+ improveWritingToolbarIconTitle: {
109
133
  defaultMessage: string;
110
134
  description: string;
135
+ id: string;
111
136
  };
112
- changeToneOptionsIconLabel: {
137
+ improveWritingToolbarIconTooltip: {
138
+ defaultMessage: string;
139
+ description: string;
113
140
  id: string;
141
+ };
142
+ makeLongerToolbarDropdownIconTitle: {
114
143
  defaultMessage: string;
115
144
  description: string;
145
+ id: string;
116
146
  };
117
- moreProfessionalToneToolbarDropdownIconTitle: {
147
+ makeShorterToolbarDropdownIconTitle: {
148
+ defaultMessage: string;
149
+ description: string;
118
150
  id: string;
151
+ };
152
+ markdownErrorMessage: {
119
153
  defaultMessage: string;
120
154
  description: string;
155
+ id: string;
121
156
  };
122
157
  moreCasualToneToolbarDropdownIconTitle: {
123
- id: string;
124
158
  defaultMessage: string;
125
159
  description: string;
160
+ id: string;
126
161
  };
127
162
  moreEmpatheticToneToolbarDropdownIconTitle: {
128
- id: string;
129
163
  defaultMessage: string;
130
164
  description: string;
131
- };
132
- adjustLengthToolbarDropdownIconTitle: {
133
165
  id: string;
166
+ };
167
+ moreProfessionalToneToolbarDropdownIconTitle: {
134
168
  defaultMessage: string;
135
169
  description: string;
136
- };
137
- DefineDropdownIconTitle: {
138
170
  id: string;
171
+ };
172
+ moreRovoOptionsMenuLabel: {
139
173
  defaultMessage: string;
140
174
  description: string;
141
- };
142
- atlasGenerateContentConfigItemDescription: {
143
175
  id: string;
176
+ };
177
+ pasteMenuActionsTitle: {
144
178
  defaultMessage: string;
145
179
  description: string;
146
- };
147
- atlasSummarizePageConfigItemDescription: {
148
180
  id: string;
181
+ };
182
+ promptbuilderAriaLabel: {
149
183
  defaultMessage: string;
150
184
  description: string;
151
- };
152
- confluenceChangeToneSelectionToolbarDropdownMenuTitle: {
153
185
  id: string;
186
+ };
187
+ promptBuilderFromButton: {
154
188
  defaultMessage: string;
155
189
  description: string;
156
- };
157
- confluenceRewriteSelectionToolbarDropdownMenuTitle: {
158
190
  id: string;
191
+ };
192
+ simplifiedAIToolbarIconTitle: {
159
193
  defaultMessage: string;
160
194
  description: string;
161
- };
162
- confluenceTranslateSelectionToolbarDropdownMenuTitle: {
163
195
  id: string;
196
+ };
197
+ smartlinkAddDecisions: {
164
198
  defaultMessage: string;
165
199
  description: string;
166
- };
167
- actionItemsPageTitle: {
168
200
  id: string;
201
+ };
202
+ smartlinkAddRelatedWorkItems: {
169
203
  defaultMessage: string;
170
204
  description: string;
171
- };
172
- actionItemsPageDescription: {
173
205
  id: string;
206
+ };
207
+ smartlinkDefineActionItems: {
174
208
  defaultMessage: string;
175
209
  description: string;
176
- };
177
- summarizePageTitle: {
178
210
  id: string;
211
+ };
212
+ smartlinkExtractInsights: {
179
213
  defaultMessage: string;
180
214
  description: string;
181
- };
182
- summarisePageDescription: {
183
215
  id: string;
216
+ };
217
+ smartlinkExtractUserQuotes: {
184
218
  defaultMessage: string;
185
219
  description: string;
186
- };
187
- agentsDropdownTitle: {
188
220
  id: string;
221
+ };
222
+ smartlinkListKeyThemes: {
189
223
  defaultMessage: string;
190
224
  description: string;
191
- };
192
- agentsViewAgentsLabel: {
193
225
  id: string;
226
+ };
227
+ smartlinkListKeyTopics: {
194
228
  defaultMessage: string;
195
229
  description: string;
196
- };
197
- unhandledErrorMessage: {
198
230
  id: string;
231
+ };
232
+ smartlinkListTodos: {
199
233
  defaultMessage: string;
200
234
  description: string;
201
- };
202
- cmdPaletteUnhandledErrorMessage: {
203
235
  id: string;
236
+ };
237
+ smartlinkSummarizeChanges: {
204
238
  defaultMessage: string;
205
239
  description: string;
206
- };
207
- markdownErrorMessage: {
208
240
  id: string;
241
+ };
242
+ spellingAndGrammarToolbarDropdownIconTitle: {
209
243
  defaultMessage: string;
210
244
  description: string;
211
- };
212
- promptbuilderAriaLabel: {
213
245
  id: string;
246
+ };
247
+ summarisePageDescription: {
214
248
  defaultMessage: string;
215
249
  description: string;
216
- };
217
- promptBuilderFromButton: {
218
250
  id: string;
251
+ };
252
+ summarizePageTitle: {
219
253
  defaultMessage: string;
220
254
  description: string;
221
- };
222
- aiSmartButtonDynamicSurfaceSelectedContent: {
223
255
  id: string;
256
+ };
257
+ summarizeToolbarDropdownIconTitle: {
224
258
  defaultMessage: string;
225
259
  description: string;
226
- };
227
- aiRovoTelepointer: {
228
260
  id: string;
261
+ };
262
+ translateOptionsIconLabel: {
229
263
  defaultMessage: string;
230
264
  description: string;
265
+ id: string;
231
266
  };
232
- pasteMenuActionsTitle: {
267
+ translateToolbarDropdownIconTitle: {
268
+ defaultMessage: string;
269
+ description: string;
233
270
  id: string;
271
+ };
272
+ tryAIToolbarIconTitle: {
234
273
  defaultMessage: string;
235
274
  description: string;
275
+ id: string;
236
276
  };
237
- blockMenuNestedMenuTitle: {
277
+ tryAIToolbarIconTooltip: {
278
+ defaultMessage: string;
279
+ description: string;
238
280
  id: string;
281
+ };
282
+ unhandledErrorMessage: {
239
283
  defaultMessage: string;
240
284
  description: string;
285
+ id: string;
241
286
  };
242
287
  };