@atlaskit/editor-common 82.4.0 → 82.5.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 (37) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/analytics/types/element-events.js +5 -0
  3. package/dist/cjs/analytics/types/enums.js +8 -0
  4. package/dist/cjs/extensions/module-helpers.js +4 -0
  5. package/dist/cjs/monitoring/error.js +1 -1
  6. package/dist/cjs/ui/DropList/index.js +1 -1
  7. package/dist/cjs/ui/FloatingToolbar/Button.js +2 -0
  8. package/dist/cjs/ui-color/ColorPalette/Color/index.js +6 -1
  9. package/dist/es2019/analytics/types/element-events.js +1 -0
  10. package/dist/es2019/analytics/types/enums.js +8 -0
  11. package/dist/es2019/extensions/module-helpers.js +4 -0
  12. package/dist/es2019/monitoring/error.js +1 -1
  13. package/dist/es2019/ui/DropList/index.js +1 -1
  14. package/dist/es2019/ui/FloatingToolbar/Button.js +2 -0
  15. package/dist/es2019/ui-color/ColorPalette/Color/index.js +6 -1
  16. package/dist/esm/analytics/types/element-events.js +1 -0
  17. package/dist/esm/analytics/types/enums.js +8 -0
  18. package/dist/esm/extensions/module-helpers.js +4 -0
  19. package/dist/esm/monitoring/error.js +1 -1
  20. package/dist/esm/ui/DropList/index.js +1 -1
  21. package/dist/esm/ui/FloatingToolbar/Button.js +2 -0
  22. package/dist/esm/ui-color/ColorPalette/Color/index.js +6 -1
  23. package/dist/types/analytics/types/element-events.d.ts +10 -0
  24. package/dist/types/analytics/types/enums.d.ts +9 -1
  25. package/dist/types/analytics/types/events.d.ts +2 -1
  26. package/dist/types/analytics/types/index.d.ts +1 -0
  27. package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +17 -2
  28. package/dist/types/ui/FloatingToolbar/Button.d.ts +2 -1
  29. package/dist/types/ui-color/ColorPalette/Color/index.d.ts +2 -8
  30. package/dist/types-ts4.5/analytics/types/element-events.d.ts +10 -0
  31. package/dist/types-ts4.5/analytics/types/enums.d.ts +9 -1
  32. package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
  33. package/dist/types-ts4.5/analytics/types/index.d.ts +1 -0
  34. package/dist/types-ts4.5/extensions/types/extension-manifest-toolbar-item.d.ts +17 -2
  35. package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +2 -1
  36. package/dist/types-ts4.5/ui-color/ColorPalette/Color/index.d.ts +2 -8
  37. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 82.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#108718](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/108718)
