@atlaskit/editor-common 116.29.0 → 116.30.1

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 (38) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/collab/index.js +2 -2
  3. package/dist/cjs/messages/syncBlock.js +5 -0
  4. package/dist/cjs/monitoring/error.js +1 -1
  5. package/dist/cjs/quick-insert/use-icon-themed.js +2 -2
  6. package/dist/cjs/styles/index.js +6 -0
  7. package/dist/cjs/styles/shared/drag-handle.js +3 -2
  8. package/dist/cjs/ui/DropList/index.js +1 -1
  9. package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +2 -2
  10. package/dist/cjs/ui-color/ColorPalette/index.js +2 -2
  11. package/dist/cjs/vanilla-tooltip/index.js +0 -10
  12. package/dist/es2019/collab/index.js +1 -1
  13. package/dist/es2019/messages/syncBlock.js +5 -0
  14. package/dist/es2019/monitoring/error.js +1 -1
  15. package/dist/es2019/quick-insert/use-icon-themed.js +1 -1
  16. package/dist/es2019/styles/index.js +1 -1
  17. package/dist/es2019/styles/shared/drag-handle.js +2 -1
  18. package/dist/es2019/ui/DropList/index.js +1 -1
  19. package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
  20. package/dist/es2019/ui-color/ColorPalette/index.js +1 -1
  21. package/dist/es2019/vanilla-tooltip/index.js +1 -10
  22. package/dist/esm/collab/index.js +1 -1
  23. package/dist/esm/messages/syncBlock.js +5 -0
  24. package/dist/esm/monitoring/error.js +1 -1
  25. package/dist/esm/quick-insert/use-icon-themed.js +1 -1
  26. package/dist/esm/styles/index.js +1 -1
  27. package/dist/esm/styles/shared/drag-handle.js +2 -1
  28. package/dist/esm/ui/DropList/index.js +1 -1
  29. package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
  30. package/dist/esm/ui-color/ColorPalette/index.js +1 -1
  31. package/dist/esm/vanilla-tooltip/index.js +0 -10
  32. package/dist/types/guideline/types.d.ts +1 -1
  33. package/dist/types/messages/syncBlock.d.ts +5 -0
  34. package/dist/types/styles/index.d.ts +1 -1
  35. package/dist/types/styles/shared/drag-handle.d.ts +1 -0
  36. package/dist/types/styles/shared/headings.d.ts +1 -1
  37. package/dist/types/vanilla-tooltip/index.d.ts +1 -7
  38. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 116.30.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c1e8426f607ad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c1e8426f607ad) -
8
+ [EDITOR-8060] Behind the `platform_editor_sync_block_activation` experiment, the synced block
9
+ floating toolbar copy button is now the primary action: it shows a visible "Copy to sync" label
10
+ and is moved to the first position, ahead of the informational synced-location dropdown. Existing
11
+ behaviour is unchanged for users outside the experiment.
12
+ - Updated dependencies
13
+
14
+ ## 116.30.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`607477c5d6aae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/607477c5d6aae) -
19
+ EDITOR-7032 Remove the implementation of using VanillaTooltip for emoji tooltips
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+
3
25
  ## 116.29.0
4
26
 
5
27
  ### Minor Changes
@@ -8,7 +8,7 @@ exports.tintDirtyTransaction = exports.telepointerStyle = exports.isDirtyTransac
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
- var _tokens = require("@atlaskit/tokens");
11
+ var _getGlobalTheme2 = require("@atlaskit/tokens/get-global-theme");
12
12
  var _templateObject;
13
13
  /* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
14
14
  /* eslint-disable @atlaskit/ui-styling-standard/use-compiled -- Pre-existing lint debt surfaced by this mechanical type-import-only PR. */
