@atlaskit/editor-common 109.5.0 → 109.6.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 (49) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/analytics/types/enums.js +6 -0
  3. package/dist/cjs/element-browser/components/ViewMore.js +1 -1
  4. package/dist/cjs/monitoring/error.js +1 -1
  5. package/dist/cjs/styles/shared/table.js +1 -1
  6. package/dist/cjs/toolbar/EditorToolbarUIProvider.js +7 -3
  7. package/dist/cjs/ui/DropList/index.js +1 -1
  8. package/dist/cjs/ui/Shortcut/index.js +1 -1
  9. package/dist/cjs/ui/Toolbar/ButtonGroup.js +1 -1
  10. package/dist/cjs/ui/Toolbar/DropdownTriggerWrapper.js +1 -1
  11. package/dist/cjs/ui/Toolbar/DropdownWrapper.compiled.css +1 -2
  12. package/dist/cjs/ui/Toolbar/DropdownWrapper.js +1 -1
  13. package/dist/cjs/ui/Toolbar/ExpandIcon.js +1 -1
  14. package/dist/cjs/ui/Toolbar/Separator.js +1 -1
  15. package/dist/es2019/analytics/types/enums.js +6 -0
  16. package/dist/es2019/element-browser/components/ViewMore.js +1 -1
  17. package/dist/es2019/monitoring/error.js +1 -1
  18. package/dist/es2019/styles/shared/table.js +2 -2
  19. package/dist/es2019/toolbar/EditorToolbarUIProvider.js +7 -3
  20. package/dist/es2019/ui/DropList/index.js +1 -1
  21. package/dist/es2019/ui/Shortcut/index.js +1 -1
  22. package/dist/es2019/ui/Toolbar/ButtonGroup.js +1 -1
  23. package/dist/es2019/ui/Toolbar/DropdownTriggerWrapper.js +1 -1
  24. package/dist/es2019/ui/Toolbar/DropdownWrapper.compiled.css +1 -2
  25. package/dist/es2019/ui/Toolbar/DropdownWrapper.js +1 -1
  26. package/dist/es2019/ui/Toolbar/ExpandIcon.js +1 -1
  27. package/dist/es2019/ui/Toolbar/Separator.js +1 -1
  28. package/dist/esm/analytics/types/enums.js +6 -0
  29. package/dist/esm/element-browser/components/ViewMore.js +1 -1
  30. package/dist/esm/monitoring/error.js +1 -1
  31. package/dist/esm/styles/shared/table.js +1 -1
  32. package/dist/esm/toolbar/EditorToolbarUIProvider.js +7 -3
  33. package/dist/esm/ui/DropList/index.js +1 -1
  34. package/dist/esm/ui/Shortcut/index.js +1 -1
  35. package/dist/esm/ui/Toolbar/ButtonGroup.js +1 -1
  36. package/dist/esm/ui/Toolbar/DropdownTriggerWrapper.js +1 -1
  37. package/dist/esm/ui/Toolbar/DropdownWrapper.compiled.css +1 -2
  38. package/dist/esm/ui/Toolbar/DropdownWrapper.js +1 -1
  39. package/dist/esm/ui/Toolbar/ExpandIcon.js +1 -1
  40. package/dist/esm/ui/Toolbar/Separator.js +1 -1
  41. package/dist/types/analytics/types/enums.d.ts +7 -1
  42. package/dist/types/analytics/types/general-events.d.ts +11 -1
  43. package/dist/types/analytics/types/view-events.d.ts +4 -1
  44. package/dist/types/toolbar/EditorToolbarUIProvider.d.ts +2 -2
  45. package/dist/types-ts4.5/analytics/types/enums.d.ts +7 -1
  46. package/dist/types-ts4.5/analytics/types/general-events.d.ts +11 -1
  47. package/dist/types-ts4.5/analytics/types/view-events.d.ts +4 -1
  48. package/dist/types-ts4.5/toolbar/EditorToolbarUIProvider.d.ts +2 -2
  49. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 109.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`553afc302139b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/553afc302139b) -
8
+ Add analytic emitter component which fires an event when dropdowns are viewed
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 109.5.1
15
+
16
+ ### Patch Changes
17
+
18
+ - [`5dcdc48ce4da9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5dcdc48ce4da9) -
19
+ stop scroll on dropdown changes
20
+ - Updated dependencies
21
+
3
22
  ## 109.5.0
4
23
 
5
24
  ### Minor Changes
@@ -330,6 +330,8 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
330
330
  ACTION_SUBJECT["USER_PREFERENCES"] = "userPreferences";
331
331
  ACTION_SUBJECT["ALIGNMENT"] = "alignment";
332
332
  ACTION_SUBJECT["OFFLINE_EDITING"] = "offlineEditing";
333
+ ACTION_SUBJECT["TOOLBAR_DROPDOWN_MENU"] = "toolbarDropdownMenu";
334
+ ACTION_SUBJECT["TOOLBAR_DROPDOWN_MENU_ITEM"] = "toolbarDropdownMenuItem";
333
335
  return ACTION_SUBJECT;
334
336
  }({});
335
337
  var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
@@ -344,6 +346,9 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
344
346
  ACTION_SUBJECT_ID["AI_PROACTIVE_FEEDBACK_DIALOG"] = "aiProactiveFeedbackDialog";
345
347
  ACTION_SUBJECT_ID["AI_ASK_ROVO_BUTTON"] = "aiAskRovoButton";
346
348
  ACTION_SUBJECT_ID["AI_HERO_PROMPT_BUTTON"] = "aiHeroPromptButton";
349
+ ACTION_SUBJECT_ID["AI_MORE_ROVO_OPTIONS"] = "aiMoreRovoOptions";
350
+ ACTION_SUBJECT_ID["AI_TRANSLATE"] = "aiTranslate";
351
+ ACTION_SUBJECT_ID["AI_CHANGE_TONE"] = "aiChangeTone";
347
352
  ACTION_SUBJECT_ID["ALL"] = "all";
348
353
  ACTION_SUBJECT_ID["ALT_TEXT"] = "altText";
349
354
  ACTION_SUBJECT_ID["ANNOTATE_BUTTON"] = "annotateButton";
@@ -489,6 +494,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
489
494
  ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
490
495
  ACTION_SUBJECT_ID["UPLOAD_MEDIA"] = "uploadMedia";
491
496
  ACTION_SUBJECT_ID["SELECTION_TOOLBAR_PREFERENCES"] = "selectionToolbarPreferences";
