@atlaskit/editor-common 110.20.1 → 110.21.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 (33) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/analytics/types/enums.js +2 -0
  3. package/dist/cjs/analytics/types/floating-toolbar-events.js +5 -0
  4. package/dist/cjs/element-browser/components/StatelessElementBrowser.js +1 -1
  5. package/dist/cjs/extensibility/Extension/Lozenge/EditToggle.js +43 -46
  6. package/dist/cjs/monitoring/error.js +1 -1
  7. package/dist/cjs/ui/DropList/index.js +1 -1
  8. package/dist/cjs/ui/HoverLinkOverlay/index.js +41 -44
  9. package/dist/cjs/ui-menu/DropdownMenu/index.js +1 -3
  10. package/dist/es2019/analytics/types/enums.js +2 -0
  11. package/dist/es2019/analytics/types/floating-toolbar-events.js +1 -0
  12. package/dist/es2019/element-browser/components/StatelessElementBrowser.js +1 -1
  13. package/dist/es2019/extensibility/Extension/Lozenge/EditToggle.js +35 -38
  14. package/dist/es2019/monitoring/error.js +1 -1
  15. package/dist/es2019/ui/DropList/index.js +1 -1
  16. package/dist/es2019/ui/HoverLinkOverlay/index.js +37 -40
  17. package/dist/es2019/ui-menu/DropdownMenu/index.js +1 -3
  18. package/dist/esm/analytics/types/enums.js +2 -0
  19. package/dist/esm/analytics/types/floating-toolbar-events.js +1 -0
  20. package/dist/esm/element-browser/components/StatelessElementBrowser.js +1 -1
  21. package/dist/esm/extensibility/Extension/Lozenge/EditToggle.js +43 -46
  22. package/dist/esm/monitoring/error.js +1 -1
  23. package/dist/esm/ui/DropList/index.js +1 -1
  24. package/dist/esm/ui/HoverLinkOverlay/index.js +41 -44
  25. package/dist/esm/ui-menu/DropdownMenu/index.js +1 -3
  26. package/dist/types/analytics/types/enums.d.ts +3 -1
  27. package/dist/types/analytics/types/events.d.ts +2 -1
  28. package/dist/types/analytics/types/floating-toolbar-events.d.ts +4 -0
  29. package/dist/types-ts4.5/analytics/types/enums.d.ts +3 -1
  30. package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
  31. package/dist/types-ts4.5/analytics/types/floating-toolbar-events.d.ts +4 -0
  32. package/package.json +5 -5
  33. package/afm-post-office/tsconfig.json +0 -195
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 110.21.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`29d0693bd5373`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/29d0693bd5373) -
8
+ EDITOR-2581 Fire event for suppressAllToolbars api being used
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 110.20.1
4
15
 
5
16
  ### Patch Changes
@@ -200,6 +200,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
200
200
  ACTION["SUGGESTION_DISMISSED"] = "suggestionDismissed";
201
201
  ACTION["SUGGESTION_VIEWED"] = "suggestionViewed";
202
202
  ACTION["TABLE_WIDTH_INFO"] = "tableWidthInformation";
203
+ ACTION["SUPPRESSED"] = "suppressed";
203
204
  return ACTION;
204
205
  }({});
205
206
  var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -407,6 +408,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
407
408
  ACTION_SUBJECT_ID["EXTENSION_BODIED"] = "bodiedExtension";
408
409
  ACTION_SUBJECT_ID["EXTENSION_INLINE"] = "inlineExtension";
409
410
  ACTION_SUBJECT_ID["FLOATING_TOOLBAR_OVERFLOW"] = "floatingToolbarOverflow";
411
+ ACTION_SUBJECT_ID["FLOATING_TOOLBAR"] = "floatingToolbar";
410
412
  ACTION_SUBJECT_ID["FORMAT_BACKGROUND_COLOR"] = "backgroundColor";
411
413
  ACTION_SUBJECT_ID["FORMAT_BLOCK_QUOTE"] = "blockQuote";