@@ -130,7 +130,7 @@ var DisconnectReason = exports.DisconnectReason = /*#__PURE__*/function (Disconn
130
130
  //Intersection: NCS custom step type config in adf-schema
131
131
  //Unions
132
132
  var telepointerColorStyle = function telepointerColorStyle(backgroundColor, textColor, index) {
133
- var _getGlobalTheme = (0, _tokens.getGlobalTheme)(),
133
+ var _getGlobalTheme = (0, _getGlobalTheme2.getGlobalTheme)(),
134
134
  colorMode = _getGlobalTheme.colorMode;
135
135
  var backgroundStyle = colorMode === 'dark' ? "linear-gradient(to bottom, ".concat(backgroundColor, " -800000%, transparent 200000%)") : "linear-gradient(to bottom, ".concat(backgroundColor, " -850000%, transparent 150000%)");
136
136
  return "\n &.color-".concat(index, " {\n background: ").concat(backgroundStyle, ";\n &::after {\n background-color: ").concat(backgroundColor, ";\n color: ").concat(textColor, ";\n border-color: ").concat(backgroundColor, ";\n }\n }\n ");
@@ -16,6 +16,11 @@ var syncBlockMessages = exports.syncBlockMessages = (0, _reactIntl.defineMessage
16
16
  defaultMessage: 'Copy synced block',
17
17
  description: 'Tooltip for the button to copy synced block element '
18
18
  },
19
+ copyToSyncLabel: {
20
+ id: 'fabric.editor.copyToSyncLabel',
21
+ defaultMessage: 'Copy to sync',
22
+ description: 'Button label for the primary action that copies a synced block reference to your clipboard so it can be reused (synced) somewhere else'
23
+ },
19
24
  editSourceLabel: {
20
25
  id: 'fabric.editor.editSourceLabel',
21
26
  defaultMessage: 'Edit source',
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
28
28
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
29
29
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
30
30
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
31
- var packageVersion = "116.28.1";
31
+ var packageVersion = "116.30.0";
32
32
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
33
33
  // Remove URL as it has UGC
34
34
  // Ignored via go/ees007
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.useIconThemed = void 0;
7
- var _tokens = require("@atlaskit/tokens");
7
+ var _useThemeObserver2 = require("@atlaskit/tokens/use-theme-observer");
8
8
  /**
9
9
  * Warning -- if additional color modes beyond light and dark are added in future -- this will have unexpected behaviour
10
10
  */
11
11
  var useIconThemed = exports.useIconThemed = function useIconThemed() {
12
- var _useThemeObserver = (0, _tokens.useThemeObserver)(),
12
+ var _useThemeObserver = (0, _useThemeObserver2.useThemeObserver)(),
13
13
  colorMode = _useThemeObserver.colorMode;
14
14
  return {
15
15
  iconThemed: function iconThemed(colors) {
@@ -123,6 +123,12 @@ Object.defineProperty(exports, "MediaSharedClassNames", {
123
123
  return _media.ClassNames;
124
124
  }
125
125
  });
126
+ Object.defineProperty(exports, "NESTED_DROPDOWN_MENU", {
127
+ enumerable: true,
128
+ get: function get() {
129
+ return _dragHandle.NESTED_DROPDOWN_MENU;
130
+ }
131
+ });
126
132
  Object.defineProperty(exports, "SmartCardSharedCssClassName", {
127
133
  enumerable: true,
128
134
  get: function get() {
@@ -3,7 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.DRAG_HANDLE_WIDTH = exports.DRAG_HANDLE_SELECTOR = void 0;
6
+ exports.NESTED_DROPDOWN_MENU = exports.DRAG_HANDLE_WIDTH = exports.DRAG_HANDLE_SELECTOR = void 0;
7
7
  var DRAG_HANDLE_SELECTOR = exports.DRAG_HANDLE_SELECTOR = '[data-editor-block-ctrl-drag-handle]';
8
8
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
9
- var DRAG_HANDLE_WIDTH = exports.DRAG_HANDLE_WIDTH = 12;
9
+ var DRAG_HANDLE_WIDTH = exports.DRAG_HANDLE_WIDTH = 12;
10
+ var NESTED_DROPDOWN_MENU = exports.NESTED_DROPDOWN_MENU = '[data-toolbar-nested-dropdown-menu]';
@@ -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 = "116.28.1";
27
+ var packageVersion = "116.30.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.highlightColorPalette = exports.REMOVE_HIGHLIGHT_COLOR = exports.EditorDiagonalLineIcon = void 0;
8
8
  var _react = require("@emotion/react");
9
9
  var _adfSchema = require("@atlaskit/adf-schema");
10
- var _tokens = require("@atlaskit/tokens");
10
+ var _useThemeObserver2 = require("@atlaskit/tokens/use-theme-observer");
11
11
  var _getColorMessage = _interopRequireDefault(require("./getColorMessage"));
12
12
  var _mapPaletteColor = require("./mapPaletteColor");
13
13
  var _paletteMessages = _interopRequireDefault(require("./paletteMessages"));
@@ -47,7 +47,7 @@ var DiagonalLineGlyph = function DiagonalLineGlyph(props) {
47
47
 
48
48
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
49
49
  var EditorDiagonalLineIcon = exports.EditorDiagonalLineIcon = function EditorDiagonalLineIcon() {
50
- var _useThemeObserver = (0, _tokens.useThemeObserver)(),
50
+ var _useThemeObserver = (0, _useThemeObserver2.useThemeObserver)(),
51
51
  colorMode = _useThemeObserver.colorMode;
52
52
  var primaryColor = colorMode === 'dark' ? "var(--ds-background-accent-gray-bolder, #6B6E76)" : "var(--ds-background-accent-gray-subtle, #8C8F97)";
53
53
  return (
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _react2 = require("@emotion/react");
10
10
  var _chromatism = _interopRequireDefault(require("chromatism"));
11
11
  var _reactIntl = require("react-intl");
12
- var _tokens = require("@atlaskit/tokens");
12
+ var _useThemeObserver2 = require("@atlaskit/tokens/use-theme-observer");
13
13
  var _Color = _interopRequireDefault(require("./Color"));
14
14
  var _getColorMessage = _interopRequireDefault(require("./Palettes/getColorMessage"));
15
15
  var _styles = require("./styles");
@@ -59,7 +59,7 @@ var ColorPalette = function ColorPalette(props) {
59
59
  var palette = paletteOptions.palette,
60
60
  hexToPaletteColor = paletteOptions.hexToPaletteColor,
61
61
  paletteColorTooltipMessages = paletteOptions.paletteColorTooltipMessages;
62
- var _useThemeObserver = (0, _tokens.useThemeObserver)(),
62
+ var _useThemeObserver = (0, _useThemeObserver2.useThemeObserver)(),
63
63
  tokenTheme = _useThemeObserver.colorMode;
64
64
  var useIconToken = !!hexToPaletteColor;
65
65
  var colorsPerRow = _react.default.useMemo(function () {
@@ -43,13 +43,6 @@ var VanillaTooltip = exports.VanillaTooltip = /*#__PURE__*/function () {
43
43
  className) {
44
44
  var _this = this;
45
45
  var timeout = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 300;
46
- var
47
- /**
48
- * Optional inline styles to apply directly to the tooltip element.
49
- * Useful when the tooltip is rendered in the browser's top layer (via Popover API),
50
- * where ancestor CSS selectors cannot reach it.
51
- */
52
- styles = arguments.length > 5 ? arguments[5] : undefined;
53
46
  (0, _classCallCheck2.default)(this, VanillaTooltip);
54
47
  (0, _defineProperty2.default)(this, "listeners", []);
55
48
  (0, _defineProperty2.default)(this, "shouldHidePopover", false);
@@ -62,9 +55,6 @@ var VanillaTooltip = exports.VanillaTooltip = /*#__PURE__*/function () {
62
55
  tooltip.className = className;
63
56
  tooltip.id = id;
64
57
  tooltip.textContent = content;
65
- if (styles) {
66
- Object.assign(tooltip.style, styles);
67
- }
68
58
  this.tooltip = tooltip;
69
59
 
70
60
  // Button preparation
@@ -4,7 +4,7 @@
4
4
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
5
  import { css } from '@emotion/react';
6
6
  import { participantColors } from '@atlaskit/editor-shared-styles';
7
- import { getGlobalTheme } from '@atlaskit/tokens';
7
+ import { getGlobalTheme } from '@atlaskit/tokens/get-global-theme';
8
8
 
9
9
  // Format of the payload returned by the callback function passed to the collab provider
10
10
  // that gets called when syncing with the back-end service fails.
@@ -10,6 +10,11 @@ export const syncBlockMessages = defineMessages({
10
10
  defaultMessage: 'Copy synced block',
11
11
  description: 'Tooltip for the button to copy synced block element '
12
12
  },
13
+ copyToSyncLabel: {
14
+ id: 'fabric.editor.copyToSyncLabel',
15
+ defaultMessage: 'Copy to sync',
16
+ description: 'Button label for the primary action that copies a synced block reference to your clipboard so it can be reused (synced) somewhere else'
17
+ },
13
18
  editSourceLabel: {
14
19
  id: 'fabric.editor.editSourceLabel',
15
20
  defaultMessage: 'Edit source',
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
14
14
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
15
15
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
16
16
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
17
- const packageVersion = "116.28.1";
17
+ const packageVersion = "116.30.0";
18
18
  const sanitiseSentryEvents = (data, _hint) => {
19
19
  // Remove URL as it has UGC
20
20
  // Ignored via go/ees007
@@ -1,4 +1,4 @@
1
- import { useThemeObserver } from '@atlaskit/tokens';
1
+ import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
2
2
  /**
3
3
  * Warning -- if additional color modes beyond light and dark are added in future -- this will have unexpected behaviour
4
4
  */
@@ -27,5 +27,5 @@ export { EXPAND_CONTAINER_PADDING } from '../ui/Expand/sharedStyles';
27
27
  export { ClassNames as MediaSharedClassNames } from './shared/media';
28
28
  export { BreakoutCssClassName } from './shared/breakout';
29
29
  export { BODIED_EXT_MBE_MARGIN_TOP } from './shared/extension';
30
- export { DRAG_HANDLE_SELECTOR, DRAG_HANDLE_WIDTH } from './shared/drag-handle';
30
+ export { DRAG_HANDLE_SELECTOR, DRAG_HANDLE_WIDTH, NESTED_DROPDOWN_MENU } from './shared/drag-handle';
31
31
  export { ANCHOR_VARIABLE_NAME, isCSSAnchorSupported, isCSSAttrAnchorSupported, nativeAnchorStyles } from './shared/native-anchor';
@@ -1,3 +1,4 @@
1
1
  export const DRAG_HANDLE_SELECTOR = '[data-editor-block-ctrl-drag-handle]';
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export const DRAG_HANDLE_WIDTH = 12;
3
+ export const DRAG_HANDLE_WIDTH = 12;
4
+ export const NESTED_DROPDOWN_MENU = '[data-toolbar-nested-dropdown-menu]';
@@ -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 = "116.28.1";
17
+ const packageVersion = "116.30.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -6,7 +6,7 @@
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
7
7
  import { jsx } from '@emotion/react';
8
8
  import { backgroundColorPalette } from '@atlaskit/adf-schema';
9
- import { useThemeObserver } from '@atlaskit/tokens';
9
+ import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
10
10
  import getColorMessage from './getColorMessage';
11
11
  import { mapPaletteColor } from './mapPaletteColor';
12
12
  import paletteMessages from './paletteMessages';
@@ -8,7 +8,7 @@ import React from 'react';
8
8
  import { jsx } from '@emotion/react';
9
9
  import chromatism from 'chromatism';
10
10
  import { injectIntl } from 'react-intl';
11
- import { useThemeObserver } from '@atlaskit/tokens';
11
+ import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
12
12
  import Color from './Color';
13
13
  import getColorMessage from './Palettes/getColorMessage';
14
14
  import { colorPaletteWrapper } from './styles';
@@ -29,13 +29,7 @@ export class VanillaTooltip {
29
29
  /**
30
30
  * Class Name – used for styling.
31
31
  */
32
- className, timeout = 300,
33
- /**
34
- * Optional inline styles to apply directly to the tooltip element.
35
- * Useful when the tooltip is rendered in the browser's top layer (via Popover API),
36
- * where ancestor CSS selectors cannot reach it.
37
- */
38
- styles) {
32
+ className, timeout = 300) {
39
33
  _defineProperty(this, "listeners", []);
40
34
  _defineProperty(this, "shouldHidePopover", false);
41
35
  _defineProperty(this, "isDisplayed", false);
@@ -47,9 +41,6 @@ export class VanillaTooltip {
47
41
  tooltip.className = className;
48
42
  tooltip.id = id;
49
43
  tooltip.textContent = content;
50
- if (styles) {
51
- Object.assign(tooltip.style, styles);
52
- }
53
44
  this.tooltip = tooltip;
54
45
 
55
46
  // Button preparation
@@ -6,7 +6,7 @@ var _templateObject;
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { css } from '@emotion/react';
8
8
  import { participantColors } from '@atlaskit/editor-shared-styles';
9
- import { getGlobalTheme } from '@atlaskit/tokens';
9
+ import { getGlobalTheme } from '@atlaskit/tokens/get-global-theme';
10
10
 
11
11
  // Format of the payload returned by the callback function passed to the collab provider
12
12
  // that gets called when syncing with the back-end service fails.
@@ -10,6 +10,11 @@ export var syncBlockMessages = defineMessages({
10
10
  defaultMessage: 'Copy synced block',
11
11
  description: 'Tooltip for the button to copy synced block element '
12
12
  },
13
+ copyToSyncLabel: {
14
+ id: 'fabric.editor.copyToSyncLabel',
15
+ defaultMessage: 'Copy to sync',
16
+ description: 'Button label for the primary action that copies a synced block reference to your clipboard so it can be reused (synced) somewhere else'
17
+ },
13
18
  editSourceLabel: {
14
19
  id: 'fabric.editor.editSourceLabel',
15
20
  defaultMessage: 'Edit source',
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
20
20
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
21
21
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
22
22
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
23
- var packageVersion = "116.28.1";
23
+ var packageVersion = "116.30.0";
24
24
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
25
25
  // Remove URL as it has UGC
26
26
  // Ignored via go/ees007
@@ -1,4 +1,4 @@
1
- import { useThemeObserver } from '@atlaskit/tokens';
1
+ import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
2
2
  /**
3
3
  * Warning -- if additional color modes beyond light and dark are added in future -- this will have unexpected behaviour
4
4
  */
@@ -27,5 +27,5 @@ export { EXPAND_CONTAINER_PADDING } from '../ui/Expand/sharedStyles';
27
27
  export { ClassNames as MediaSharedClassNames } from './shared/media';
28
28
  export { BreakoutCssClassName } from './shared/breakout';
29
29
  export { BODIED_EXT_MBE_MARGIN_TOP } from './shared/extension';
30
- export { DRAG_HANDLE_SELECTOR, DRAG_HANDLE_WIDTH } from './shared/drag-handle';
30
+ export { DRAG_HANDLE_SELECTOR, DRAG_HANDLE_WIDTH, NESTED_DROPDOWN_MENU } from './shared/drag-handle';
31
31
  export { ANCHOR_VARIABLE_NAME, isCSSAnchorSupported, isCSSAttrAnchorSupported, nativeAnchorStyles } from './shared/native-anchor';
@@ -1,3 +1,4 @@
1
1
  export var DRAG_HANDLE_SELECTOR = '[data-editor-block-ctrl-drag-handle]';
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var DRAG_HANDLE_WIDTH = 12;
3
+ export var DRAG_HANDLE_WIDTH = 12;
4
+ export var NESTED_DROPDOWN_MENU = '[data-toolbar-nested-dropdown-menu]';
@@ -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 = "116.28.1";
24
+ var packageVersion = "116.30.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -6,7 +6,7 @@
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
7
7
  import { jsx } from '@emotion/react';
8
8
  import { backgroundColorPalette } from '@atlaskit/adf-schema';
9
- import { useThemeObserver } from '@atlaskit/tokens';
9
+ import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
10
10
  import getColorMessage from './getColorMessage';
11
11
  import { mapPaletteColor } from './mapPaletteColor';
12
12
  import paletteMessages from './paletteMessages';
@@ -8,7 +8,7 @@ import React from 'react';
8
8
  import { jsx } from '@emotion/react';
9
9
  import chromatism from 'chromatism';
10
10
  import { injectIntl } from 'react-intl';
11
- import { useThemeObserver } from '@atlaskit/tokens';
11
+ import { useThemeObserver } from '@atlaskit/tokens/use-theme-observer';
12
12
  import Color from './Color';
13
13
  import getColorMessage from './Palettes/getColorMessage';
14
14
  import { colorPaletteWrapper } from './styles';
@@ -36,13 +36,6 @@ export var VanillaTooltip = /*#__PURE__*/function () {
36
36
  className) {
37
37
  var _this = this;
38
38
  var timeout = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 300;
39
- var
40
- /**
41
- * Optional inline styles to apply directly to the tooltip element.
42
- * Useful when the tooltip is rendered in the browser's top layer (via Popover API),
43
- * where ancestor CSS selectors cannot reach it.
44
- */
45
- styles = arguments.length > 5 ? arguments[5] : undefined;
46
39
  _classCallCheck(this, VanillaTooltip);
47
40
  _defineProperty(this, "listeners", []);
48
41
  _defineProperty(this, "shouldHidePopover", false);
@@ -55,9 +48,6 @@ export var VanillaTooltip = /*#__PURE__*/function () {
55
48
  tooltip.className = className;
56
49
  tooltip.id = id;
57
50
  tooltip.textContent = content;
58
- if (styles) {
59
- Object.assign(tooltip.style, styles);
60
- }
61
51
  this.tooltip = tooltip;
62
52
 
63
53
  // Button preparation
@@ -1,6 +1,6 @@
1
1
  import type { NodeWithPos } from '@atlaskit/editor-prosemirror/utils';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
- import type { CSSToken } from '@atlaskit/tokens';
3
+ import type { CSSToken } from '@atlaskit/tokens/token-names';
4
4
  export type WidthTypes = 'percentage' | 'pixel';
5
5
  export type LengthGuide = {
6
6
  isFullWidth?: boolean;
@@ -54,6 +54,11 @@ export declare const syncBlockMessages: {
54
54
  description: string;
55
55
  id: string;
56
56
  };
57
+ copyToSyncLabel: {
58
+ defaultMessage: string;
59
+ description: string;
60
+ id: string;
61
+ };
57
62
  createSyncBlockLabel: {
58
63
  defaultMessage: string;
59
64
  description: string;
@@ -24,5 +24,5 @@ export { EXPAND_CONTAINER_PADDING } from '../ui/Expand/sharedStyles';
24
24
  export { ClassNames as MediaSharedClassNames } from './shared/media';
25
25
  export { BreakoutCssClassName } from './shared/breakout';
26
26
  export { BODIED_EXT_MBE_MARGIN_TOP } from './shared/extension';
27
- export { DRAG_HANDLE_SELECTOR, DRAG_HANDLE_WIDTH } from './shared/drag-handle';
27
+ export { DRAG_HANDLE_SELECTOR, DRAG_HANDLE_WIDTH, NESTED_DROPDOWN_MENU, } from './shared/drag-handle';
28
28
  export { ANCHOR_VARIABLE_NAME, isCSSAnchorSupported, isCSSAttrAnchorSupported, nativeAnchorStyles, } from './shared/native-anchor';
@@ -1,2 +1,3 @@
1
1
  export declare const DRAG_HANDLE_SELECTOR = "[data-editor-block-ctrl-drag-handle]";
2
2
  export declare const DRAG_HANDLE_WIDTH = 12;
3
+ export declare const NESTED_DROPDOWN_MENU = "[data-toolbar-nested-dropdown-menu]";
@@ -1,3 +1,3 @@
1
1
  import type { SerializedStyles } from '@emotion/react';
2
- import type { ThemeState } from '@atlaskit/tokens';
2
+ import type { ThemeState } from '@atlaskit/tokens/theme-config';
3
3
  export declare const headingsSharedStyles: (_typographyTheme?: ThemeState["typography"]) => SerializedStyles;
@@ -21,13 +21,7 @@ export declare class VanillaTooltip {
21
21
  /**
22
22
  * Class Name – used for styling.
23
23
  */
24
- className: string, timeout?: number,
25
- /**
26
- * Optional inline styles to apply directly to the tooltip element.
27
- * Useful when the tooltip is rendered in the browser's top layer (via Popover API),
28
- * where ancestor CSS selectors cannot reach it.
29
- */
30
- styles?: Record<string, string>);
24
+ className: string, timeout?: number);
31
25
  private createPopperInstance;
32
26
  destroy(): void;
33
27
  private hide;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "116.29.0",
3
+ "version": "116.30.1",
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/"
@@ -49,7 +49,7 @@
49
49
  "@atlaskit/editor-tables": "^3.0.0",
50
50
  "@atlaskit/editor-toolbar": "^2.2.0",
51
51
  "@atlaskit/editor-toolbar-model": "^1.1.0",
52
- "@atlaskit/emoji": "^71.8.0",
52
+ "@atlaskit/emoji": "^71.9.0",
53
53
  "@atlaskit/icon": "^37.0.0",
54
54
  "@atlaskit/link": "^4.3.0",
55
55
  "@atlaskit/link-datasource": "^6.1.0",
@@ -80,7 +80,7 @@
80
80
  "@atlaskit/task-decision": "^21.4.0",
81
81
  "@atlaskit/teams-app-config": "^2.1.0",
82
82
  "@atlaskit/textfield": "^9.1.0",
83
- "@atlaskit/tmp-editor-statsig": "^124.8.0",
83
+ "@atlaskit/tmp-editor-statsig": "^125.0.0",
84
84
  "@atlaskit/tokens": "^15.8.0",
85
85
  "@atlaskit/tooltip": "^23.1.0",
86
86
  "@atlaskit/width-detector": "^6.2.0",