497
+ ACTION_SUBJECT_ID["SELECTION_TOOLBAR"] = "selectionToolbar";
492
498
  ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_DROPDOWN"] = "editorPluginSelectionExtensionDropdown";
493
499
  ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_ITEM"] = "editorPluginSelectionExtensionItem";
494
500
  ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT"] = "editorPluginSelectionExtensionComponent";
@@ -1,4 +1,4 @@
1
- /* ViewMore.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* ViewMore.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -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 = "109.4.0";
19
+ var packageVersion = "109.5.1";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
@@ -59,7 +59,7 @@ var firstNodeWithNotMarginTop = function firstNodeWithNotMarginTop() {
59
59
 
60
60
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Appears safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing
61
61
  var tableSharedStyle = exports.tableSharedStyle = function tableSharedStyle() {
62
- return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\t.", " {\n\t\tposition: relative;\n\t\tmargin: 0 auto ", ";\n\t\tbox-sizing: border-box;\n\n\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.", "[data-number-column='true'] {\n\t\tpadding-left: ", "px;\n\t\tclear: both;\n\t}\n\n\t.", " {\n\t\twill-change: width, margin-left;\n\t}\n\n\t.", " table {\n\t\twill-change: width;\n\t}\n\n\t.", " > table {\n\t\tmargin: ", " 0 0 0;\n\t}\n\n\t.", " > table,\n\t.", " > table {\n\t\tmargin: ", " ", " 0 0;\n\t}\n\n\t/* support panel nested in table */\n\t", "\n\n\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\tborder-collapse: collapse;\n\t\tborder: ", "px solid\n\t\t\t", ";\n\t\ttable-layout: fixed;\n\t\tfont-size: 1em;\n\t\twidth: 100%;\n\n\t\t&[data-autosize='true'] {\n\t\t\ttable-layout: auto;\n\t\t}\n\n\t\t& {\n\t\t\t* {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\thr {\n\t\t\t\tbox-sizing: content-box;\n\t\t\t}\n\n\t\t\ttbody {\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t\tth td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\n\n\t\t\t> tbody > tr > th, > tbody > tr > td {\n\t\t\t\tmin-width: ", "px;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\tvertical-align: top;\n\t\t\t\tborder: 1px solid ", ";\n\t\t\t\tborder-right-width: 0;\n\t\t\t\tborder-bottom-width: 0;\n\n\t\t\t\tpadding: ", ";\n\t\t\t\t/* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n\t\t\t\t", "\n\n\t\t\t\t", "\n\n\t\t\t\tth p:not(:first-of-type),\n\t\t\t\ttd p:not(:first-of-type) {\n\t\t\t\t\tmargin-top: ", ";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* Ensures nested tables are compatible with parent table background color - uses specificity to ensure tables nested by extensions are not affected */\n\t\t\t> tbody > tr > td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\n\t\t\tth {\n\t\t\t\tbackground-color: ", ";\n\t\t\t\ttext-align: left;\n\n\t\t\t\t/* only apply this styling to codeblocks in default background headercells */\n\t\t\t\t/* TODO this needs to be overhauled as it relies on unsafe selectors */\n\t\t\t\t&:not([style]):not(.danger) {\n\t\t\t\t\t.", ":not(.danger) {\n\t\t\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t\t\t:not(.", ") {\n\t\t\t\t\t\t\tbox-shadow: 0px 0px 0px 1px ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-image: ", ";\n\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* this is only relevant to the element taken care of by renderer */\n\t\t\t\t\t\t> [data-ds--code--code-block] {\n\t\t\t\t\t\t\tbackground-image: ", "!important;\n\n\t\t\t\t\t\t\tbackground-color: ", "!important;\n\n\t\t\t\t\t\t\t/* selector lives inside @atlaskit/code */\n\t\t\t\t\t\t\t--ds--code--line-number-bg-color: ", ";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), (0, _tableCell.tableCellBackgroundStyleOverride)(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_CONTAINER, _editorSharedStyles.akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", (0, _platformFeatureFlags.fg)('platform_editor_bordered_panel_nested_in_table') ? ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " .ak-editor-panel {\n\t\t\tborder: ", "var(--ds-border-width, 1px)", " solid ", "var(--ds-border, #d9dbea)", ";\n\t\t}") : '', TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, "var(--ds-font-weight-regular, 400)", "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-space-100, 8px)", _browser.browser.gecko || _browser.browser.ie || _browser.browser.mac && _browser.browser.chrome ? 'background-clip: padding-box;' : '', firstNodeWithNotMarginTop(), "var(--ds-space-150, 12px)", "var(--ds-surface, #FFFFFF)", "var(--ds-background-accent-gray-subtlest, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"), _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, rgb(235, 237, 240))", _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-border, transparent)", _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, (0, _editorSharedStyles.overflowShadow)({
62
+ return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\t.", " {\n\t\tposition: relative;\n\t\tmargin: 0 auto ", ";\n\t\tbox-sizing: border-box;\n\n\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.", "[data-number-column='true'] {\n\t\tpadding-left: ", "px;\n\t\tclear: both;\n\t}\n\n\t.", " {\n\t\twill-change: width, margin-left;\n\t}\n\n\t.", " table {\n\t\twill-change: width;\n\t}\n\n\t.", " > table {\n\t\tmargin: ", " 0 0 0;\n\t}\n\n\t.", " > table,\n\t.", " > table {\n\t\tmargin: ", " ", " 0 0;\n\t}\n\n\t/* support panel nested in table */\n\t", "\n\n\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\tborder-collapse: collapse;\n\t\tborder: ", "px solid\n\t\t\t", ";\n\t\ttable-layout: fixed;\n\t\tfont-size: 1em;\n\t\twidth: 100%;\n\n\t\t&[data-autosize='true'] {\n\t\t\ttable-layout: auto;\n\t\t}\n\n\t\t& {\n\t\t\t* {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\thr {\n\t\t\t\tbox-sizing: content-box;\n\t\t\t}\n\n\t\t\ttbody {\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t\tth td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\n\t\t\t> tbody > tr > th,\n\t\t\t> tbody > tr > td {\n\t\t\t\tmin-width: ", "px;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\tvertical-align: top;\n\t\t\t\tborder: 1px solid ", ";\n\t\t\t\tborder-right-width: 0;\n\t\t\t\tborder-bottom-width: 0;\n\n\t\t\t\tpadding: ", ";\n\t\t\t\t/* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n\t\t\t\t", "\n\n\t\t\t\t", "\n\n\t\t\t\tth p:not(:first-of-type),\n\t\t\t\ttd p:not(:first-of-type) {\n\t\t\t\t\tmargin-top: ", ";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* Ensures nested tables are compatible with parent table background color - uses specificity to ensure tables nested by extensions are not affected */\n\t\t\t> tbody > tr > td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\n\t\t\tth {\n\t\t\t\tbackground-color: ", ";\n\t\t\t\ttext-align: left;\n\n\t\t\t\t/* only apply this styling to codeblocks in default background headercells */\n\t\t\t\t/* TODO this needs to be overhauled as it relies on unsafe selectors */\n\t\t\t\t&:not([style]):not(.danger) {\n\t\t\t\t\t.", ":not(.danger) {\n\t\t\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t\t\t:not(.", ") {\n\t\t\t\t\t\t\tbox-shadow: 0px 0px 0px 1px ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-image: ", ";\n\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* this is only relevant to the element taken care of by renderer */\n\t\t\t\t\t\t> [data-ds--code--code-block] {\n\t\t\t\t\t\t\tbackground-image: ", "!important;\n\n\t\t\t\t\t\t\tbackground-color: ", "!important;\n\n\t\t\t\t\t\t\t/* selector lives inside @atlaskit/code */\n\t\t\t\t\t\t\t--ds--code--line-number-bg-color: ", ";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), (0, _tableCell.tableCellBackgroundStyleOverride)(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_CONTAINER, _editorSharedStyles.akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", (0, _platformFeatureFlags.fg)('platform_editor_bordered_panel_nested_in_table') ? ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " .ak-editor-panel {\n\t\t\tborder: ", "var(--ds-border-width, 1px)", " solid ", "var(--ds-border, #d9dbea)", ";\n\t\t}") : '', TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, "var(--ds-font-weight-regular, 400)", "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-space-100, 8px)", _browser.browser.gecko || _browser.browser.ie || _browser.browser.mac && _browser.browser.chrome ? 'background-clip: padding-box;' : '', firstNodeWithNotMarginTop(), "var(--ds-space-150, 12px)", "var(--ds-surface, #FFFFFF)", "var(--ds-background-accent-gray-subtlest, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"), _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, rgb(235, 237, 240))", _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-border, transparent)", _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, (0, _editorSharedStyles.overflowShadow)({
63
63
  leftCoverWidth: "var(--ds-space-300, 24px)"
64
64
  }), "var(--ds-background-neutral, rgb(235, 237, 240))", _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, rgb(226, 229, 233))", (0, _editorSharedStyles.overflowShadow)({
65
65
  leftCoverWidth: "var(--ds-space-300, 24px)"
@@ -14,7 +14,8 @@ var EditorToolbarUIProvider = exports.EditorToolbarUIProvider = function EditorT
14
14
  isDisabled = _ref.isDisabled,
15
15
  popupsMountPoint = _ref.popupsMountPoint,
16
16
  popupsBoundariesElement = _ref.popupsBoundariesElement,
17
- popupsScrollableElement = _ref.popupsScrollableElement;
17
+ popupsScrollableElement = _ref.popupsScrollableElement,
18
+ fireAnalyticsEvent = _ref.fireAnalyticsEvent;
18
19
  var onDropdownOpenChanged = (0, _react.useCallback)(function (_ref2) {
19
20
  var isOpen = _ref2.isOpen;
20
21
  if (!isOpen) {
@@ -22,7 +23,9 @@ var EditorToolbarUIProvider = exports.EditorToolbarUIProvider = function EditorT
22
23
  // Hence, `.focus()` should also be called in requestAnimationFrame
23
24
  setTimeout(function () {
24
25
  return requestAnimationFrame(function () {
25
- api === null || api === void 0 || api.core.actions.focus();
26
+ api === null || api === void 0 || api.core.actions.focus({
27
+ scrollIntoView: false
28
+ });
26
29
  });
27
30
  }, 1);
28
31
  }
@@ -33,6 +36,7 @@ var EditorToolbarUIProvider = exports.EditorToolbarUIProvider = function EditorT
33
36
  isDisabled: isDisabled,
34
37
  popupsMountPoint: popupsMountPoint,
35
38
  popupsBoundariesElement: popupsBoundariesElement,
36
- popupsScrollableElement: popupsScrollableElement
39
+ popupsScrollableElement: popupsScrollableElement,
40
+ fireAnalyticsEvent: fireAnalyticsEvent
37
41
  }, children);
38
42
  };
@@ -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 = "109.4.0";
27
+ var packageVersion = "109.5.1";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* ButtonGroup.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* ButtonGroup.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* DropdownTriggerWrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* DropdownTriggerWrapper.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -2,7 +2,6 @@
2
2
  ._1fvdglyw button:not([disabled]):after{border:none}._18u0idpf{margin-left:0}
3
3
  ._1e0c1txw{display:flex}
4
4
  ._1ul91wug{min-width:auto}
5
- ._1xdi1txw >span{display:flex}
6
5
  ._1ylx1txw >div>div{display:flex}
7
6
  ._4cvr1h6o{align-items:center}
8
- ._p7r11txw >div{display:flex}
7
+ ._p7r11txw >div, ._1xdi1txw >span{display:flex}
@@ -1,4 +1,4 @@
1
- /* DropdownWrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* DropdownWrapper.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* ExpandIcon.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* ExpandIcon.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* Separator.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* Separator.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -324,6 +324,8 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
324
324
  ACTION_SUBJECT["USER_PREFERENCES"] = "userPreferences";
325
325
  ACTION_SUBJECT["ALIGNMENT"] = "alignment";
326
326
  ACTION_SUBJECT["OFFLINE_EDITING"] = "offlineEditing";
327
+ ACTION_SUBJECT["TOOLBAR_DROPDOWN_MENU"] = "toolbarDropdownMenu";
328
+ ACTION_SUBJECT["TOOLBAR_DROPDOWN_MENU_ITEM"] = "toolbarDropdownMenuItem";
327
329
  return ACTION_SUBJECT;
328
330
  }({});
329
331
  export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
@@ -338,6 +340,9 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
338
340
  ACTION_SUBJECT_ID["AI_PROACTIVE_FEEDBACK_DIALOG"] = "aiProactiveFeedbackDialog";
339
341
  ACTION_SUBJECT_ID["AI_ASK_ROVO_BUTTON"] = "aiAskRovoButton";
340
342
  ACTION_SUBJECT_ID["AI_HERO_PROMPT_BUTTON"] = "aiHeroPromptButton";
343
+ ACTION_SUBJECT_ID["AI_MORE_ROVO_OPTIONS"] = "aiMoreRovoOptions";
344
+ ACTION_SUBJECT_ID["AI_TRANSLATE"] = "aiTranslate";
345
+ ACTION_SUBJECT_ID["AI_CHANGE_TONE"] = "aiChangeTone";
341
346
  ACTION_SUBJECT_ID["ALL"] = "all";
342
347
  ACTION_SUBJECT_ID["ALT_TEXT"] = "altText";
343
348
  ACTION_SUBJECT_ID["ANNOTATE_BUTTON"] = "annotateButton";
@@ -483,6 +488,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
483
488
  ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
484
489
  ACTION_SUBJECT_ID["UPLOAD_MEDIA"] = "uploadMedia";
485
490
  ACTION_SUBJECT_ID["SELECTION_TOOLBAR_PREFERENCES"] = "selectionToolbarPreferences";
491
+ ACTION_SUBJECT_ID["SELECTION_TOOLBAR"] = "selectionToolbar";
486
492
  ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_DROPDOWN"] = "editorPluginSelectionExtensionDropdown";
487
493
  ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_ITEM"] = "editorPluginSelectionExtensionItem";
488
494
  ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT"] = "editorPluginSelectionExtensionComponent";
@@ -1,4 +1,4 @@
1
- /* ViewMore.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* ViewMore.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./ViewMore.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -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 = "109.4.0";
4
+ const packageVersion = "109.5.1";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -140,8 +140,8 @@ const tableSharedStyle = () => css`
140
140
  background-color: ${"var(--ds-background-neutral-subtle, white)"};
141
141
  }
142
142
 
143
-
144
- > tbody > tr > th, > tbody > tr > td {
143
+ > tbody > tr > th,
144
+ > tbody > tr > td {
145
145
  min-width: ${tableCellMinWidth}px;
146
146
  font-weight: ${"var(--ds-font-weight-regular, 400)"};
147
147
  vertical-align: top;
@@ -6,7 +6,8 @@ export const EditorToolbarUIProvider = ({
6
6
  isDisabled,
7
7
  popupsMountPoint,
8
8
  popupsBoundariesElement,
9
- popupsScrollableElement
9
+ popupsScrollableElement,
10
+ fireAnalyticsEvent
10
11
  }) => {
11
12
  const onDropdownOpenChanged = useCallback(({
12
13
  isOpen
@@ -15,7 +16,9 @@ export const EditorToolbarUIProvider = ({
15
16
  // On Dropdown closed, focus is returned to trigger button by default in requestAnimationFrame
16
17
  // Hence, `.focus()` should also be called in requestAnimationFrame
17
18
  setTimeout(() => requestAnimationFrame(() => {
18
- api === null || api === void 0 ? void 0 : api.core.actions.focus();
19
+ api === null || api === void 0 ? void 0 : api.core.actions.focus({
20
+ scrollIntoView: false
21
+ });
19
22
  }), 1);
20
23
  }
21
24
  }, [api]);
@@ -25,6 +28,7 @@ export const EditorToolbarUIProvider = ({
25
28
  isDisabled: isDisabled,
26
29
  popupsMountPoint: popupsMountPoint,
27
30
  popupsBoundariesElement: popupsBoundariesElement,
28
- popupsScrollableElement: popupsScrollableElement
31
+ popupsScrollableElement: popupsScrollableElement,
32
+ fireAnalyticsEvent: fireAnalyticsEvent
29
33
  }, children);
30
34
  };
@@ -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 = "109.4.0";
17
+ const packageVersion = "109.5.1";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./index.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* ButtonGroup.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* ButtonGroup.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./ButtonGroup.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* DropdownTriggerWrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* DropdownTriggerWrapper.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./DropdownTriggerWrapper.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -2,7 +2,6 @@
2
2
  ._1fvdglyw button:not([disabled]):after{border:none}._18u0idpf{margin-left:0}
3
3
  ._1e0c1txw{display:flex}
4
4
  ._1ul91wug{min-width:auto}
5
- ._1xdi1txw >span{display:flex}
6
5
  ._1ylx1txw >div>div{display:flex}
7
6
  ._4cvr1h6o{align-items:center}
8
- ._p7r11txw >div{display:flex}
7
+ ._p7r11txw >div, ._1xdi1txw >span{display:flex}
@@ -1,4 +1,4 @@
1
- /* DropdownWrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* DropdownWrapper.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./DropdownWrapper.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* ExpandIcon.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* ExpandIcon.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./ExpandIcon.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* Separator.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* Separator.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./Separator.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -324,6 +324,8 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
324
324
  ACTION_SUBJECT["USER_PREFERENCES"] = "userPreferences";
325
325
  ACTION_SUBJECT["ALIGNMENT"] = "alignment";
326
326
  ACTION_SUBJECT["OFFLINE_EDITING"] = "offlineEditing";
327
+ ACTION_SUBJECT["TOOLBAR_DROPDOWN_MENU"] = "toolbarDropdownMenu";
328
+ ACTION_SUBJECT["TOOLBAR_DROPDOWN_MENU_ITEM"] = "toolbarDropdownMenuItem";
327
329
  return ACTION_SUBJECT;
328
330
  }({});
329
331
  export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
@@ -338,6 +340,9 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
338
340
  ACTION_SUBJECT_ID["AI_PROACTIVE_FEEDBACK_DIALOG"] = "aiProactiveFeedbackDialog";
339
341
  ACTION_SUBJECT_ID["AI_ASK_ROVO_BUTTON"] = "aiAskRovoButton";
340
342
  ACTION_SUBJECT_ID["AI_HERO_PROMPT_BUTTON"] = "aiHeroPromptButton";
343
+ ACTION_SUBJECT_ID["AI_MORE_ROVO_OPTIONS"] = "aiMoreRovoOptions";
344
+ ACTION_SUBJECT_ID["AI_TRANSLATE"] = "aiTranslate";
345
+ ACTION_SUBJECT_ID["AI_CHANGE_TONE"] = "aiChangeTone";
341
346
  ACTION_SUBJECT_ID["ALL"] = "all";
342
347
  ACTION_SUBJECT_ID["ALT_TEXT"] = "altText";
343
348
  ACTION_SUBJECT_ID["ANNOTATE_BUTTON"] = "annotateButton";
@@ -483,6 +488,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
483
488
  ACTION_SUBJECT_ID["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
484
489
  ACTION_SUBJECT_ID["UPLOAD_MEDIA"] = "uploadMedia";
485
490
  ACTION_SUBJECT_ID["SELECTION_TOOLBAR_PREFERENCES"] = "selectionToolbarPreferences";
491
+ ACTION_SUBJECT_ID["SELECTION_TOOLBAR"] = "selectionToolbar";
486
492
  ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_DROPDOWN"] = "editorPluginSelectionExtensionDropdown";
487
493
  ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_ITEM"] = "editorPluginSelectionExtensionItem";
488
494
  ACTION_SUBJECT_ID["EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT"] = "editorPluginSelectionExtensionComponent";
@@ -1,4 +1,4 @@
1
- /* ViewMore.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* ViewMore.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./ViewMore.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -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 = "109.4.0";
10
+ var packageVersion = "109.5.1";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -53,7 +53,7 @@ var firstNodeWithNotMarginTop = function firstNodeWithNotMarginTop() {
53
53
 
54
54
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Appears safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing
55
55
  var tableSharedStyle = function tableSharedStyle() {
56
- return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t", "\n\t.", " {\n\t\tposition: relative;\n\t\tmargin: 0 auto ", ";\n\t\tbox-sizing: border-box;\n\n\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.", "[data-number-column='true'] {\n\t\tpadding-left: ", "px;\n\t\tclear: both;\n\t}\n\n\t.", " {\n\t\twill-change: width, margin-left;\n\t}\n\n\t.", " table {\n\t\twill-change: width;\n\t}\n\n\t.", " > table {\n\t\tmargin: ", " 0 0 0;\n\t}\n\n\t.", " > table,\n\t.", " > table {\n\t\tmargin: ", " ", " 0 0;\n\t}\n\n\t/* support panel nested in table */\n\t", "\n\n\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\tborder-collapse: collapse;\n\t\tborder: ", "px solid\n\t\t\t", ";\n\t\ttable-layout: fixed;\n\t\tfont-size: 1em;\n\t\twidth: 100%;\n\n\t\t&[data-autosize='true'] {\n\t\t\ttable-layout: auto;\n\t\t}\n\n\t\t& {\n\t\t\t* {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\thr {\n\t\t\t\tbox-sizing: content-box;\n\t\t\t}\n\n\t\t\ttbody {\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t\tth td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\n\n\t\t\t> tbody > tr > th, > tbody > tr > td {\n\t\t\t\tmin-width: ", "px;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\tvertical-align: top;\n\t\t\t\tborder: 1px solid ", ";\n\t\t\t\tborder-right-width: 0;\n\t\t\t\tborder-bottom-width: 0;\n\n\t\t\t\tpadding: ", ";\n\t\t\t\t/* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n\t\t\t\t", "\n\n\t\t\t\t", "\n\n\t\t\t\tth p:not(:first-of-type),\n\t\t\t\ttd p:not(:first-of-type) {\n\t\t\t\t\tmargin-top: ", ";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* Ensures nested tables are compatible with parent table background color - uses specificity to ensure tables nested by extensions are not affected */\n\t\t\t> tbody > tr > td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\n\t\t\tth {\n\t\t\t\tbackground-color: ", ";\n\t\t\t\ttext-align: left;\n\n\t\t\t\t/* only apply this styling to codeblocks in default background headercells */\n\t\t\t\t/* TODO this needs to be overhauled as it relies on unsafe selectors */\n\t\t\t\t&:not([style]):not(.danger) {\n\t\t\t\t\t.", ":not(.danger) {\n\t\t\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t\t\t:not(.", ") {\n\t\t\t\t\t\t\tbox-shadow: 0px 0px 0px 1px ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-image: ", ";\n\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* this is only relevant to the element taken care of by renderer */\n\t\t\t\t\t\t> [data-ds--code--code-block] {\n\t\t\t\t\t\t\tbackground-image: ", "!important;\n\n\t\t\t\t\t\t\tbackground-color: ", "!important;\n\n\t\t\t\t\t\t\t/* selector lives inside @atlaskit/code */\n\t\t\t\t\t\t\t--ds--code--line-number-bg-color: ", ";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), tableCellBackgroundStyleOverride(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", fg('platform_editor_bordered_panel_nested_in_table') ? ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " .ak-editor-panel {\n\t\t\tborder: ", "var(--ds-border-width, 1px)", " solid ", "var(--ds-border, #d9dbea)", ";\n\t\t}") : '', TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, "var(--ds-font-weight-regular, 400)", "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-space-100, 8px)", browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : '', firstNodeWithNotMarginTop(), "var(--ds-space-150, 12px)", "var(--ds-surface, #FFFFFF)", "var(--ds-background-accent-gray-subtlest, ".concat(akEditorTableToolbar, ")"), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, rgb(235, 237, 240))", akEditorSelectedNodeClassName, "var(--ds-border, transparent)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, overflowShadow({
56
+ return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t", "\n\t.", " {\n\t\tposition: relative;\n\t\tmargin: 0 auto ", ";\n\t\tbox-sizing: border-box;\n\n\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.", "[data-number-column='true'] {\n\t\tpadding-left: ", "px;\n\t\tclear: both;\n\t}\n\n\t.", " {\n\t\twill-change: width, margin-left;\n\t}\n\n\t.", " table {\n\t\twill-change: width;\n\t}\n\n\t.", " > table {\n\t\tmargin: ", " 0 0 0;\n\t}\n\n\t.", " > table,\n\t.", " > table {\n\t\tmargin: ", " ", " 0 0;\n\t}\n\n\t/* support panel nested in table */\n\t", "\n\n\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\tborder-collapse: collapse;\n\t\tborder: ", "px solid\n\t\t\t", ";\n\t\ttable-layout: fixed;\n\t\tfont-size: 1em;\n\t\twidth: 100%;\n\n\t\t&[data-autosize='true'] {\n\t\t\ttable-layout: auto;\n\t\t}\n\n\t\t& {\n\t\t\t* {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\thr {\n\t\t\t\tbox-sizing: content-box;\n\t\t\t}\n\n\t\t\ttbody {\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t\tth td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\n\t\t\t> tbody > tr > th,\n\t\t\t> tbody > tr > td {\n\t\t\t\tmin-width: ", "px;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\tvertical-align: top;\n\t\t\t\tborder: 1px solid ", ";\n\t\t\t\tborder-right-width: 0;\n\t\t\t\tborder-bottom-width: 0;\n\n\t\t\t\tpadding: ", ";\n\t\t\t\t/* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n\t\t\t\t", "\n\n\t\t\t\t", "\n\n\t\t\t\tth p:not(:first-of-type),\n\t\t\t\ttd p:not(:first-of-type) {\n\t\t\t\t\tmargin-top: ", ";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* Ensures nested tables are compatible with parent table background color - uses specificity to ensure tables nested by extensions are not affected */\n\t\t\t> tbody > tr > td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\n\t\t\tth {\n\t\t\t\tbackground-color: ", ";\n\t\t\t\ttext-align: left;\n\n\t\t\t\t/* only apply this styling to codeblocks in default background headercells */\n\t\t\t\t/* TODO this needs to be overhauled as it relies on unsafe selectors */\n\t\t\t\t&:not([style]):not(.danger) {\n\t\t\t\t\t.", ":not(.danger) {\n\t\t\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t\t\t:not(.", ") {\n\t\t\t\t\t\t\tbox-shadow: 0px 0px 0px 1px ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-image: ", ";\n\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* this is only relevant to the element taken care of by renderer */\n\t\t\t\t\t\t> [data-ds--code--code-block] {\n\t\t\t\t\t\t\tbackground-image: ", "!important;\n\n\t\t\t\t\t\t\tbackground-color: ", "!important;\n\n\t\t\t\t\t\t\t/* selector lives inside @atlaskit/code */\n\t\t\t\t\t\t\t--ds--code--line-number-bg-color: ", ";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), tableCellBackgroundStyleOverride(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", fg('platform_editor_bordered_panel_nested_in_table') ? ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " .ak-editor-panel {\n\t\t\tborder: ", "var(--ds-border-width, 1px)", " solid ", "var(--ds-border, #d9dbea)", ";\n\t\t}") : '', TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, "var(--ds-font-weight-regular, 400)", "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-space-100, 8px)", browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : '', firstNodeWithNotMarginTop(), "var(--ds-space-150, 12px)", "var(--ds-surface, #FFFFFF)", "var(--ds-background-accent-gray-subtlest, ".concat(akEditorTableToolbar, ")"), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, rgb(235, 237, 240))", akEditorSelectedNodeClassName, "var(--ds-border, transparent)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, overflowShadow({
57
57
  leftCoverWidth: "var(--ds-space-300, 24px)"
58
58
  }), "var(--ds-background-neutral, rgb(235, 237, 240))", CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, rgb(226, 229, 233))", overflowShadow({
59
59
  leftCoverWidth: "var(--ds-space-300, 24px)"
@@ -6,7 +6,8 @@ export var EditorToolbarUIProvider = function EditorToolbarUIProvider(_ref) {
6
6
  isDisabled = _ref.isDisabled,
7
7
  popupsMountPoint = _ref.popupsMountPoint,
8
8
  popupsBoundariesElement = _ref.popupsBoundariesElement,
9
- popupsScrollableElement = _ref.popupsScrollableElement;
9
+ popupsScrollableElement = _ref.popupsScrollableElement,
10
+ fireAnalyticsEvent = _ref.fireAnalyticsEvent;
10
11
  var onDropdownOpenChanged = useCallback(function (_ref2) {
11
12
  var isOpen = _ref2.isOpen;
12
13
  if (!isOpen) {
@@ -14,7 +15,9 @@ export var EditorToolbarUIProvider = function EditorToolbarUIProvider(_ref) {
14
15
  // Hence, `.focus()` should also be called in requestAnimationFrame
15
16
  setTimeout(function () {
16
17
  return requestAnimationFrame(function () {
17
- api === null || api === void 0 || api.core.actions.focus();
18
+ api === null || api === void 0 || api.core.actions.focus({
19
+ scrollIntoView: false
20
+ });
18
21
  });
19
22
  }, 1);
20
23
  }
@@ -25,6 +28,7 @@ export var EditorToolbarUIProvider = function EditorToolbarUIProvider(_ref) {
25
28
  isDisabled: isDisabled,
26
29
  popupsMountPoint: popupsMountPoint,
27
30
  popupsBoundariesElement: popupsBoundariesElement,
28
- popupsScrollableElement: popupsScrollableElement
31
+ popupsScrollableElement: popupsScrollableElement,
32
+ fireAnalyticsEvent: fireAnalyticsEvent
29
33
  }, children);
30
34
  };
@@ -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 = "109.4.0";
24
+ var packageVersion = "109.5.1";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -1,4 +1,4 @@
1
- /* index.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./index.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* ButtonGroup.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* ButtonGroup.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./ButtonGroup.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* DropdownTriggerWrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* DropdownTriggerWrapper.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./DropdownTriggerWrapper.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -2,7 +2,6 @@
2
2
  ._1fvdglyw button:not([disabled]):after{border:none}._18u0idpf{margin-left:0}
3
3
  ._1e0c1txw{display:flex}
4
4
  ._1ul91wug{min-width:auto}
5
- ._1xdi1txw >span{display:flex}
6
5
  ._1ylx1txw >div>div{display:flex}
7
6
  ._4cvr1h6o{align-items:center}
8
- ._p7r11txw >div{display:flex}
7
+ ._p7r11txw >div, ._1xdi1txw >span{display:flex}
@@ -1,4 +1,4 @@
1
- /* DropdownWrapper.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* DropdownWrapper.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./DropdownWrapper.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,4 +1,4 @@
1
- /* ExpandIcon.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* ExpandIcon.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./ExpandIcon.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* Separator.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* Separator.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./Separator.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -316,7 +316,9 @@ export declare enum ACTION_SUBJECT {
316
316
  AI_DEFINITIONS = "aiDefinitions",
317
317
  USER_PREFERENCES = "userPreferences",
318
318
  ALIGNMENT = "alignment",
319
- OFFLINE_EDITING = "offlineEditing"
319
+ OFFLINE_EDITING = "offlineEditing",
320
+ TOOLBAR_DROPDOWN_MENU = "toolbarDropdownMenu",
321
+ TOOLBAR_DROPDOWN_MENU_ITEM = "toolbarDropdownMenuItem"
320
322
  }
321
323
  export declare enum ACTION_SUBJECT_ID {
322
324
  ACTION = "action",
@@ -330,6 +332,9 @@ export declare enum ACTION_SUBJECT_ID {
330
332
  AI_PROACTIVE_FEEDBACK_DIALOG = "aiProactiveFeedbackDialog",
331
333
  AI_ASK_ROVO_BUTTON = "aiAskRovoButton",
332
334
  AI_HERO_PROMPT_BUTTON = "aiHeroPromptButton",
335
+ AI_MORE_ROVO_OPTIONS = "aiMoreRovoOptions",
336
+ AI_TRANSLATE = "aiTranslate",
337
+ AI_CHANGE_TONE = "aiChangeTone",
333
338
  ALL = "all",
334
339
  ALT_TEXT = "altText",
335
340
  ANNOTATE_BUTTON = "annotateButton",
@@ -475,6 +480,7 @@ export declare enum ACTION_SUBJECT_ID {
475
480
  MULTI_BODIED_EXTENSION = "multiBodiedExtension",
476
481
  UPLOAD_MEDIA = "uploadMedia",
477
482
  SELECTION_TOOLBAR_PREFERENCES = "selectionToolbarPreferences",
483
+ SELECTION_TOOLBAR = "selectionToolbar",
478
484
  EDITOR_PLUGIN_SELECTION_EXTENSION_DROPDOWN = "editorPluginSelectionExtensionDropdown",
479
485
  EDITOR_PLUGIN_SELECTION_EXTENSION_ITEM = "editorPluginSelectionExtensionItem",
480
486
  EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT = "editorPluginSelectionExtensionComponent"
@@ -197,5 +197,15 @@ type CopyLinkToAnchorButtonAEP = ButtonAEP<ACTION_SUBJECT_ID.COPY_LINK_TO_ANCHOR
197
197
  inputMethod: INPUT_METHOD;
198
198
  isLivePage?: boolean;
199
199
  }>;
200
- export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | AnnotationErrorAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ButtonUploadMediaAEP | ColorPickerAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamplingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | PickerMediaInsertAEP | PickerMediaInsertClosedAEP | PickerMediaInsertCancelledAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP | BlocksDragInitAEP | CodeBlockWordWrapToggleAEP | RequestToEditAEP | SingleColumLayoutDetectedAEP | CopyLinkToAnchorButtonAEP | DockedPrimaryToolbarRenderedAEP;
200
+ type RovoMoreOptionsClickedAEP = ButtonAEP<ACTION_SUBJECT_ID.AI_MORE_ROVO_OPTIONS, {
201
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
202
+ opened: boolean;
203
+ }>;
204
+ type ChangeToneMenuItemClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.TOOLBAR_DROPDOWN_MENU_ITEM, ACTION_SUBJECT_ID.AI_CHANGE_TONE, {
205
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
206
+ }>;
207
+ type TranslateMenuItemClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.TOOLBAR_DROPDOWN_MENU_ITEM, ACTION_SUBJECT_ID.AI_TRANSLATE, {
208
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
209
+ }>;
210
+ export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | AnnotationErrorAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ButtonUploadMediaAEP | ColorPickerAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamplingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | PickerMediaInsertAEP | PickerMediaInsertClosedAEP | PickerMediaInsertCancelledAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP | BlocksDragInitAEP | CodeBlockWordWrapToggleAEP | RequestToEditAEP | SingleColumLayoutDetectedAEP | CopyLinkToAnchorButtonAEP | DockedPrimaryToolbarRenderedAEP | RovoMoreOptionsClickedAEP | ChangeToneMenuItemClickedAEP | TranslateMenuItemClickedAEP;
201
211
  export {};
@@ -25,4 +25,7 @@ export type ViewDefineButtonEventAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJECT.BUTTO
25
25
  selectionCharCount: number;
26
26
  selectionWordCount: number;
27
27
  }, undefined>;
28
- export type ViewEventPayload = ViewAIRovoButtonEventAEP | ViewAIHeroPromptButtonEventAEP | ViewDefineButtonEventAEP | ViewInlineCommentsButtonEventAEP;
28
+ export type ViewSelectionToolbarEventAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJECT.TOOLBAR, ACTION_SUBJECT_ID.SELECTION_TOOLBAR, {
29
+ mode: MODE.EDITOR;
30
+ }, undefined>;
31
+ export type ViewEventPayload = ViewAIRovoButtonEventAEP | ViewAIHeroPromptButtonEventAEP | ViewDefineButtonEventAEP | ViewInlineCommentsButtonEventAEP | ViewSelectionToolbarEventAEP;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import type { ToolbarUIContextType } from '@atlaskit/editor-toolbar';
3
3
  import type { ExtractInjectionAPI, NextEditorPlugin } from '../types';
4
- type Props = Pick<ToolbarUIContextType, 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement'> & {
4
+ type Props = Pick<ToolbarUIContextType, 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement' | 'fireAnalyticsEvent'> & {
5
5
  api: ExtractInjectionAPI<NextEditorPlugin<any, any>> | undefined;
6
6
  children: React.ReactNode;
7
7
  isDisabled?: boolean;
8
8
  };
9
- export declare const EditorToolbarUIProvider: ({ children, api, isDisabled, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, }: Props) => React.JSX.Element;
9
+ export declare const EditorToolbarUIProvider: ({ children, api, isDisabled, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, fireAnalyticsEvent, }: Props) => React.JSX.Element;
10
10
  export {};
@@ -316,7 +316,9 @@ export declare enum ACTION_SUBJECT {
316
316
  AI_DEFINITIONS = "aiDefinitions",
317
317
  USER_PREFERENCES = "userPreferences",
318
318
  ALIGNMENT = "alignment",
319
- OFFLINE_EDITING = "offlineEditing"
319
+ OFFLINE_EDITING = "offlineEditing",
320
+ TOOLBAR_DROPDOWN_MENU = "toolbarDropdownMenu",
321
+ TOOLBAR_DROPDOWN_MENU_ITEM = "toolbarDropdownMenuItem"
320
322
  }
321
323
  export declare enum ACTION_SUBJECT_ID {
322
324
  ACTION = "action",
@@ -330,6 +332,9 @@ export declare enum ACTION_SUBJECT_ID {
330
332
  AI_PROACTIVE_FEEDBACK_DIALOG = "aiProactiveFeedbackDialog",
331
333
  AI_ASK_ROVO_BUTTON = "aiAskRovoButton",
332
334
  AI_HERO_PROMPT_BUTTON = "aiHeroPromptButton",
335
+ AI_MORE_ROVO_OPTIONS = "aiMoreRovoOptions",
336
+ AI_TRANSLATE = "aiTranslate",
337
+ AI_CHANGE_TONE = "aiChangeTone",
333
338
  ALL = "all",
334
339
  ALT_TEXT = "altText",
335
340
  ANNOTATE_BUTTON = "annotateButton",
@@ -475,6 +480,7 @@ export declare enum ACTION_SUBJECT_ID {
475
480
  MULTI_BODIED_EXTENSION = "multiBodiedExtension",
476
481
  UPLOAD_MEDIA = "uploadMedia",
477
482
  SELECTION_TOOLBAR_PREFERENCES = "selectionToolbarPreferences",
483
+ SELECTION_TOOLBAR = "selectionToolbar",
478
484
  EDITOR_PLUGIN_SELECTION_EXTENSION_DROPDOWN = "editorPluginSelectionExtensionDropdown",
479
485
  EDITOR_PLUGIN_SELECTION_EXTENSION_ITEM = "editorPluginSelectionExtensionItem",
480
486
  EDITOR_PLUGIN_SELECTION_EXTENSION_COMPONENT = "editorPluginSelectionExtensionComponent"
@@ -197,5 +197,15 @@ type CopyLinkToAnchorButtonAEP = ButtonAEP<ACTION_SUBJECT_ID.COPY_LINK_TO_ANCHOR
197
197
  inputMethod: INPUT_METHOD;
198
198
  isLivePage?: boolean;
199
199
  }>;
200
- export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | AnnotationErrorAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ButtonUploadMediaAEP | ColorPickerAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamplingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | PickerMediaInsertAEP | PickerMediaInsertClosedAEP | PickerMediaInsertCancelledAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP | BlocksDragInitAEP | CodeBlockWordWrapToggleAEP | RequestToEditAEP | SingleColumLayoutDetectedAEP | CopyLinkToAnchorButtonAEP | DockedPrimaryToolbarRenderedAEP;
200
+ type RovoMoreOptionsClickedAEP = ButtonAEP<ACTION_SUBJECT_ID.AI_MORE_ROVO_OPTIONS, {
201
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
202
+ opened: boolean;
203
+ }>;
204
+ type ChangeToneMenuItemClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.TOOLBAR_DROPDOWN_MENU_ITEM, ACTION_SUBJECT_ID.AI_CHANGE_TONE, {
205
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
206
+ }>;
207
+ type TranslateMenuItemClickedAEP = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.TOOLBAR_DROPDOWN_MENU_ITEM, ACTION_SUBJECT_ID.AI_TRANSLATE, {
208
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB;
209
+ }>;
210
+ export type GeneralEventPayload<T = void> = AnnotateButtonAEP | AnnotationAEP | AnnotationErrorAEP | BrowserFreezePayload | ButtonFeedbackAEP | ButtonHelpAEP | ButtonUploadMediaAEP | ColorPickerAEP | EditorPerfAEP | EditorRenderedAEP<T> | EditorStartAEP | EditorStopAEP | ExpandToggleAEP | FeedbackAEP | FullWidthModeAEP | HelpQuickInsertAEP | InputPerfSamplingAEP | InputPerfSamplingAvgAEP | PickerEmojiAEP | PickerImageAEP | PickerMediaInsertAEP | PickerMediaInsertClosedAEP | PickerMediaInsertCancelledAEP | ReactNodeViewRenderedAEP | RichMediaLayoutAEP | SelectionAEP | SlowInputAEP | TransactionMutatedAEP | UploadExternalFailedAEP | WithPluginStateCalledAEP | CodeBlockLanguageSelectedAEP | EditorContentRetrievalPerformedAEP | MediaLinkTransformedAEP | TextLinkCodeMarkTransformedAEP | DedupeMarksTransformedAEP | IndentationMarksTransformedAEP | NodesMissingContentTransformedAEP | InvalidProsemirrorDocumentErrorAEP | DocumentProcessingErrorAEP | InvalidMediaContentTransformedAEP | HeadingAnchorLinkButtonAEP | CollabStepsTrackerPayloadAEP | BlocksDragInitAEP | CodeBlockWordWrapToggleAEP | RequestToEditAEP | SingleColumLayoutDetectedAEP | CopyLinkToAnchorButtonAEP | DockedPrimaryToolbarRenderedAEP | RovoMoreOptionsClickedAEP | ChangeToneMenuItemClickedAEP | TranslateMenuItemClickedAEP;
201
211
  export {};
@@ -25,4 +25,7 @@ export type ViewDefineButtonEventAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJECT.BUTTO
25
25
  selectionCharCount: number;
26
26
  selectionWordCount: number;
27
27
  }, undefined>;
28
- export type ViewEventPayload = ViewAIRovoButtonEventAEP | ViewAIHeroPromptButtonEventAEP | ViewDefineButtonEventAEP | ViewInlineCommentsButtonEventAEP;
28
+ export type ViewSelectionToolbarEventAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJECT.TOOLBAR, ACTION_SUBJECT_ID.SELECTION_TOOLBAR, {
29
+ mode: MODE.EDITOR;
30
+ }, undefined>;
31
+ export type ViewEventPayload = ViewAIRovoButtonEventAEP | ViewAIHeroPromptButtonEventAEP | ViewDefineButtonEventAEP | ViewInlineCommentsButtonEventAEP | ViewSelectionToolbarEventAEP;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import type { ToolbarUIContextType } from '@atlaskit/editor-toolbar';
3
3
  import type { ExtractInjectionAPI, NextEditorPlugin } from '../types';
4
- type Props = Pick<ToolbarUIContextType, 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement'> & {
4
+ type Props = Pick<ToolbarUIContextType, 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement' | 'fireAnalyticsEvent'> & {
5
5
  api: ExtractInjectionAPI<NextEditorPlugin<any, any>> | undefined;
6
6
  children: React.ReactNode;
7
7
  isDisabled?: boolean;
8
8
  };
9
- export declare const EditorToolbarUIProvider: ({ children, api, isDisabled, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, }: Props) => React.JSX.Element;
9
+ export declare const EditorToolbarUIProvider: ({ children, api, isDisabled, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, fireAnalyticsEvent, }: Props) => React.JSX.Element;
10
10
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "109.5.0",
3
+ "version": "109.6.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/"
@@ -144,7 +144,7 @@
144
144
  "@atlaskit/editor-prosemirror": "7.0.0",
145
145
  "@atlaskit/editor-shared-styles": "^3.6.0",
146
146
  "@atlaskit/editor-tables": "^2.9.0",
147
- "@atlaskit/editor-toolbar": "^0.8.0",
147
+ "@atlaskit/editor-toolbar": "^0.9.0",
148
148
  "@atlaskit/editor-toolbar-model": "^0.2.0",
149
149
  "@atlaskit/emoji": "^69.5.0",
150
150
  "@atlaskit/icon": "^28.1.0",
@@ -177,7 +177,7 @@
177
177
  "@atlaskit/task-decision": "^19.2.0",
178
178
  "@atlaskit/textfield": "^8.0.0",
179
179
  "@atlaskit/theme": "^21.0.0",
180
- "@atlaskit/tmp-editor-statsig": "^12.18.0",
180
+ "@atlaskit/tmp-editor-statsig": "^12.21.0",
181
181
  "@atlaskit/tokens": "^6.3.0",
182
182
  "@atlaskit/tooltip": "^20.4.0",
183
183
  "@atlaskit/width-detector": "^5.0.0",