412
414
  ACTION_SUBJECT_ID["FORMAT_CLEAR"] = "clearFormatting";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -254,7 +254,7 @@ function StatelessElementBrowser(props) {
254
254
  var handleClick = function handleClick() {
255
255
  setCanFocusSearch(true);
256
256
  };
257
- return /* eslint-disable-next-line @atlassian/a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable*/(
257
+ return /* eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable*/(
258
258
  (0, _react2.jsx)("div", {
259
259
  css: wrapper,
260
260
  "data-testid": "element-browser",
@@ -93,50 +93,47 @@ var EditToggle = exports.EditToggle = function EditToggle(_ref) {
93
93
  handleClick();
94
94
  }
95
95
  }, [handleClick]);
96
- return (
97
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
98
- (0, _react2.jsx)("div", {
99
- "data-testid": "extension-edit-toggle-container"
100
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
101
- ,
102
- css: [buttonContainerStyles, (0, _expValEquals.expValEquals)('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? null : isNodeHovered && showButtonContainerStyle]
103
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
104
- ,
105
- style: customContainerStyles
106
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
107
- ,
108
- className: "extension-edit-toggle-container"
109
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
110
- ,
111
- onMouseOver: function onMouseOver() {
112
- return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true);
113
- }
114
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
115
- ,
116
- onMouseLeave: function onMouseLeave() {
117
- return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false);
118
- },
119
- tabIndex: -1
120
- }, (0, _react2.jsx)("button", {
121
- type: "button",
122
- "data-testid": "edit-toggle"
123
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
124
- ,
125
- css: buttonStyles
126
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
127
- ,
128
- className: "extension-edit-toggle",
129
- onClick: handleClick,
130
- onKeyDown: handleKeyDown,
131
- onFocus: function onFocus() {
132
- return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true);
133
- },
134
- onBlur: function onBlur() {
135
- return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false);
136
- }
137
- }, (0, _react2.jsx)(_primitives.Flex, {
138
- as: "span",
139
- xcss: iconStyles
140
- }, icon), text))
141
- );
96
+ return (0, _react2.jsx)("div", {
97
+ "data-testid": "extension-edit-toggle-container"
98
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
99
+ ,
100
+ css: [buttonContainerStyles, (0, _expValEquals.expValEquals)('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? null : isNodeHovered && showButtonContainerStyle]
101
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
102
+ ,
103
+ style: customContainerStyles
104
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
105
+ ,
106
+ className: "extension-edit-toggle-container"
107
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
108
+ ,
109
+ onMouseOver: function onMouseOver() {
110
+ return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true);
111
+ }
112
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
113
+ ,
114
+ onMouseLeave: function onMouseLeave() {
115
+ return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false);
116
+ },
117
+ tabIndex: -1
118
+ }, (0, _react2.jsx)("button", {
119
+ type: "button",
120
+ "data-testid": "edit-toggle"
121
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
122
+ ,
123
+ css: buttonStyles
124
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
125
+ ,
126
+ className: "extension-edit-toggle",
127
+ onClick: handleClick,
128
+ onKeyDown: handleKeyDown,
129
+ onFocus: function onFocus() {
130
+ return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true);
131
+ },
132
+ onBlur: function onBlur() {
133
+ return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false);
134
+ }
135
+ }, (0, _react2.jsx)(_primitives.Flex, {
136
+ as: "span",
137
+ xcss: iconStyles
138
+ }, icon), text));
142
139
  };
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "110.20.0";
19
+ var packageVersion = "110.20.1";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "110.20.0";
27
+ var packageVersion = "110.20.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -225,50 +225,47 @@ var HoverLinkOverlayOriginal = function HoverLinkOverlayOriginal(_ref) {
225
225
  label: ""
226
226
  });
227
227
  }