8
+ [`1aad4f15416c2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/1aad4f15416c2) -
9
+ [EDF-737] Add content warning to the floating toolbar of the ai panels, extended extensions
10
+ floating toolbar API to allow custom JSX
11
+ - [#108805](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/108805)
12
+ [`5c0926002a5ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5c0926002a5ac) -
13
+ Add new element drag and drop analytic events
14
+
15
+ ### Patch Changes
16
+
17
+ - [#110426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110426)
18
+ [`f423990451a12`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f423990451a12) -
19
+ [ED-23348] Fixed the feature flag set-up for the text highlight decorator
20
+
3
21
  ## 82.4.0
4
22
 
5
23
  ### Minor Changes
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -15,6 +15,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
15
15
  ACTION["ACTIVATED"] = "activated";
16
16
  ACTION["ADDED"] = "added";
17
17
  ACTION["BROWSER_FREEZE"] = "browserFreeze";
18
+ ACTION["CANCELLED"] = "cancelled";
18
19
  ACTION["CAUGHT_DOM_ERROR"] = "caughtDomError";
19
20
  ACTION["CHANGED_BACKGROUND_COLOR"] = "changedBackgroundColor";
20
21
  ACTION["CHANGED_ICON"] = "changedIcon";
@@ -40,6 +41,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
40
41
  ACTION["DISMISSED"] = "dismissed";
41
42
  ACTION["DISPATCHED_INVALID_TRANSACTION"] = "dispatchedInvalidTransaction";
42
43
  ACTION["DISPATCHED_VALID_TRANSACTION"] = "dispatchedValidTransaction";
44
+ ACTION["DRAGGED"] = "dragged";
43
45
  ACTION["EDITED"] = "edited";
44
46
  ACTION["EDITOR_CRASHED"] = "unhandledErrorCaught";
45
47
  ACTION["EDITOR_CRASHED_ADDITIONAL_INFORMATION"] = "unhandledErrorCaughtAdditionalInfov2";
@@ -154,6 +156,7 @@ var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
154
156
  INPUT_METHOD["CONFIG_PANEL"] = "configPanel";
155
157
  INPUT_METHOD["CONTEXT_MENU"] = "contextMenu";
156
158
  INPUT_METHOD["DRAG_AND_DROP"] = "dragAndDrop";
159
+ INPUT_METHOD["DRAG"] = "drag";
157
160
  INPUT_METHOD["EXTERNAL"] = "external";
158
161
  INPUT_METHOD["EXTENSION_API"] = "extensionApi";
159
162
  INPUT_METHOD["FLOATING_TB"] = "floatingToolbar";
@@ -231,6 +234,9 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
231
234
  ACTION_SUBJECT["LOOM"] = "loom";
232
235
  ACTION_SUBJECT["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
233
236
  ACTION_SUBJECT["BODIED_EXTENSION"] = "bodiedExtension";
237
+ ACTION_SUBJECT["DROP_TARGET"] = "dropTarget";
238
+ ACTION_SUBJECT["DRAG"] = "drag";
239
+ ACTION_SUBJECT["ELEMENT"] = "element";
234
240
  return ACTION_SUBJECT;
235
241
  }({});
236
242
  var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
@@ -260,6 +266,8 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
260
266
  ACTION_SUBJECT_ID["DECISION"] = "decision";
261
267
  ACTION_SUBJECT_ID["DIVIDER"] = "divider";
262
268
  ACTION_SUBJECT_ID["EDIT_LINK"] = "editLink";
269
+ ACTION_SUBJECT_ID["ELEMENT_DRAG_HANDLE"] = "elementDragHandle";
270
+ ACTION_SUBJECT_ID["ELEMENT_DROP_TARGET"] = "elementDropTarget";
263
271
  ACTION_SUBJECT_ID["EMBEDS"] = "embeds";
264
272
  ACTION_SUBJECT_ID["EMOJI"] = "emoji";
265
273
  ACTION_SUBJECT_ID["EXPAND"] = "expand";
@@ -158,8 +158,10 @@ var logError = function logError(msg) {
158
158
  };
159
159
  var toolbarItemToButtonConfig = function toolbarItemToButtonConfig(toolbarItem, parentKey) {
160
160
  var tooltip = toolbarItem.tooltip,
161
+ tooltipStyle = toolbarItem.tooltipStyle,
161
162
  key = toolbarItem.key,
162
163
  label = toolbarItem.label,
164
+ ariaLabel = toolbarItem.ariaLabel,
163
165
  icon = toolbarItem.icon,
164
166
  action = toolbarItem.action,
165
167
  disabled = toolbarItem.disabled;
@@ -197,7 +199,9 @@ var toolbarItemToButtonConfig = function toolbarItemToButtonConfig(toolbarItem,
197
199
  }
198
200
  return _objectSpread({
199
201
  key: itemKey,
202
+ ariaLabel: ariaLabel,
200
203
  tooltip: tooltip,
204
+ tooltipStyle: tooltipStyle,
201
205
  action: action,
202
206
  disabled: disabled
203
207
  }, labelAndIcon);
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "82.4.0";
20
+ var packageVersion = "82.5.0";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
20
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
21
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "82.4.0";
23
+ var packageVersion = "82.5.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -34,6 +34,7 @@ var _default = exports.default = function _default(_ref) {
34
34
  children = _ref.children,
35
35
  className = _ref.className,
36
36
  tooltipContent = _ref.tooltipContent,
37
+ tooltipStyle = _ref.tooltipStyle,
37
38
  testId = _ref.testId,
38
39
  _ref$hideTooltipOnCli = _ref.hideTooltipOnClick,
39
40
  hideTooltipOnClick = _ref$hideTooltipOnCli === void 0 ? true : _ref$hideTooltipOnCli,
@@ -54,6 +55,7 @@ var _default = exports.default = function _default(_ref) {
54
55
  // Only fallback to title for tooltip if title is not shown
55
56
  , {
56
57
  content: tooltipContent || (iconOnly ? title : undefined),
58
+ component: tooltipStyle,
57
59
  hideTooltipOnClick: hideTooltipOnClick,
58
60
  position: "top"
59
61
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -140,5 +140,10 @@ var ClassComponentColor = /*#__PURE__*/function (_PureComponent) {
140
140
  }]);
141
141
  return ClassComponentColor;
142
142
  }(_react.PureComponent);
143
- var Color = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.transparent-diagonal-decorator') ? FunctionalComponentColor : ClassComponentColor;
143
+ var Color = function Color(props) {
144
+ if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.transparent-diagonal-decorator')) {
145
+ return (0, _react2.jsx)(FunctionalComponentColor, props);
146
+ }
147
+ return (0, _react2.jsx)(ClassComponentColor, props);
148
+ };
144
149
  var _default = exports.default = Color;
