@atlaskit/editor-common 78.20.2 → 78.21.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 (30) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/extensibility/Extension/Extension/index.js +9 -3
  3. package/dist/cjs/extensibility/Extension/Extension/styles.js +12 -1
  4. package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +3 -3
  5. package/dist/cjs/extensibility/Extension/styles.js +2 -0
  6. package/dist/cjs/extensibility/MultiBodiedExtension/index.js +1 -1
  7. package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +4 -2
  8. package/dist/cjs/monitoring/error.js +1 -1
  9. package/dist/cjs/ui/DropList/index.js +1 -1
  10. package/dist/es2019/extensibility/Extension/Extension/index.js +10 -4
  11. package/dist/es2019/extensibility/Extension/Extension/styles.js +11 -0
  12. package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +3 -3
  13. package/dist/es2019/extensibility/Extension/styles.js +1 -0
  14. package/dist/es2019/extensibility/MultiBodiedExtension/index.js +1 -1
  15. package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +4 -2
  16. package/dist/es2019/monitoring/error.js +1 -1
  17. package/dist/es2019/ui/DropList/index.js +1 -1
  18. package/dist/esm/extensibility/Extension/Extension/index.js +10 -4
  19. package/dist/esm/extensibility/Extension/Extension/styles.js +11 -0
  20. package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +3 -3
  21. package/dist/esm/extensibility/Extension/styles.js +1 -0
  22. package/dist/esm/extensibility/MultiBodiedExtension/index.js +1 -1
  23. package/dist/esm/extensibility/MultiBodiedExtension/styles.js +4 -2
  24. package/dist/esm/monitoring/error.js +1 -1
  25. package/dist/esm/ui/DropList/index.js +1 -1
  26. package/dist/types/extensibility/Extension/Extension/styles.d.ts +1 -0
  27. package/dist/types/types/annotation/index.d.ts +5 -1
  28. package/dist/types-ts4.5/extensibility/Extension/Extension/styles.d.ts +1 -0
  29. package/dist/types-ts4.5/types/annotation/index.d.ts +5 -1
  30. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 78.21.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#84177](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84177) [`97551a0d5b44`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/97551a0d5b44) - [ux] Update block macros to align with editor elements
8
+
9
+ ## 78.21.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#84616](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/84616) [`57b0c76cdce6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/57b0c76cdce6) - Adding support for draft ranges in selection component for renderer annotation provider
14
+
3
15
  ## 78.20.2
4
16
 
5
17
  ### Patch Changes