228
- return (
229
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
230
- (0, _react2.jsx)("span", {
231
- ref: containerRef,
232
- css: containerStylesOld,
233
- onDoubleClick: handleDoubleClick
234
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
235
- ,
236
- onMouseEnter: function onMouseEnter() {
237
- return handleOverlayChange(true);
238
- }
239
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
240
- ,
241
- onMouseLeave: function onMouseLeave() {
242
- return handleOverlayChange(false);
243
- }
244
- }, children, (0, _react2.jsx)("span", {
245
- css: hiddenTextStyle,
246
- "aria-hidden": "true"
247
- }, (0, _react2.jsx)(_primitives.Text, {
248
- ref: hiddenTextRef,
249
- size: "small",
250
- maxLines: 1
251
- }, label)), isHovered && (0, _react2.jsx)(_primitives.Anchor, {
252
- ref: hoverLinkButtonRef,
253
- xcss: [linkStylesCommon, (0, _expValEquals.expValEquals)('platform_editor_hoverlink_ui_fixes_exp', 'cohort', 'css_changes_only') ? linkStylesHeightFix : linkStylesOld],
254
- href: url,
255
- target: "_blank",
256
- style: {
257
- paddingBlock: compactPadding ? '1px' : (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
258
- },
259
- onClick: handleClick,
260
- testId: "inline-card-hoverlink-overlay"
261
- }, (0, _react2.jsx)(_primitives.Box, {
262
- xcss: iconWrapperStylesOld,
263
- "data-inlinecard-button-overlay": "icon-wrapper-line-height",
264
- testId: "inline-card-hoverlink-overlay-icon"
265
- }, icon), showLabel && (0, _react2.jsx)(_primitives.Text, {
266
- size: "small",
267
- color: "color.text.subtle",
268
- maxLines: 1,
269
- testId: "inline-card-hoverlink-overlay-label"
270
- }, label)))
271
- );
228
+ return (0, _react2.jsx)("span", {
229
+ ref: containerRef,
230
+ css: containerStylesOld,
231
+ onDoubleClick: handleDoubleClick
232
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
233
+ ,
234
+ onMouseEnter: function onMouseEnter() {
235
+ return handleOverlayChange(true);
236
+ }
237
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
238
+ ,
239
+ onMouseLeave: function onMouseLeave() {
240
+ return handleOverlayChange(false);
241
+ }
242
+ }, children, (0, _react2.jsx)("span", {
243
+ css: hiddenTextStyle,
244
+ "aria-hidden": "true"
245
+ }, (0, _react2.jsx)(_primitives.Text, {
246
+ ref: hiddenTextRef,
247
+ size: "small",
248
+ maxLines: 1
249
+ }, label)), isHovered && (0, _react2.jsx)(_primitives.Anchor, {
250
+ ref: hoverLinkButtonRef,
251
+ xcss: [linkStylesCommon, (0, _expValEquals.expValEquals)('platform_editor_hoverlink_ui_fixes_exp', 'cohort', 'css_changes_only') ? linkStylesHeightFix : linkStylesOld],
252
+ href: url,
253
+ target: "_blank",
254
+ style: {
255
+ paddingBlock: compactPadding ? '1px' : (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
256
+ },
257
+ onClick: handleClick,
258
+ testId: "inline-card-hoverlink-overlay"
259
+ }, (0, _react2.jsx)(_primitives.Box, {
260
+ xcss: iconWrapperStylesOld,
261
+ "data-inlinecard-button-overlay": "icon-wrapper-line-height",
262
+ testId: "inline-card-hoverlink-overlay-icon"
263
+ }, icon), showLabel && (0, _react2.jsx)(_primitives.Text, {
264
+ size: "small",
265
+ color: "color.text.subtle",
266
+ maxLines: 1,
267
+ testId: "inline-card-hoverlink-overlay-label"
268
+ }, label)));
272
269
  };
273
270
  var HoverLinkOverlayNew = function HoverLinkOverlayNew(_ref2) {
274
271
  var children = _ref2.children,
@@ -322,9 +322,7 @@ function DropdownMenuItem(_ref) {
322
322
  // From time to time we don't want to have any tabIndex on item wrapper
323
323
  // especially when we pass any interactive element as a item.content
324
324
  var tabIndex = item.wrapperTabIndex === null ? undefined : item.wrapperTabIndex || -1;
325
- var dropListItem =
326
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
327
- (0, _react2.jsx)("div", {
325
+ var dropListItem = (0, _react2.jsx)("div", {
328
326
  css: function css() {
329
327
  return buttonStyles(item.isActive, submenuActive);
330
328
  },
@@ -194,6 +194,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
194
194
  ACTION["SUGGESTION_DISMISSED"] = "suggestionDismissed";
195
195
  ACTION["SUGGESTION_VIEWED"] = "suggestionViewed";
196
196
  ACTION["TABLE_WIDTH_INFO"] = "tableWidthInformation";
197
+ ACTION["SUPPRESSED"] = "suppressed";
197
198
  return ACTION;
198
199
  }({});
199
200
  export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -401,6 +402,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
401
402
  ACTION_SUBJECT_ID["EXTENSION_BODIED"] = "bodiedExtension";
402
403
  ACTION_SUBJECT_ID["EXTENSION_INLINE"] = "inlineExtension";
403
404
  ACTION_SUBJECT_ID["FLOATING_TOOLBAR_OVERFLOW"] = "floatingToolbarOverflow";
405
+ ACTION_SUBJECT_ID["FLOATING_TOOLBAR"] = "floatingToolbar";
404
406
  ACTION_SUBJECT_ID["FORMAT_BACKGROUND_COLOR"] = "backgroundColor";
405
407
  ACTION_SUBJECT_ID["FORMAT_BLOCK_QUOTE"] = "blockQuote";
406
408
  ACTION_SUBJECT_ID["FORMAT_CLEAR"] = "clearFormatting";
@@ -240,7 +240,7 @@ function StatelessElementBrowser(props) {
240
240
  const handleClick = () => {
241
241
  setCanFocusSearch(true);
242
242
  };
243
- return /* eslint-disable-next-line @atlassian/a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable*/(
243
+ return /* eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable*/(
244
244
  jsx("div", {
245
245
  css: wrapper,
246
246
  "data-testid": "element-browser",
@@ -86,42 +86,39 @@ export const EditToggle = ({
86
86
  handleClick();
87
87
  }
88
88
  }, [handleClick]);
89
- return (
90
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
91
- jsx("div", {
92
- "data-testid": "extension-edit-toggle-container"
93
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
94
- ,
95
- css: [buttonContainerStyles, expValEquals('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? null : isNodeHovered && showButtonContainerStyle]
96
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
97
- ,
98
- style: customContainerStyles
99
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
100
- ,
101
- className: "extension-edit-toggle-container"
102
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
103
- ,
104
- onMouseOver: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true)
105
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
106
- ,
107
- onMouseLeave: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false),
108
- tabIndex: -1
109
- }, jsx("button", {
110
- type: "button",
111
- "data-testid": "edit-toggle"
112
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
113
- ,
114
- css: buttonStyles
115
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
116
- ,
117
- className: "extension-edit-toggle",
118
- onClick: handleClick,
119
- onKeyDown: handleKeyDown,
120
- onFocus: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true),
121
- onBlur: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false)
122
- }, jsx(Flex, {
123
- as: "span",
124
- xcss: iconStyles
125
- }, icon), text))
126
- );
89
+ return jsx("div", {
90
+ "data-testid": "extension-edit-toggle-container"
91
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
92
+ ,
93
+ css: [buttonContainerStyles, expValEquals('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? null : isNodeHovered && showButtonContainerStyle]
94
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
95
+ ,
96
+ style: customContainerStyles
97
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
98
+ ,
99
+ className: "extension-edit-toggle-container"
100
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
101
+ ,
102
+ onMouseOver: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true)
103
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
104
+ ,
105
+ onMouseLeave: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false),
106
+ tabIndex: -1
107
+ }, jsx("button", {
108
+ type: "button",
109
+ "data-testid": "edit-toggle"
110
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
111
+ ,
112
+ css: buttonStyles
113
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
114
+ ,
115
+ className: "extension-edit-toggle",
116
+ onClick: handleClick,
117
+ onKeyDown: handleKeyDown,
118
+ onFocus: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true),
119
+ onBlur: () => setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false)
120
+ }, jsx(Flex, {
121
+ as: "span",
122
+ xcss: iconStyles
123
+ }, icon), text));
127
124
  };
@@ -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 = "110.20.0";
4
+ const packageVersion = "110.20.1";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "110.20.0";
17
+ const packageVersion = "110.20.1";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -205,46 +205,43 @@ const HoverLinkOverlayOriginal = ({
205
205
  label: ""
206
206
  });
207
207
  }
208
- return (
209
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
210
- jsx("span", {
211
- ref: containerRef,
212
- css: containerStylesOld,
213
- onDoubleClick: handleDoubleClick
214
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
215
- ,
216
- onMouseEnter: () => handleOverlayChange(true)
217
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
218
- ,
219
- onMouseLeave: () => handleOverlayChange(false)
220
- }, children, jsx("span", {
221
- css: hiddenTextStyle,
222
- "aria-hidden": "true"
223
- }, jsx(Text, {
224
- ref: hiddenTextRef,
225
- size: "small",
226
- maxLines: 1
227
- }, label)), isHovered && jsx(Anchor, {
228
- ref: hoverLinkButtonRef,
229
- xcss: [linkStylesCommon, expValEquals('platform_editor_hoverlink_ui_fixes_exp', 'cohort', 'css_changes_only') ? linkStylesHeightFix : linkStylesOld],
230
- href: url,
231
- target: "_blank",
232
- style: {
233
- paddingBlock: compactPadding ? '1px' : expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
234
- },
235
- onClick: handleClick,
236
- testId: "inline-card-hoverlink-overlay"
237
- }, jsx(Box, {
238
- xcss: iconWrapperStylesOld,
239
- "data-inlinecard-button-overlay": "icon-wrapper-line-height",
240
- testId: "inline-card-hoverlink-overlay-icon"
241
- }, icon), showLabel && jsx(Text, {
242
- size: "small",
243
- color: "color.text.subtle",
244
- maxLines: 1,
245
- testId: "inline-card-hoverlink-overlay-label"
246
- }, label)))
247
- );
208
+ return jsx("span", {
209
+ ref: containerRef,
210
+ css: containerStylesOld,
211
+ onDoubleClick: handleDoubleClick
212
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
213
+ ,
214
+ onMouseEnter: () => handleOverlayChange(true)
215
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
216
+ ,
217
+ onMouseLeave: () => handleOverlayChange(false)
218
+ }, children, jsx("span", {
219
+ css: hiddenTextStyle,
220
+ "aria-hidden": "true"
221
+ }, jsx(Text, {
222
+ ref: hiddenTextRef,
223
+ size: "small",
224
+ maxLines: 1
225
+ }, label)), isHovered && jsx(Anchor, {
226
+ ref: hoverLinkButtonRef,
227
+ xcss: [linkStylesCommon, expValEquals('platform_editor_hoverlink_ui_fixes_exp', 'cohort', 'css_changes_only') ? linkStylesHeightFix : linkStylesOld],
228
+ href: url,
229
+ target: "_blank",
230
+ style: {
231
+ paddingBlock: compactPadding ? '1px' : expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
232
+ },
233
+ onClick: handleClick,
234
+ testId: "inline-card-hoverlink-overlay"
235
+ }, jsx(Box, {
236
+ xcss: iconWrapperStylesOld,
237
+ "data-inlinecard-button-overlay": "icon-wrapper-line-height",
238
+ testId: "inline-card-hoverlink-overlay-icon"
239
+ }, icon), showLabel && jsx(Text, {
240
+ size: "small",
241
+ color: "color.text.subtle",
242
+ maxLines: 1,
243
+ testId: "inline-card-hoverlink-overlay-label"
244
+ }, label)));
248
245
  };
249
246
  const HoverLinkOverlayNew = ({
250
247
  children,
@@ -349,9 +349,7 @@ export function DropdownMenuItem({
349
349
  // From time to time we don't want to have any tabIndex on item wrapper
350
350
  // especially when we pass any interactive element as a item.content
351
351
  const tabIndex = item.wrapperTabIndex === null ? undefined : item.wrapperTabIndex || -1;
352
- const dropListItem =
353
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
354
- jsx("div", {
352
+ const dropListItem = jsx("div", {
355
353
  css: () => buttonStyles(item.isActive, submenuActive),
356
354
  role: expValEquals('platform_editor_august_a11y', 'isEnabled', true) ? shouldUseDefaultRole ? undefined : 'menuitem' : undefined,
357
355
  tabIndex: tabIndex,
@@ -194,6 +194,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
194
194
  ACTION["SUGGESTION_DISMISSED"] = "suggestionDismissed";
195
195
  ACTION["SUGGESTION_VIEWED"] = "suggestionViewed";
196
196
  ACTION["TABLE_WIDTH_INFO"] = "tableWidthInformation";
197
+ ACTION["SUPPRESSED"] = "suppressed";
197
198
  return ACTION;
198
199
  }({});
199
200
  export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
@@ -401,6 +402,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
401
402
  ACTION_SUBJECT_ID["EXTENSION_BODIED"] = "bodiedExtension";
402
403
  ACTION_SUBJECT_ID["EXTENSION_INLINE"] = "inlineExtension";
403
404
  ACTION_SUBJECT_ID["FLOATING_TOOLBAR_OVERFLOW"] = "floatingToolbarOverflow";
405
+ ACTION_SUBJECT_ID["FLOATING_TOOLBAR"] = "floatingToolbar";
404
406
  ACTION_SUBJECT_ID["FORMAT_BACKGROUND_COLOR"] = "backgroundColor";
405
407
  ACTION_SUBJECT_ID["FORMAT_BLOCK_QUOTE"] = "blockQuote";
406
408
  ACTION_SUBJECT_ID["FORMAT_CLEAR"] = "clearFormatting";
@@ -244,7 +244,7 @@ function StatelessElementBrowser(props) {
244
244
  var handleClick = function handleClick() {
245
245
  setCanFocusSearch(true);
246
246
  };
247
- return /* eslint-disable-next-line @atlassian/a11y/no-static-element-interactions, @atlassian/a11y/interactive-element-not-keyboard-focusable*/(
247
+ return /* eslint-disable-next-line @atlassian/a11y/interactive-element-not-keyboard-focusable*/(
248
248
  jsx("div", {
249
249
  css: wrapper,
250
250
  "data-testid": "element-browser",
@@ -85,50 +85,47 @@ export var EditToggle = function EditToggle(_ref) {
85
85
  handleClick();
86
86
  }
87
87
  }, [handleClick]);
88
- return (
89
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
90
- jsx("div", {
91
- "data-testid": "extension-edit-toggle-container"
92
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
93
- ,
94
- css: [buttonContainerStyles, expValEquals('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? null : isNodeHovered && showButtonContainerStyle]
95
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
96
- ,
97
- style: customContainerStyles
98
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
99
- ,
100
- className: "extension-edit-toggle-container"
101
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
102
- ,
103
- onMouseOver: function onMouseOver() {
104
- return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true);
105
- }
106
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
107
- ,
108
- onMouseLeave: function onMouseLeave() {
109
- return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false);
110
- },
111
- tabIndex: -1
112
- }, jsx("button", {
113
- type: "button",
114
- "data-testid": "edit-toggle"
115
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
116
- ,
117
- css: buttonStyles
118
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
119
- ,
120
- className: "extension-edit-toggle",
121
- onClick: handleClick,
122
- onKeyDown: handleKeyDown,
123
- onFocus: function onFocus() {
124
- return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true);
125
- },
126
- onBlur: function onBlur() {
127
- return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false);
128
- }
129
- }, jsx(Flex, {
130
- as: "span",
131
- xcss: iconStyles
132
- }, icon), text))
133
- );
88
+ return jsx("div", {
89
+ "data-testid": "extension-edit-toggle-container"
90
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
91
+ ,
92
+ css: [buttonContainerStyles, expValEquals('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true) ? null : isNodeHovered && showButtonContainerStyle]
93
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
94
+ ,
95
+ style: customContainerStyles
96
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
97
+ ,
98
+ className: "extension-edit-toggle-container"
99
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
100
+ ,
101
+ onMouseOver: function onMouseOver() {
102
+ return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true);
103
+ }
104
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
105
+ ,
106
+ onMouseLeave: function onMouseLeave() {
107
+ return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false);
108
+ },
109
+ tabIndex: -1
110
+ }, jsx("button", {
111
+ type: "button",
112
+ "data-testid": "edit-toggle"
113
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
114
+ ,
115
+ css: buttonStyles
116
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
117
+ ,
118
+ className: "extension-edit-toggle",
119
+ onClick: handleClick,
120
+ onKeyDown: handleKeyDown,
121
+ onFocus: function onFocus() {
122
+ return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(true);
123
+ },
124
+ onBlur: function onBlur() {
125
+ return setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false);
126
+ }
127
+ }, jsx(Flex, {
128
+ as: "span",
129
+ xcss: iconStyles
130
+ }, icon), text));
134
131
  };
@@ -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 = "110.20.0";
10
+ var packageVersion = "110.20.1";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // 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 = "110.20.0";
24
+ var packageVersion = "110.20.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -211,50 +211,47 @@ var HoverLinkOverlayOriginal = function HoverLinkOverlayOriginal(_ref) {
211
211
  label: ""
212
212
  });
213
213
  }
214
- return (
215
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
216
- jsx("span", {
217
- ref: containerRef,
218
- css: containerStylesOld,
219
- onDoubleClick: handleDoubleClick
220
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
221
- ,
222
- onMouseEnter: function onMouseEnter() {
223
- return handleOverlayChange(true);
224
- }
225
- // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
226
- ,
227
- onMouseLeave: function onMouseLeave() {
228
- return handleOverlayChange(false);
229
- }
230
- }, children, jsx("span", {
231
- css: hiddenTextStyle,
232
- "aria-hidden": "true"
233
- }, jsx(Text, {
234
- ref: hiddenTextRef,
235
- size: "small",
236
- maxLines: 1
237
- }, label)), isHovered && jsx(Anchor, {
238
- ref: hoverLinkButtonRef,
239
- xcss: [linkStylesCommon, expValEquals('platform_editor_hoverlink_ui_fixes_exp', 'cohort', 'css_changes_only') ? linkStylesHeightFix : linkStylesOld],
240
- href: url,
241
- target: "_blank",
242
- style: {
243
- paddingBlock: compactPadding ? '1px' : expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
244
- },
245
- onClick: handleClick,
246
- testId: "inline-card-hoverlink-overlay"
247
- }, jsx(Box, {
248
- xcss: iconWrapperStylesOld,
249
- "data-inlinecard-button-overlay": "icon-wrapper-line-height",
250
- testId: "inline-card-hoverlink-overlay-icon"
251
- }, icon), showLabel && jsx(Text, {
252
- size: "small",
253
- color: "color.text.subtle",
254
- maxLines: 1,
255
- testId: "inline-card-hoverlink-overlay-label"
256
- }, label)))
257
- );
214
+ return jsx("span", {
215
+ ref: containerRef,
216
+ css: containerStylesOld,
217
+ onDoubleClick: handleDoubleClick
218
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
219
+ ,
220
+ onMouseEnter: function onMouseEnter() {
221
+ return handleOverlayChange(true);
222
+ }
223
+ // eslint-disable-next-line @atlassian/a11y/mouse-events-have-key-events
224
+ ,
225
+ onMouseLeave: function onMouseLeave() {
226
+ return handleOverlayChange(false);
227
+ }
228
+ }, children, jsx("span", {
229
+ css: hiddenTextStyle,
230
+ "aria-hidden": "true"
231
+ }, jsx(Text, {
232
+ ref: hiddenTextRef,
233
+ size: "small",
234
+ maxLines: 1
235
+ }, label)), isHovered && jsx(Anchor, {
236
+ ref: hoverLinkButtonRef,
237
+ xcss: [linkStylesCommon, expValEquals('platform_editor_hoverlink_ui_fixes_exp', 'cohort', 'css_changes_only') ? linkStylesHeightFix : linkStylesOld],
238
+ href: url,
239
+ target: "_blank",
240
+ style: {
241
+ paddingBlock: compactPadding ? '1px' : expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
242
+ },
243
+ onClick: handleClick,
244
+ testId: "inline-card-hoverlink-overlay"
245
+ }, jsx(Box, {
246
+ xcss: iconWrapperStylesOld,
247
+ "data-inlinecard-button-overlay": "icon-wrapper-line-height",
248
+ testId: "inline-card-hoverlink-overlay-icon"
249
+ }, icon), showLabel && jsx(Text, {
250
+ size: "small",
251
+ color: "color.text.subtle",
252
+ maxLines: 1,
253
+ testId: "inline-card-hoverlink-overlay-label"
254
+ }, label)));
258
255
  };
259
256
  var HoverLinkOverlayNew = function HoverLinkOverlayNew(_ref2) {
260
257
  var children = _ref2.children,
@@ -315,9 +315,7 @@ export function DropdownMenuItem(_ref) {
315
315
  // From time to time we don't want to have any tabIndex on item wrapper
316
316
  // especially when we pass any interactive element as a item.content
317
317
  var tabIndex = item.wrapperTabIndex === null ? undefined : item.wrapperTabIndex || -1;
318
- var dropListItem =
319
- // eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
320
- jsx("div", {
318
+ var dropListItem = jsx("div", {
321
319
  css: function css() {
322
320
  return buttonStyles(item.isActive, submenuActive);
323
321
  },
@@ -192,7 +192,8 @@ export declare enum ACTION {
192
192
  SUGGESTION_INSERTED = "suggestionInserted",
193
193
  SUGGESTION_DISMISSED = "suggestionDismissed",
194
194
  SUGGESTION_VIEWED = "suggestionViewed",
195
- TABLE_WIDTH_INFO = "tableWidthInformation"
195
+ TABLE_WIDTH_INFO = "tableWidthInformation",
196
+ SUPPRESSED = "suppressed"
196
197
  }
197
198
  export declare enum INPUT_METHOD {
198
199
  ASCII = "ascii",
@@ -393,6 +394,7 @@ export declare enum ACTION_SUBJECT_ID {
393
394
  EXTENSION_BODIED = "bodiedExtension",
394
395
  EXTENSION_INLINE = "inlineExtension",
395
396
  FLOATING_TOOLBAR_OVERFLOW = "floatingToolbarOverflow",
397
+ FLOATING_TOOLBAR = "floatingToolbar",
396
398
  FORMAT_BACKGROUND_COLOR = "backgroundColor",
397
399
  FORMAT_BLOCK_QUOTE = "blockQuote",
398
400
  FORMAT_CLEAR = "clearFormatting",
@@ -26,6 +26,7 @@ import type { EngagementPlatformEventPayload } from './engagement-platform-event
26
26
  import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE, INPUT_METHOD } from './enums';
27
27
  import type { ExtensionEventPayload } from './extension-events';
28
28
  import type { FindReplaceEventPayload } from './find-replace-events';
29
+ import type { FloatingToolbarEventPayload } from './floating-toolbar-events';
29
30
  import type { FloatingToolbarOverflowEventPayload } from './floating-toolbar-overflow-events';
30
31
  import type { FormatEventPayload } from './format-events';
31
32
  import type { GeneralEventPayload } from './general-events';
@@ -64,7 +65,7 @@ export type SimplifiedNode = {
64
65
  pos: number;
65
66
  type: string;
66
67
  };
67
- export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | PreviewItemClickedAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload;
68
+ export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | PreviewItemClickedAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
68
69
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
69
70
  newColor: string;
70
71
  previousColor: string;
@@ -0,0 +1,4 @@
1
+ import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
2
+ import type { TrackAEP } from './utils';
3
+ export type FloatingToolbarSuppressedAEP = TrackAEP<ACTION.SUPPRESSED, ACTION_SUBJECT.FLOATING_TOOLBAR_PLUGIN, ACTION_SUBJECT_ID.FLOATING_TOOLBAR, undefined, undefined>;
4
+ export type FloatingToolbarEventPayload = FloatingToolbarSuppressedAEP;
@@ -192,7 +192,8 @@ export declare enum ACTION {
192
192
  SUGGESTION_INSERTED = "suggestionInserted",
193
193
  SUGGESTION_DISMISSED = "suggestionDismissed",
194
194
  SUGGESTION_VIEWED = "suggestionViewed",
195
- TABLE_WIDTH_INFO = "tableWidthInformation"
195
+ TABLE_WIDTH_INFO = "tableWidthInformation",
196
+ SUPPRESSED = "suppressed"
196
197
  }
197
198
  export declare enum INPUT_METHOD {
198
199
  ASCII = "ascii",
@@ -393,6 +394,7 @@ export declare enum ACTION_SUBJECT_ID {
393
394
  EXTENSION_BODIED = "bodiedExtension",
394
395
  EXTENSION_INLINE = "inlineExtension",
395
396
  FLOATING_TOOLBAR_OVERFLOW = "floatingToolbarOverflow",
397
+ FLOATING_TOOLBAR = "floatingToolbar",
396
398
  FORMAT_BACKGROUND_COLOR = "backgroundColor",
397
399
  FORMAT_BLOCK_QUOTE = "blockQuote",
398
400
  FORMAT_CLEAR = "clearFormatting",
@@ -26,6 +26,7 @@ import type { EngagementPlatformEventPayload } from './engagement-platform-event
26
26
  import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, CONTENT_COMPONENT, FLOATING_CONTROLS_TITLE, INPUT_METHOD } from './enums';
27
27
  import type { ExtensionEventPayload } from './extension-events';
28
28
  import type { FindReplaceEventPayload } from './find-replace-events';
29
+ import type { FloatingToolbarEventPayload } from './floating-toolbar-events';
29
30
  import type { FloatingToolbarOverflowEventPayload } from './floating-toolbar-overflow-events';
30
31
  import type { FormatEventPayload } from './format-events';
31
32
  import type { GeneralEventPayload } from './general-events';
@@ -64,7 +65,7 @@ export type SimplifiedNode = {
64
65
  pos: number;
65
66
  type: string;
66
67
  };
67
- export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | PreviewItemClickedAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload;
68
+ export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | TextColorEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | PreviewItemClickedAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIStreamingEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | BlockMenuEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload | SelectionToolbarEventPayload | AlignmentEventPayload | UndoRedoAEP | OfflineEditingEventPayload | NcsSessionStepEventAEP | FloatingToolbarOverflowEventPayload | SyncBlockEventPayload | FloatingToolbarEventPayload;
68
69
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
69
70
  newColor: string;
70
71
  previousColor: string;
@@ -0,0 +1,4 @@
1
+ import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
2
+ import type { TrackAEP } from './utils';
3
+ export type FloatingToolbarSuppressedAEP = TrackAEP<ACTION.SUPPRESSED, ACTION_SUBJECT.FLOATING_TOOLBAR_PLUGIN, ACTION_SUBJECT_ID.FLOATING_TOOLBAR, undefined, undefined>;
4
+ export type FloatingToolbarEventPayload = FloatingToolbarSuppressedAEP;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "110.20.1",
3
+ "version": "110.21.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/"
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/icon": "^28.5.0",
55
55
  "@atlaskit/icon-object": "^7.3.0",
56
56
  "@atlaskit/link": "^3.2.0",
57
- "@atlaskit/link-datasource": "^4.27.0",
57
+ "@atlaskit/link-datasource": "^4.28.0",
58
58
  "@atlaskit/link-picker": "^3.16.0",
59
59
  "@atlaskit/media-card": "^79.6.0",
60
60
  "@atlaskit/media-client": "^35.5.0",
@@ -74,7 +74,7 @@
74
74
  "@atlaskit/profilecard": "^24.20.0",
75
75
  "@atlaskit/prosemirror-history": "^0.2.0",
76
76
  "@atlaskit/react-ufo": "^4.14.0",
77
- "@atlaskit/section-message": "^8.8.0",
77
+ "@atlaskit/section-message": "^8.9.0",
78
78
  "@atlaskit/smart-card": "^43.5.0",
79
79
  "@atlaskit/smart-user-picker": "^8.4.0",
80
80
  "@atlaskit/spinner": "^19.0.0",
@@ -82,8 +82,8 @@
82
82
  "@atlaskit/task-decision": "^19.2.0",
83
83
  "@atlaskit/textfield": "^8.0.0",
84
84
  "@atlaskit/theme": "^21.0.0",
85
- "@atlaskit/tmp-editor-statsig": "^13.23.0",
86
- "@atlaskit/tokens": "^7.0.0",
85
+ "@atlaskit/tmp-editor-statsig": "^13.26.0",
86
+ "@atlaskit/tokens": "^7.1.0",
87
87
  "@atlaskit/tooltip": "^20.7.0",
88
88
  "@atlaskit/ufo": "^0.4.0",
89
89
  "@atlaskit/width-detector": "^5.0.0",
@@ -1,195 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.post-office.json",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "target": "es5",
6
- "outDir": "../../../../../post-office/tsDist/@atlaskit__editor-common/app",
7
- "rootDir": "../",
8
- "composite": true
9
- },
10
- "include": [
11
- "../src/**/*.ts",
12
- "../src/**/*.tsx"
13
- ],
14
- "exclude": [
15
- "../src/**/__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*",
18
- "../src/**/examples.*",
19
- "../src/**/examples/*",
20
- "../src/**/examples/**/*",
21
- "../src/**/*.stories.*",
22
- "../src/**/stories/*",
23
- "../src/**/stories/**/*"
24
- ],
25
- "references": [
26
- {
27
- "path": "../../activity-provider/afm-post-office/tsconfig.json"
28
- },
29
- {
30
- "path": "../../adf-utils/afm-post-office/tsconfig.json"
31
- },
32
- {
33
- "path": "../../../analytics/analytics-listeners/afm-post-office/tsconfig.json"
34
- },
35
- {
36
- "path": "../../../analytics/analytics-namespaced-context/afm-post-office/tsconfig.json"
37
- },
38
- {
39
- "path": "../../../analytics/analytics-next/afm-post-office/tsconfig.json"
40
- },
41
- {
42
- "path": "../../../uip/atlassian-context/afm-post-office/tsconfig.json"
43
- },
44
- {
45
- "path": "../../../design-system/button/afm-post-office/tsconfig.json"
46
- },
47
- {
48
- "path": "../../../design-system/code/afm-post-office/tsconfig.json"
49
- },
50
- {
51
- "path": "../../../monorepo-tooling/codemod-utils/afm-post-office/tsconfig.json"
52
- },
53
- {
54
- "path": "../../../design-system/css/afm-post-office/tsconfig.json"
55
- },
56
- {
57
- "path": "../../custom-steps/afm-post-office/tsconfig.json"
58
- },
59
- {
60
- "path": "../../../design-system/dropdown-menu/afm-post-office/tsconfig.json"
61
- },
62
- {
63
- "path": "../../editor-json-transformer/afm-post-office/tsconfig.json"
64
- },
65
- {
66
- "path": "../../editor-palette/afm-post-office/tsconfig.json"
67
- },
68
- {
69
- "path": "../../editor-shared-styles/afm-post-office/tsconfig.json"
70
- },
71
- {
72
- "path": "../../editor-tables/afm-post-office/tsconfig.json"
73
- },
74
- {
75
- "path": "../../editor-toolbar/afm-post-office/tsconfig.json"
76
- },
77
- {
78
- "path": "../../editor-toolbar-model/afm-post-office/tsconfig.json"
79
- },
80
- {
81
- "path": "../../../elements/emoji/afm-post-office/tsconfig.json"
82
- },
83
- {
84
- "path": "../../../design-system/icon/afm-post-office/tsconfig.json"
85
- },
86
- {
87
- "path": "../../../design-system/icon-object/afm-post-office/tsconfig.json"
88
- },
89
- {
90
- "path": "../../../design-system/link/afm-post-office/tsconfig.json"
91
- },
92
- {
93
- "path": "../../../linking-platform/link-datasource/afm-post-office/tsconfig.json"
94
- },
95
- {
96
- "path": "../../../linking-platform/link-picker/afm-post-office/tsconfig.json"
97
- },
98
- {
99
- "path": "../../../media/media-card/afm-post-office/tsconfig.json"
100
- },
101
- {
102
- "path": "../../../media/media-client/afm-post-office/tsconfig.json"
103
- },
104
- {
105
- "path": "../../../media/media-client-react/afm-post-office/tsconfig.json"
106
- },
107
- {
108
- "path": "../../../media/media-common/afm-post-office/tsconfig.json"
109
- },
110
- {
111
- "path": "../../../media/media-file-preview/afm-post-office/tsconfig.json"
112
- },
113
- {
114
- "path": "../../../media/media-picker/afm-post-office/tsconfig.json"
115
- },
116
- {
117
- "path": "../../../media/media-ui/afm-post-office/tsconfig.json"
118
- },
119
- {
120
- "path": "../../../media/media-viewer/afm-post-office/tsconfig.json"
121
- },
122
- {
123
- "path": "../../../elements/mention/afm-post-office/tsconfig.json"
124
- },
125
- {
126
- "path": "../../../design-system/menu/afm-post-office/tsconfig.json"
127
- },
128
- {
129
- "path": "../../../design-system/onboarding/afm-post-office/tsconfig.json"
130
- },
131
- {
132
- "path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
133
- },
134
- {
135
- "path": "../../../platform/feature-flags-react/afm-post-office/tsconfig.json"
136
- },
137
- {
138
- "path": "../../../design-system/popper/afm-post-office/tsconfig.json"
139
- },
140
- {
141
- "path": "../../../design-system/primitives/afm-post-office/tsconfig.json"
142
- },
143
- {
144
- "path": "../../../people-and-teams/profilecard/afm-post-office/tsconfig.json"
145
- },
146
- {
147
- "path": "../../prosemirror-history/afm-post-office/tsconfig.json"
148
- },
149
- {
150
- "path": "../../../react-ufo/atlaskit/afm-post-office/tsconfig.json"
151
- },
152
- {
153
- "path": "../../../design-system/section-message/afm-post-office/tsconfig.json"
154
- },
155
- {
156
- "path": "../../../linking-platform/smart-card/afm-post-office/tsconfig.json"
157
- },
158
- {
159
- "path": "../../../smart-experiences/smart-user-picker/afm-post-office/tsconfig.json"
160
- },
161
- {
162
- "path": "../../../design-system/spinner/afm-post-office/tsconfig.json"
163
- },
164
- {
165
- "path": "../../../elements/status/afm-post-office/tsconfig.json"
166
- },
167
- {
168
- "path": "../../../elements/task-decision/afm-post-office/tsconfig.json"
169
- },
170
- {
171
- "path": "../../../design-system/textfield/afm-post-office/tsconfig.json"
172
- },
173
- {
174
- "path": "../../../design-system/theme/afm-post-office/tsconfig.json"
175
- },
176
- {
177
- "path": "../../tmp-editor-statsig/afm-post-office/tsconfig.json"
178
- },
179
- {
180
- "path": "../../../design-system/tokens/afm-post-office/tsconfig.json"
181
- },
182
- {
183
- "path": "../../../design-system/tooltip/afm-post-office/tsconfig.json"
184
- },
185
- {
186
- "path": "../../../data/ufo-external/afm-post-office/tsconfig.json"
187
- },
188
- {
189
- "path": "../../../design-system/width-detector/afm-post-office/tsconfig.json"
190
- },
191
- {
192
- "path": "../../../media/media-core/afm-post-office/tsconfig.json"
193
- }
194
- ]
195
- }