@@ -0,0 +1 @@
1
+ export {};
@@ -9,6 +9,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
9
9
  ACTION["ACTIVATED"] = "activated";
10
10
  ACTION["ADDED"] = "added";
11
11
  ACTION["BROWSER_FREEZE"] = "browserFreeze";
12
+ ACTION["CANCELLED"] = "cancelled";
12
13
  ACTION["CAUGHT_DOM_ERROR"] = "caughtDomError";
13
14
  ACTION["CHANGED_BACKGROUND_COLOR"] = "changedBackgroundColor";
14
15
  ACTION["CHANGED_ICON"] = "changedIcon";
@@ -34,6 +35,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
34
35
  ACTION["DISMISSED"] = "dismissed";
35
36
  ACTION["DISPATCHED_INVALID_TRANSACTION"] = "dispatchedInvalidTransaction";
36
37
  ACTION["DISPATCHED_VALID_TRANSACTION"] = "dispatchedValidTransaction";
38
+ ACTION["DRAGGED"] = "dragged";
37
39
  ACTION["EDITED"] = "edited";
38
40
  ACTION["EDITOR_CRASHED"] = "unhandledErrorCaught";
39
41
  ACTION["EDITOR_CRASHED_ADDITIONAL_INFORMATION"] = "unhandledErrorCaughtAdditionalInfov2";
@@ -148,6 +150,7 @@ export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
148
150
  INPUT_METHOD["CONFIG_PANEL"] = "configPanel";
149
151
  INPUT_METHOD["CONTEXT_MENU"] = "contextMenu";
150
152
  INPUT_METHOD["DRAG_AND_DROP"] = "dragAndDrop";
153
+ INPUT_METHOD["DRAG"] = "drag";
151
154
  INPUT_METHOD["EXTERNAL"] = "external";
152
155
  INPUT_METHOD["EXTENSION_API"] = "extensionApi";
153
156
  INPUT_METHOD["FLOATING_TB"] = "floatingToolbar";
@@ -225,6 +228,9 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
225
228
  ACTION_SUBJECT["LOOM"] = "loom";
226
229
  ACTION_SUBJECT["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
227
230
  ACTION_SUBJECT["BODIED_EXTENSION"] = "bodiedExtension";
231
+ ACTION_SUBJECT["DROP_TARGET"] = "dropTarget";
232
+ ACTION_SUBJECT["DRAG"] = "drag";
233
+ ACTION_SUBJECT["ELEMENT"] = "element";
228
234
  return ACTION_SUBJECT;
229
235
  }({});
230
236
  export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
@@ -254,6 +260,8 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
254
260
  ACTION_SUBJECT_ID["DECISION"] = "decision";
255
261
  ACTION_SUBJECT_ID["DIVIDER"] = "divider";
256
262
  ACTION_SUBJECT_ID["EDIT_LINK"] = "editLink";
263
+ ACTION_SUBJECT_ID["ELEMENT_DRAG_HANDLE"] = "elementDragHandle";
264
+ ACTION_SUBJECT_ID["ELEMENT_DROP_TARGET"] = "elementDropTarget";
257
265
  ACTION_SUBJECT_ID["EMBEDS"] = "embeds";
258
266
  ACTION_SUBJECT_ID["EMOJI"] = "emoji";
259
267
  ACTION_SUBJECT_ID["EXPAND"] = "expand";