@@ -62,10 +62,15 @@ function ExtensionWithPluginState(props) {
62
62
  var classNames = (0, _classnames2.default)('extension-container', 'block', shadowClassNames, (0, _defineProperty2.default)({
63
63
  'with-overlay': !hasBody && !showMacroInteractionDesignUpdates,
64
64
  'with-border': showMacroInteractionDesignUpdates,
65
+ 'with-margin-styles': showMacroInteractionDesignUpdates,
65
66
  'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered,
66
67
  'with-danger-overlay': showMacroInteractionDesignUpdates,
67
68
  'without-frame': removeBorder
68
69
  }, _styles2.widerLayoutClassName, shouldBreakout));
70
+ var overflowClassNames = (0, _classnames2.default)('extension-overflow-wrapper', {
71
+ 'with-body': hasBody,
72
+ 'with-margin-styles': showMacroInteractionDesignUpdates
73
+ });
69
74
  var headerClassNames = (0, _classnames2.default)({
70
75
  'with-children': hasChildren,
71
76
  'without-frame': removeBorder
@@ -116,10 +121,11 @@ function ExtensionWithPluginState(props) {
116
121
  return handleMouseEvent(false);
117
122
  }
118
123
  }, (0, _react2.jsx)("div", {
119
- className: "extension-overflow-wrapper ".concat(hasBody ? 'with-body' : '')
124
+ className: overflowClassNames,
125
+ css: _styles2.overflowWrapperStyles
120
126
  }, (0, _react2.jsx)("div", {
121
- css: _styles.overlay,
122
- className: "extension-overlay"
127
+ className: 'extension-overlay',
128
+ css: _styles.overlay
123
129
  }), (0, _react2.jsx)("div", {
124
130
  css: _styles2.header,
125
131
  contentEditable: false,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.wrapperStyle = exports.widerLayoutClassName = exports.header = exports.contentWrapper = exports.content = void 0;
6
+ exports.wrapperStyle = exports.widerLayoutClassName = exports.overflowWrapperStyles = exports.header = exports.contentWrapper = exports.content = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _colors = require("@atlaskit/theme/colors");
9
9
  var _styles = require("../styles");
@@ -22,6 +22,11 @@ var wrapperStyle = exports.wrapperStyle = (0, _react.css)(_styles.wrapperDefault
22
22
  },
23
23
  '&.with-hover-border': {
24
24
  border: "1px solid ".concat("var(--ds-border, ".concat(_colors.N30, ")"))
25
+ },
26
+ '&.with-margin-styles': {
27
+ margin: "0 ".concat("var(--ds-space-negative-150, -12px)"),
28
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
29
+ padding: '0 10px' // need exact number here to match editor elements' width
25
30
  }
26
31
  });
27
32
  var header = exports.header = (0, _react.css)({
@@ -52,4 +57,10 @@ var contentWrapper = exports.contentWrapper = (0, _react.css)({
52
57
  '&.remove-padding': {
53
58
  padding: 0
54
59
  }
60
+ });
61
+ var overflowWrapperStyles = exports.overflowWrapperStyles = (0, _react.css)({
62
+ '&.with-margin-styles': {
63
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
64
+ margin: "0 -10px" // need exact number here to match editor elements' width
65
+ }
55
66
  });
@@ -21,7 +21,8 @@ var labelStyles = (0, _react.css)({
21
21
  top: '-18px',
22
22
  '&.inline-extension': {
23
23
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
24
- top: '-17px'
24
+ top: '-17px',
25
+ marginLeft: "var(--ds-space-150, 12px)"
25
26
  },
26
27
  '&.hovered': {
27
28
  background: "var(--ds-background-accent-gray-subtle-pressed, ".concat(_colors.N300, ")"),
@@ -29,8 +30,7 @@ var labelStyles = (0, _react.css)({
29
30
  opacity: 1
30
31
  },
31
32
  borderRadius: "var(--ds-border-radius, 3px)",
32
- lineHeight: 1,
33
- marginLeft: "var(--ds-space-150, 12px)"
33
+ lineHeight: 1
34
34
  });
35
35
  var textStyles = (0, _react.css)({
36
36
  fontSize: '14px',
@@ -20,6 +20,8 @@ exports.wrapperDefault = exports.styledImage = exports.placeholderFallbackParams
20
20
  var _react = require("@emotion/react");
21
21
  var _colors = require("@atlaskit/theme/colors");
22
22
  var _styles = require("../../styles");
23
+ /* eslint-disable @atlaskit/design-system/no-exported-css */
24
+
23
25
  var wrapperDefault = exports.wrapperDefault = (0, _react.css)({
24
26
  background: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
25
27
  borderRadius: "var(--ds-border-radius, 3px)",
@@ -121,7 +121,7 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
121
121
  mbeWrapperStyles = breakoutStyles;
122
122
  }
123
123
  var wrapperClassNames = (0, _classnames.default)('multiBodiedExtension--wrapper', 'extension-container', 'block', {
124
- 'remove-margin-top': showMacroInteractionDesignUpdates,
124
+ 'with-margin-styles': showMacroInteractionDesignUpdates,
125
125
  'with-border': showMacroInteractionDesignUpdates,
126
126
  'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered,
127
127
  'with-danger-overlay': showMacroInteractionDesignUpdates
@@ -9,8 +9,10 @@ var _colors = require("@atlaskit/theme/colors");
9
9
  var _styles = require("../Extension/styles");
10
10
  // Wrapper the extension title and extensionContainer
11
11
  var mbeExtensionWrapperCSSStyles = exports.mbeExtensionWrapperCSSStyles = (0, _react.css)(_styles.wrapperDefault, {
12
- '&.remove-margin-top': {
13
- marginTop: 0
12
+ '&.with-margin-styles': {
13
+ marginTop: 0,
14
+ marginLeft: "var(--ds-space-negative-150, -12px)",
15
+ marginRight: "var(--ds-space-negative-150, -12px)"
14
16
  },
15
17
  cursor: 'pointer',
16
18
  marginTop: "var(--ds-space-250, 24px)",
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
16
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
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 = "78.20.2";
19
+ var packageVersion = "78.21.1";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // TODO: Sanitise the URL instead of just removing it
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
22
22
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
23
23
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
24
24
  var packageName = "@atlaskit/editor-common";
25
- var packageVersion = "78.20.2";
25
+ var packageVersion = "78.21.1";
26
26
  var halfFocusRing = 1;
27
27
  var dropOffset = '0, 8';
28
28
  var DropList = /*#__PURE__*/function (_Component) {
@@ -10,7 +10,7 @@ import { overflowShadow } from '../../../ui';
10
10
  import { calculateBreakoutStyles } from '../../../utils';
11
11
  import ExtensionLozenge from '../Lozenge';
12
12
  import { overlay } from '../styles';
13
- import { content, contentWrapper, header, widerLayoutClassName, wrapperStyle } from './styles';
13
+ import { content, contentWrapper, header, overflowWrapperStyles, widerLayoutClassName, wrapperStyle } from './styles';
14
14
  function ExtensionWithPluginState(props) {
15
15
  const {
16
16
  node,
@@ -51,11 +51,16 @@ function ExtensionWithPluginState(props) {
51
51
  const classNames = classnames('extension-container', 'block', shadowClassNames, {
52
52
  'with-overlay': !hasBody && !showMacroInteractionDesignUpdates,
53
53
  'with-border': showMacroInteractionDesignUpdates,
54
+ 'with-margin-styles': showMacroInteractionDesignUpdates,
54
55
  'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered,
55
56
  'with-danger-overlay': showMacroInteractionDesignUpdates,
56
57
  'without-frame': removeBorder,
57
58
  [widerLayoutClassName]: shouldBreakout
58
59
  });
60
+ const overflowClassNames = classnames('extension-overflow-wrapper', {
61
+ 'with-body': hasBody,
62
+ 'with-margin-styles': showMacroInteractionDesignUpdates
63
+ });
59
64
  const headerClassNames = classnames({
60
65
  'with-children': hasChildren,
61
66
  'without-frame': removeBorder
@@ -108,10 +113,11 @@ function ExtensionWithPluginState(props) {
108
113
  onMouseEnter: () => handleMouseEvent(true),
109
114
  onMouseLeave: () => handleMouseEvent(false)
110
115
  }, jsx("div", {
111
- className: `extension-overflow-wrapper ${hasBody ? 'with-body' : ''}`
116
+ className: overflowClassNames,
117
+ css: overflowWrapperStyles
112
118
  }, jsx("div", {
113
- css: overlay,
114
- className: "extension-overlay"
119
+ className: 'extension-overlay',
120
+ css: overlay
115
121
  }), jsx("div", {
116
122
  css: header,
117
123
  contentEditable: false,
@@ -16,6 +16,11 @@ export const wrapperStyle = css(wrapperDefault, {
16
16
  },
17
17
  '&.with-hover-border': {
18
18
  border: `1px solid ${`var(--ds-border, ${N30})`}`
19
+ },
20
+ '&.with-margin-styles': {
21
+ margin: `0 ${"var(--ds-space-negative-150, -12px)"}`,
22
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
23
+ padding: '0 10px' // need exact number here to match editor elements' width
19
24
  }
20
25
  });
21
26
  export const header = css({
@@ -46,4 +51,10 @@ export const contentWrapper = css({
46
51
  '&.remove-padding': {
47
52
  padding: 0
48
53
  }
54
+ });
55
+ export const overflowWrapperStyles = css({
56
+ '&.with-margin-styles': {
57
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
58
+ margin: `0 -10px` // need exact number here to match editor elements' width
59
+ }
49
60
  });
@@ -14,7 +14,8 @@ const labelStyles = css({
14
14
  top: '-18px',
15
15
  '&.inline-extension': {
16
16
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
17
- top: '-17px'
17
+ top: '-17px',
18
+ marginLeft: "var(--ds-space-150, 12px)"
18
19
  },
19
20
  '&.hovered': {
20
21
  background: `var(--ds-background-accent-gray-subtle-pressed, ${N300})`,
@@ -22,8 +23,7 @@ const labelStyles = css({
22
23
  opacity: 1
23
24
  },
24
25
  borderRadius: "var(--ds-border-radius, 3px)",
25
- lineHeight: 1,
26
- marginLeft: "var(--ds-space-150, 12px)"
26
+ lineHeight: 1
27
27
  });
28
28
  const textStyles = css({
29
29
  fontSize: '14px',
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @atlaskit/design-system/no-exported-css */
1
2
  import { css } from '@emotion/react';
2
3
  import { N20, N20A, N70 } from '@atlaskit/theme/colors';
3
4
  import { BODIED_EXT_PADDING, EXTENSION_PADDING } from '../../styles';
@@ -109,7 +109,7 @@ const MultiBodiedExtensionWithWidth = ({
109
109
  mbeWrapperStyles = breakoutStyles;
110
110
  }
111
111
  const wrapperClassNames = classnames('multiBodiedExtension--wrapper', 'extension-container', 'block', {
112
- 'remove-margin-top': showMacroInteractionDesignUpdates,
112
+ 'with-margin-styles': showMacroInteractionDesignUpdates,
113
113
  'with-border': showMacroInteractionDesignUpdates,
114
114
  'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered,
115
115
  'with-danger-overlay': showMacroInteractionDesignUpdates
@@ -4,8 +4,10 @@ import { wrapperDefault } from '../Extension/styles';
4
4
 
5
5
  // Wrapper the extension title and extensionContainer
6
6
  export const mbeExtensionWrapperCSSStyles = css(wrapperDefault, {
7
- '&.remove-margin-top': {
8
- marginTop: 0
7
+ '&.with-margin-styles': {
8
+ marginTop: 0,
9
+ marginLeft: "var(--ds-space-negative-150, -12px)",
10
+ marginRight: "var(--ds-space-negative-150, -12px)"
9
11
  },
10
12
  cursor: 'pointer',
11
13
  marginTop: "var(--ds-space-250, 24px)",
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "78.20.2";
3
+ const packageVersion = "78.21.1";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
7
7
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
8
8
  import Layer from '../Layer';
9
9
  const packageName = "@atlaskit/editor-common";
10
- const packageVersion = "78.20.2";
10
+ const packageVersion = "78.21.1";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -15,7 +15,7 @@ import { overflowShadow } from '../../../ui';
15
15
  import { calculateBreakoutStyles } from '../../../utils';
16
16
  import ExtensionLozenge from '../Lozenge';
17
17
  import { overlay } from '../styles';
18
- import { content, contentWrapper, header, widerLayoutClassName, wrapperStyle } from './styles';
18
+ import { content, contentWrapper, header, overflowWrapperStyles, widerLayoutClassName, wrapperStyle } from './styles';
19
19
  function ExtensionWithPluginState(props) {
20
20
  var node = props.node,
21
21
  handleContentDOMRef = props.handleContentDOMRef,
@@ -53,10 +53,15 @@ function ExtensionWithPluginState(props) {
53
53
  var classNames = classnames('extension-container', 'block', shadowClassNames, _defineProperty({
54
54
  'with-overlay': !hasBody && !showMacroInteractionDesignUpdates,
55
55
  'with-border': showMacroInteractionDesignUpdates,
56
+ 'with-margin-styles': showMacroInteractionDesignUpdates,
56
57
  'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered,
57
58
  'with-danger-overlay': showMacroInteractionDesignUpdates,
58
59
  'without-frame': removeBorder
59
60
  }, widerLayoutClassName, shouldBreakout));
61
+ var overflowClassNames = classnames('extension-overflow-wrapper', {
62
+ 'with-body': hasBody,
63
+ 'with-margin-styles': showMacroInteractionDesignUpdates
64
+ });
60
65
  var headerClassNames = classnames({
61
66
  'with-children': hasChildren,
62
67
  'without-frame': removeBorder
@@ -107,10 +112,11 @@ function ExtensionWithPluginState(props) {
107
112
  return handleMouseEvent(false);
108
113
  }
109
114
  }, jsx("div", {
110
- className: "extension-overflow-wrapper ".concat(hasBody ? 'with-body' : '')
115
+ className: overflowClassNames,
116
+ css: overflowWrapperStyles
111
117
  }, jsx("div", {
112
- css: overlay,
113
- className: "extension-overlay"
118
+ className: 'extension-overlay',
119
+ css: overlay
114
120
  }), jsx("div", {
115
121
  css: header,
116
122
  contentEditable: false,
@@ -16,6 +16,11 @@ export var wrapperStyle = css(wrapperDefault, {
16
16
  },
17
17
  '&.with-hover-border': {
18
18
  border: "1px solid ".concat("var(--ds-border, ".concat(N30, ")"))
19
+ },
20
+ '&.with-margin-styles': {
21
+ margin: "0 ".concat("var(--ds-space-negative-150, -12px)"),
22
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
23
+ padding: '0 10px' // need exact number here to match editor elements' width
19
24
  }
20
25
  });
21
26
  export var header = css({
@@ -46,4 +51,10 @@ export var contentWrapper = css({
46
51
  '&.remove-padding': {
47
52
  padding: 0
48
53
  }
54
+ });
55
+ export var overflowWrapperStyles = css({
56
+ '&.with-margin-styles': {
57
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
58
+ margin: "0 -10px" // need exact number here to match editor elements' width
59
+ }
49
60
  });
@@ -14,7 +14,8 @@ var labelStyles = css({
14
14
  top: '-18px',
15
15
  '&.inline-extension': {
16
16
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
17
- top: '-17px'
17
+ top: '-17px',
18
+ marginLeft: "var(--ds-space-150, 12px)"
18
19
  },
19
20
  '&.hovered': {
20
21
  background: "var(--ds-background-accent-gray-subtle-pressed, ".concat(N300, ")"),
@@ -22,8 +23,7 @@ var labelStyles = css({
22
23
  opacity: 1
23
24
  },
24
25
  borderRadius: "var(--ds-border-radius, 3px)",
25
- lineHeight: 1,
26
- marginLeft: "var(--ds-space-150, 12px)"
26
+ lineHeight: 1
27
27
  });
28
28
  var textStyles = css({
29
29
  fontSize: '14px',
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @atlaskit/design-system/no-exported-css */
1
2
  import { css } from '@emotion/react';
2
3
  import { N20, N20A, N70 } from '@atlaskit/theme/colors';
3
4
  import { BODIED_EXT_PADDING, EXTENSION_PADDING } from '../../styles';
@@ -112,7 +112,7 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
112
112
  mbeWrapperStyles = breakoutStyles;
113
113
  }
114
114
  var wrapperClassNames = classnames('multiBodiedExtension--wrapper', 'extension-container', 'block', {
115
- 'remove-margin-top': showMacroInteractionDesignUpdates,
115
+ 'with-margin-styles': showMacroInteractionDesignUpdates,
116
116
  'with-border': showMacroInteractionDesignUpdates,
117
117
  'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered,
118
118
  'with-danger-overlay': showMacroInteractionDesignUpdates
@@ -4,8 +4,10 @@ import { wrapperDefault } from '../Extension/styles';
4
4
 
5
5
  // Wrapper the extension title and extensionContainer
6
6
  export var mbeExtensionWrapperCSSStyles = css(wrapperDefault, {
7
- '&.remove-margin-top': {
8
- marginTop: 0
7
+ '&.with-margin-styles': {
8
+ marginTop: 0,
9
+ marginLeft: "var(--ds-space-negative-150, -12px)",
10
+ marginRight: "var(--ds-space-negative-150, -12px)"
9
11
  },
10
12
  cursor: 'pointer',
11
13
  marginTop: "var(--ds-space-250, 24px)",
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "78.20.2";
9
+ var packageVersion = "78.21.1";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
17
17
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
18
18
  import Layer from '../Layer';
19
19
  var packageName = "@atlaskit/editor-common";
20
- var packageVersion = "78.20.2";
20
+ var packageVersion = "78.21.1";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -3,3 +3,4 @@ export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
3
3
  export declare const header: import("@emotion/react").SerializedStyles;
4
4
  export declare const content: import("@emotion/react").SerializedStyles;
5
5
  export declare const contentWrapper: import("@emotion/react").SerializedStyles;
6
+ export declare const overflowWrapperStyles: import("@emotion/react").SerializedStyles;
@@ -23,7 +23,11 @@ export type InlineCommentSelectionComponentProps = {
23
23
  /**
24
24
  * Range selected
25
25
  */
26
- range: Range;
26
+ range: Range | null;
27
+ /**
28
+ * The draft range of a pre-committed annotation
29
+ */
30
+ draftRange?: Range | null;
27
31
  /**
28
32
  * Renderer/Editor DOM element ancestors wrapping the selection.
29
33
  */
@@ -3,3 +3,4 @@ export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
3
3
  export declare const header: import("@emotion/react").SerializedStyles;
4
4
  export declare const content: import("@emotion/react").SerializedStyles;
5
5
  export declare const contentWrapper: import("@emotion/react").SerializedStyles;
6
+ export declare const overflowWrapperStyles: import("@emotion/react").SerializedStyles;
@@ -23,7 +23,11 @@ export type InlineCommentSelectionComponentProps = {
23
23
  /**
24
24
  * Range selected
25
25
  */
26
- range: Range;
26
+ range: Range | null;
27
+ /**
28
+ * The draft range of a pre-committed annotation
29
+ */
30
+ draftRange?: Range | null;
27
31
  /**
28
32
  * Renderer/Editor DOM element ancestors wrapping the selection.
29
33
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "78.20.2",
3
+ "version": "78.21.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/"
@@ -120,7 +120,7 @@
120
120
  "@atlaskit/media-client-react": "^2.0.0",
121
121
  "@atlaskit/media-common": "^11.1.0",
122
122
  "@atlaskit/media-file-preview": "^0.5.0",
123
- "@atlaskit/media-picker": "^66.3.0",
123
+ "@atlaskit/media-picker": "^66.4.0",
124
124
  "@atlaskit/media-ui": "^25.4.0",
125
125
  "@atlaskit/media-viewer": "48.4.2",
126
126
  "@atlaskit/mention": "^23.0.0",
@@ -134,7 +134,7 @@
134
134
  "@atlaskit/spinner": "^16.0.0",
135
135
  "@atlaskit/task-decision": "^17.9.0",
136
136
  "@atlaskit/textfield": "^6.1.0",
137
- "@atlaskit/theme": "^12.6.0",
137
+ "@atlaskit/theme": "^12.7.0",
138
138
  "@atlaskit/tokens": "^1.42.0",
139
139
  "@atlaskit/tooltip": "^18.1.0",
140
140
  "@atlaskit/ufo": "^0.2.0",