@@ -62,8 +62,10 @@ const logError = (msg, ...args) => {
62
62
  const toolbarItemToButtonConfig = (toolbarItem, parentKey) => {
63
63
  const {
64
64
  tooltip,
65
+ tooltipStyle,
65
66
  key,
66
67
  label,
68
+ ariaLabel,
67
69
  icon,
68
70
  action,
69
71
  disabled
@@ -102,7 +104,9 @@ const toolbarItemToButtonConfig = (toolbarItem, parentKey) => {
102
104
  }
103
105
  return {
104
106
  key: itemKey,
107
+ ariaLabel,
105
108
  tooltip,
109
+ tooltipStyle,
106
110
  action,
107
111
  disabled,
108
112
  ...labelAndIcon
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "82.4.0";
4
+ const packageVersion = "82.5.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
7
7
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
8
8
  import Layer from '../Layer';
9
9
  const packageName = "@atlaskit/editor-common";
10
- const packageVersion = "82.4.0";
10
+ const packageVersion = "82.5.0";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -21,6 +21,7 @@ export default (({
21
21
  children,
22
22
  className,
23
23
  tooltipContent,
24
+ tooltipStyle,
24
25
  testId,
25
26
  hideTooltipOnClick = true,
26
27
  ariaHasPopup,
@@ -41,6 +42,7 @@ export default (({
41
42
  // Only fallback to title for tooltip if title is not shown
42
43
  , {
43
44
  content: tooltipContent || (iconOnly ? title : undefined),
45
+ component: tooltipStyle,
44
46
  hideTooltipOnClick: hideTooltipOnClick,
45
47
  position: "top"
46
48
  }, /*#__PURE__*/React.createElement("div", {
@@ -129,5 +129,10 @@ class ClassComponentColor extends PureComponent {
129
129
  }))));
130
130
  }
131
131
  }
132
- const Color = getBooleanFF('platform.editor.transparent-diagonal-decorator') ? FunctionalComponentColor : ClassComponentColor;
132
+ const Color = props => {
133
+ if (getBooleanFF('platform.editor.transparent-diagonal-decorator')) {
134
+ return jsx(FunctionalComponentColor, props);
135
+ }
136
+ return jsx(ClassComponentColor, props);
137
+ };
133
138
  export default Color;
@@ -0,0 +1 @@
1
+ export {};
@@ -9,6 +9,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
9
9
  ACTION["ACTIVATED"] = "activated";
10
10
  ACTION["ADDED"] = "added";
11
11
  ACTION["BROWSER_FREEZE"] = "browserFreeze";
12
+ ACTION["CANCELLED"] = "cancelled";
12
13
  ACTION["CAUGHT_DOM_ERROR"] = "caughtDomError";
13
14
  ACTION["CHANGED_BACKGROUND_COLOR"] = "changedBackgroundColor";
14
15
  ACTION["CHANGED_ICON"] = "changedIcon";
@@ -34,6 +35,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
34
35
  ACTION["DISMISSED"] = "dismissed";
35
36
  ACTION["DISPATCHED_INVALID_TRANSACTION"] = "dispatchedInvalidTransaction";
36
37
  ACTION["DISPATCHED_VALID_TRANSACTION"] = "dispatchedValidTransaction";
38
+ ACTION["DRAGGED"] = "dragged";
37
39
  ACTION["EDITED"] = "edited";
38
40
  ACTION["EDITOR_CRASHED"] = "unhandledErrorCaught";
39
41
  ACTION["EDITOR_CRASHED_ADDITIONAL_INFORMATION"] = "unhandledErrorCaughtAdditionalInfov2";
@@ -148,6 +150,7 @@ export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
148
150
  INPUT_METHOD["CONFIG_PANEL"] = "configPanel";
149
151
  INPUT_METHOD["CONTEXT_MENU"] = "contextMenu";
150
152
  INPUT_METHOD["DRAG_AND_DROP"] = "dragAndDrop";
153
+ INPUT_METHOD["DRAG"] = "drag";
151
154
  INPUT_METHOD["EXTERNAL"] = "external";
152
155
  INPUT_METHOD["EXTENSION_API"] = "extensionApi";
153
156
  INPUT_METHOD["FLOATING_TB"] = "floatingToolbar";
@@ -225,6 +228,9 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
225
228
  ACTION_SUBJECT["LOOM"] = "loom";
226
229
  ACTION_SUBJECT["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
227
230
  ACTION_SUBJECT["BODIED_EXTENSION"] = "bodiedExtension";
231
+ ACTION_SUBJECT["DROP_TARGET"] = "dropTarget";
232
+ ACTION_SUBJECT["DRAG"] = "drag";
233
+ ACTION_SUBJECT["ELEMENT"] = "element";
228
234
  return ACTION_SUBJECT;
229
235
  }({});
230
236
  export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
@@ -254,6 +260,8 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
254
260
  ACTION_SUBJECT_ID["DECISION"] = "decision";
255
261
  ACTION_SUBJECT_ID["DIVIDER"] = "divider";
256
262
  ACTION_SUBJECT_ID["EDIT_LINK"] = "editLink";
263
+ ACTION_SUBJECT_ID["ELEMENT_DRAG_HANDLE"] = "elementDragHandle";
264
+ ACTION_SUBJECT_ID["ELEMENT_DROP_TARGET"] = "elementDropTarget";
257
265
  ACTION_SUBJECT_ID["EMBEDS"] = "embeds";
258
266
  ACTION_SUBJECT_ID["EMOJI"] = "emoji";
259
267
  ACTION_SUBJECT_ID["EXPAND"] = "expand";
@@ -146,8 +146,10 @@ var logError = function logError(msg) {
146
146
  };
147
147
  var toolbarItemToButtonConfig = function toolbarItemToButtonConfig(toolbarItem, parentKey) {
148
148
  var tooltip = toolbarItem.tooltip,
149
+ tooltipStyle = toolbarItem.tooltipStyle,
149
150
  key = toolbarItem.key,
150
151
  label = toolbarItem.label,
152
+ ariaLabel = toolbarItem.ariaLabel,
151
153
  icon = toolbarItem.icon,
152
154
  action = toolbarItem.action,
153
155
  disabled = toolbarItem.disabled;
@@ -185,7 +187,9 @@ var toolbarItemToButtonConfig = function toolbarItemToButtonConfig(toolbarItem,
185
187
  }
186
188
  return _objectSpread({
187
189
  key: itemKey,
190
+ ariaLabel: ariaLabel,
188
191
  tooltip: tooltip,
192
+ tooltipStyle: tooltipStyle,
189
193
  action: action,
190
194
  disabled: disabled
191
195
  }, labelAndIcon);
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "82.4.0";
10
+ var packageVersion = "82.5.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -15,7 +15,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
15
15
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
16
16
  import Layer from '../Layer';
17
17
  var packageName = "@atlaskit/editor-common";
18
- var packageVersion = "82.4.0";
18
+ var packageVersion = "82.5.0";
19
19
  var halfFocusRing = 1;
20
20
  var dropOffset = '0, 8';
21
21
  var DropList = /*#__PURE__*/function (_Component) {
@@ -27,6 +27,7 @@ export default (function (_ref) {
27
27
  children = _ref.children,
28
28
  className = _ref.className,
29
29
  tooltipContent = _ref.tooltipContent,
30
+ tooltipStyle = _ref.tooltipStyle,
30
31
  testId = _ref.testId,
31
32
  _ref$hideTooltipOnCli = _ref.hideTooltipOnClick,
32
33
  hideTooltipOnClick = _ref$hideTooltipOnCli === void 0 ? true : _ref$hideTooltipOnCli,
@@ -47,6 +48,7 @@ export default (function (_ref) {
47
48
  // Only fallback to title for tooltip if title is not shown
48
49
  , {
49
50
  content: tooltipContent || (iconOnly ? title : undefined),
51
+ component: tooltipStyle,
50
52
  hideTooltipOnClick: hideTooltipOnClick,
51
53
  position: "top"
52
54
  }, /*#__PURE__*/React.createElement("div", {
@@ -131,5 +131,10 @@ var ClassComponentColor = /*#__PURE__*/function (_PureComponent) {
131
131
  }]);
132
132
  return ClassComponentColor;
133
133
  }(PureComponent);
134
- var Color = getBooleanFF('platform.editor.transparent-diagonal-decorator') ? FunctionalComponentColor : ClassComponentColor;
134
+ var Color = function Color(props) {
135
+ if (getBooleanFF('platform.editor.transparent-diagonal-decorator')) {
136
+ return jsx(FunctionalComponentColor, props);
137
+ }
138
+ return jsx(ClassComponentColor, props);
139
+ };
135
140
  export default Color;
@@ -0,0 +1,10 @@
1
+ import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
2
+ import type { UIAEP } from './utils';
3
+ type ElementAttributes = {
4
+ nodeDepth: number;
5
+ nodeType: string;
6
+ };
7
+ type ElementDragAEP = UIAEP<ACTION.DRAGGED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
8
+ type DragCancelledAEP = UIAEP<ACTION.CANCELLED, ACTION_SUBJECT.DRAG, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
9
+ export type ElementEventPayload = ElementDragAEP | DragCancelledAEP;
10
+ export {};
@@ -8,6 +8,7 @@ export declare enum ACTION {
8
8
  ACTIVATED = "activated",
9
9
  ADDED = "added",
10
10
  BROWSER_FREEZE = "browserFreeze",
11
+ CANCELLED = "cancelled",
11
12
  CAUGHT_DOM_ERROR = "caughtDomError",
12
13
  CHANGED_BACKGROUND_COLOR = "changedBackgroundColor",
13
14
  CHANGED_ICON = "changedIcon",
@@ -36,6 +37,7 @@ export declare enum ACTION {
36
37
  DISMISSED = "dismissed",
37
38
  DISPATCHED_INVALID_TRANSACTION = "dispatchedInvalidTransaction",
38
39
  DISPATCHED_VALID_TRANSACTION = "dispatchedValidTransaction",
40
+ DRAGGED = "dragged",
39
41
  EDITED = "edited",
40
42
  EDITOR_CRASHED = "unhandledErrorCaught",
41
43
  EDITOR_CRASHED_ADDITIONAL_INFORMATION = "unhandledErrorCaughtAdditionalInfov2",
@@ -154,6 +156,7 @@ export declare enum INPUT_METHOD {
154
156
  CONFIG_PANEL = "configPanel",
155
157
  CONTEXT_MENU = "contextMenu",
156
158
  DRAG_AND_DROP = "dragAndDrop",
159
+ DRAG = "drag",
157
160
  EXTERNAL = "external",
158
161
  EXTENSION_API = "extensionApi",
159
162
  FLOATING_TB = "floatingToolbar",
@@ -228,7 +231,10 @@ export declare enum ACTION_SUBJECT {
228
231
  TOOLTIP = "tooltip",
229
232
  LOOM = "loom",
230
233
  MULTI_BODIED_EXTENSION = "multiBodiedExtension",
231
- BODIED_EXTENSION = "bodiedExtension"
234
+ BODIED_EXTENSION = "bodiedExtension",
235
+ DROP_TARGET = "dropTarget",
236
+ DRAG = "drag",
237
+ ELEMENT = "element"
232
238
  }
233
239
  export declare enum ACTION_SUBJECT_ID {
234
240
  ACTION = "action",
@@ -257,6 +263,8 @@ export declare enum ACTION_SUBJECT_ID {
257
263
  DECISION = "decision",
258
264
  DIVIDER = "divider",
259
265
  EDIT_LINK = "editLink",
266
+ ELEMENT_DRAG_HANDLE = "elementDragHandle",
267
+ ELEMENT_DROP_TARGET = "elementDropTarget",
260
268
  EMBEDS = "embeds",
261
269
  EMOJI = "emoji",
262
270
  EXPAND = "expand",
@@ -8,6 +8,7 @@ import type { ConfigPanelEventPayload } from './config-panel-events';
8
8
  import type { CutCopyEventPayload } from './cut-copy-events';
9
9
  import type { DateEventPayload } from './date-events';
10
10
  import type { ElementBrowserEventPayload } from './element-browser-events';
11
+ import type { ElementEventPayload } from './element-events';
11
12
  import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE } from './enums';
12
13
  import type { ExperimentalEventPayload } from './experimental-events';
13
14
  import type { ExtensionEventPayload } from './extension-events';
@@ -37,7 +38,7 @@ export type SimplifiedNode = {
37
38
  marks?: string[];
38
39
  content?: SimplifiedNode[];
39
40
  };
40
- export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload;
41
+ export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | ElementEventPayload;
41
42
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
42
43
  previousColor: string;
43
44
  newColor: string;
@@ -34,3 +34,4 @@ export { SELECTION_POSITION, SELECTION_TYPE } from './utils';
34
34
  export type { OperationalAEP } from './utils';
35
35
  export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData, } from './performance-report';
36
36
  export type { InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, } from './referentiality-events';
37
+ export type { ElementEventPayload } from './element-events';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
3
  import type { ExtensionAPI } from './extension-handler';
3
4
  import type { ExtensionIconModule } from './extension-manifest-common';
@@ -6,7 +7,14 @@ export type ToolbarButton = ExtensionModuleToolbarButtonLabelOrIcon & {
6
7
  key: string;
7
8
  action: ToolbarButtonAction;
8
9
  label: string;
9
- tooltip?: string;
10
+ ariaLabel?: string;
11
+ tooltip?: React.ReactNode | string;
12
+ /**
13
+ * Tooltip Style
14
+ * This uses the Custom component feature of the Tooltip component.
15
+ * How to use: https://atlassian.design/components/tooltip/examples#custom-component
16
+ */
17
+ tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
10
18
  icon?: () => ExtensionIconModule;
11
19
  display?: 'icon' | 'label' | 'icon-and-label';
12
20
  disabled?: boolean;
@@ -38,7 +46,14 @@ export type StandardNodeContext = {
38
46
  export type ExtensionToolbarButton = {
39
47
  key: string;
40
48
  label?: string;
41
- tooltip?: string;
49
+ ariaLabel?: string;
50
+ tooltip?: React.ReactNode | string;
51
+ /**
52
+ * Tooltip Style
53
+ * This uses the Custom component feature of the Tooltip component.
54
+ * How to use: https://atlassian.design/components/tooltip/examples#custom-component
55
+ */
56
+ tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
42
57
  icon?: () => ExtensionIconModule;
43
58
  action: ToolbarButtonAction;
44
59
  disabled?: boolean;
@@ -21,11 +21,12 @@ export interface Props {
21
21
  children?: React.ReactNode;
22
22
  className?: string;
23
23
  tooltipContent?: React.ReactNode;
24
+ tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
24
25
  testId?: string;
25
26
  hideTooltipOnClick?: boolean;
26
27
  tabIndex?: number | null | undefined;
27
28
  areaControls?: string;
28
29
  isRadioButton?: boolean;
29
30
  }
30
- declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, selected, disabled, href, target, appearance, children, className, tooltipContent, testId, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, }: Props) => JSX.Element;
31
+ declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, selected, disabled, href, target, appearance, children, className, tooltipContent, tooltipStyle, testId, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, }: Props) => JSX.Element;
31
32
  export default _default;
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import React, { PureComponent, type ReactElement } from 'react';
2
+ import { type ReactElement } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  export interface Props {
5
5
  value: string;
@@ -13,11 +13,5 @@ export interface Props {
13
13
  hexToPaletteColor?: (hexColor: string) => string | undefined;
14
14
  decorator?: ReactElement;
15
15
  }
16
- declare function FunctionalComponentColor(props: Props): jsx.JSX.Element;
17
- declare class ClassComponentColor extends PureComponent<Props> {
18
- render(): jsx.JSX.Element;
19
- onMouseDown: (e: React.MouseEvent<{}>) => void;
20
- onClick: (e: React.MouseEvent<{}>) => void;
21
- }
22
- declare const Color: typeof ClassComponentColor | typeof FunctionalComponentColor;
16
+ declare const Color: (props: Props) => jsx.JSX.Element;
23
17
  export default Color;
@@ -0,0 +1,10 @@
1
+ import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
2
+ import type { UIAEP } from './utils';
3
+ type ElementAttributes = {
4
+ nodeDepth: number;
5
+ nodeType: string;
6
+ };
7
+ type ElementDragAEP = UIAEP<ACTION.DRAGGED, ACTION_SUBJECT.ELEMENT, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
8
+ type DragCancelledAEP = UIAEP<ACTION.CANCELLED, ACTION_SUBJECT.DRAG, ACTION_SUBJECT_ID.ELEMENT_DRAG_HANDLE, ElementAttributes, null>;
9
+ export type ElementEventPayload = ElementDragAEP | DragCancelledAEP;
10
+ export {};
@@ -8,6 +8,7 @@ export declare enum ACTION {
8
8
  ACTIVATED = "activated",
9
9
  ADDED = "added",
10
10
  BROWSER_FREEZE = "browserFreeze",
11
+ CANCELLED = "cancelled",
11
12
  CAUGHT_DOM_ERROR = "caughtDomError",
12
13
  CHANGED_BACKGROUND_COLOR = "changedBackgroundColor",
13
14
  CHANGED_ICON = "changedIcon",
@@ -36,6 +37,7 @@ export declare enum ACTION {
36
37
  DISMISSED = "dismissed",
37
38
  DISPATCHED_INVALID_TRANSACTION = "dispatchedInvalidTransaction",
38
39
  DISPATCHED_VALID_TRANSACTION = "dispatchedValidTransaction",
40
+ DRAGGED = "dragged",
39
41
  EDITED = "edited",
40
42
  EDITOR_CRASHED = "unhandledErrorCaught",
41
43
  EDITOR_CRASHED_ADDITIONAL_INFORMATION = "unhandledErrorCaughtAdditionalInfov2",
@@ -154,6 +156,7 @@ export declare enum INPUT_METHOD {
154
156
  CONFIG_PANEL = "configPanel",
155
157
  CONTEXT_MENU = "contextMenu",
156
158
  DRAG_AND_DROP = "dragAndDrop",
159
+ DRAG = "drag",
157
160
  EXTERNAL = "external",
158
161
  EXTENSION_API = "extensionApi",
159
162
  FLOATING_TB = "floatingToolbar",
@@ -228,7 +231,10 @@ export declare enum ACTION_SUBJECT {
228
231
  TOOLTIP = "tooltip",
229
232
  LOOM = "loom",
230
233
  MULTI_BODIED_EXTENSION = "multiBodiedExtension",
231
- BODIED_EXTENSION = "bodiedExtension"
234
+ BODIED_EXTENSION = "bodiedExtension",
235
+ DROP_TARGET = "dropTarget",
236
+ DRAG = "drag",
237
+ ELEMENT = "element"
232
238
  }
233
239
  export declare enum ACTION_SUBJECT_ID {
234
240
  ACTION = "action",
@@ -257,6 +263,8 @@ export declare enum ACTION_SUBJECT_ID {
257
263
  DECISION = "decision",
258
264
  DIVIDER = "divider",
259
265
  EDIT_LINK = "editLink",
266
+ ELEMENT_DRAG_HANDLE = "elementDragHandle",
267
+ ELEMENT_DROP_TARGET = "elementDropTarget",
260
268
  EMBEDS = "embeds",
261
269
  EMOJI = "emoji",
262
270
  EXPAND = "expand",
@@ -8,6 +8,7 @@ import type { ConfigPanelEventPayload } from './config-panel-events';
8
8
  import type { CutCopyEventPayload } from './cut-copy-events';
9
9
  import type { DateEventPayload } from './date-events';
10
10
  import type { ElementBrowserEventPayload } from './element-browser-events';
11
+ import type { ElementEventPayload } from './element-events';
11
12
  import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE } from './enums';
12
13
  import type { ExperimentalEventPayload } from './experimental-events';
13
14
  import type { ExtensionEventPayload } from './extension-events';
@@ -37,7 +38,7 @@ export type SimplifiedNode = {
37
38
  marks?: string[];
38
39
  content?: SimplifiedNode[];
39
40
  };
40
- export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload;
41
+ export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | ElementEventPayload;
41
42
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
42
43
  previousColor: string;
43
44
  newColor: string;
@@ -34,3 +34,4 @@ export { SELECTION_POSITION, SELECTION_TYPE } from './utils';
34
34
  export type { OperationalAEP } from './utils';
35
35
  export type { PluginMethodReport, PluginsReport, NodeCount, PluginPerformanceReportData, } from './performance-report';
36
36
  export type { InitialiseFragmentMarksAEP, ConnectedNodesAEP, DisconnectedSourceAEP, DisconnectedTargetAEP, GotConnectionsAEP, UpdatedFragmentMarkNameAEP, UpdatedSourceAEP, UpdatedTargetAEP, } from './referentiality-events';
37
+ export type { ElementEventPayload } from './element-events';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ADFEntity } from '@atlaskit/adf-utils/types';
2
3
  import type { ExtensionAPI } from './extension-handler';
3
4
  import type { ExtensionIconModule } from './extension-manifest-common';
@@ -6,7 +7,14 @@ export type ToolbarButton = ExtensionModuleToolbarButtonLabelOrIcon & {
6
7
  key: string;
7
8
  action: ToolbarButtonAction;
8
9
  label: string;
9
- tooltip?: string;
10
+ ariaLabel?: string;
11
+ tooltip?: React.ReactNode | string;
12
+ /**
13
+ * Tooltip Style
14
+ * This uses the Custom component feature of the Tooltip component.
15
+ * How to use: https://atlassian.design/components/tooltip/examples#custom-component
16
+ */
17
+ tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
10
18
  icon?: () => ExtensionIconModule;
11
19
  display?: 'icon' | 'label' | 'icon-and-label';
12
20
  disabled?: boolean;
@@ -38,7 +46,14 @@ export type StandardNodeContext = {
38
46
  export type ExtensionToolbarButton = {
39
47
  key: string;
40
48
  label?: string;
41
- tooltip?: string;
49
+ ariaLabel?: string;
50
+ tooltip?: React.ReactNode | string;
51
+ /**
52
+ * Tooltip Style
53
+ * This uses the Custom component feature of the Tooltip component.
54
+ * How to use: https://atlassian.design/components/tooltip/examples#custom-component
55
+ */
56
+ tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
42
57
  icon?: () => ExtensionIconModule;
43
58
  action: ToolbarButtonAction;
44
59
  disabled?: boolean;
@@ -21,11 +21,12 @@ export interface Props {
21
21
  children?: React.ReactNode;
22
22
  className?: string;
23
23
  tooltipContent?: React.ReactNode;
24
+ tooltipStyle?: React.ForwardRefExoticComponent<any> | React.ComponentType<any>;
24
25
  testId?: string;
25
26
  hideTooltipOnClick?: boolean;
26
27
  tabIndex?: number | null | undefined;
27
28
  areaControls?: string;
28
29
  isRadioButton?: boolean;
29
30
  }
30
- declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, selected, disabled, href, target, appearance, children, className, tooltipContent, testId, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, }: Props) => JSX.Element;
31
+ declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, selected, disabled, href, target, appearance, children, className, tooltipContent, tooltipStyle, testId, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, }: Props) => JSX.Element;
31
32
  export default _default;
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import React, { PureComponent, type ReactElement } from 'react';
2
+ import { type ReactElement } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  export interface Props {
5
5
  value: string;
@@ -13,11 +13,5 @@ export interface Props {
13
13
  hexToPaletteColor?: (hexColor: string) => string | undefined;
14
14
  decorator?: ReactElement;
15
15
  }
16
- declare function FunctionalComponentColor(props: Props): jsx.JSX.Element;
17
- declare class ClassComponentColor extends PureComponent<Props> {
18
- render(): jsx.JSX.Element;
19
- onMouseDown: (e: React.MouseEvent<{}>) => void;
20
- onClick: (e: React.MouseEvent<{}>) => void;
21
- }
22
- declare const Color: typeof ClassComponentColor | typeof FunctionalComponentColor;
16
+ declare const Color: (props: Props) => jsx.JSX.Element;
23
17
  export default Color;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "82.4.0",
3
+ "version": "82.5.0",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"