@atlaskit/editor-common 78.11.3 → 78.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/extensibility/Extension/Extension/index.js +5 -1
  3. package/dist/cjs/extensibility/Extension/Extension/styles.js +36 -7
  4. package/dist/cjs/extensibility/Extension/InlineExtension/index.js +3 -10
  5. package/dist/cjs/extensibility/ExtensionNodeWrapper.js +2 -19
  6. package/dist/cjs/extensibility/MultiBodiedExtension/index.js +9 -3
  7. package/dist/cjs/extensibility/extensionNodeView.js +1 -2
  8. package/dist/cjs/monitoring/error.js +1 -1
  9. package/dist/cjs/ui/DropList/index.js +1 -1
  10. package/dist/cjs/ui/MultiBodiedExtension/index.js +13 -2
  11. package/dist/es2019/extensibility/Extension/Extension/index.js +5 -1
  12. package/dist/es2019/extensibility/Extension/Extension/styles.js +33 -35
  13. package/dist/es2019/extensibility/Extension/InlineExtension/index.js +3 -7
  14. package/dist/es2019/extensibility/ExtensionNodeWrapper.js +2 -20
  15. package/dist/es2019/extensibility/MultiBodiedExtension/index.js +10 -4
  16. package/dist/es2019/extensibility/extensionNodeView.js +1 -2
  17. package/dist/es2019/monitoring/error.js +1 -1
  18. package/dist/es2019/ui/DropList/index.js +1 -1
  19. package/dist/es2019/ui/MultiBodiedExtension/index.js +12 -1
  20. package/dist/esm/extensibility/Extension/Extension/index.js +5 -1
  21. package/dist/esm/extensibility/Extension/Extension/styles.js +36 -6
  22. package/dist/esm/extensibility/Extension/InlineExtension/index.js +3 -7
  23. package/dist/esm/extensibility/ExtensionNodeWrapper.js +2 -18
  24. package/dist/esm/extensibility/MultiBodiedExtension/index.js +10 -4
  25. package/dist/esm/extensibility/extensionNodeView.js +1 -2
  26. package/dist/esm/monitoring/error.js +1 -1
  27. package/dist/esm/ui/DropList/index.js +1 -1
  28. package/dist/esm/ui/MultiBodiedExtension/index.js +12 -1
  29. package/dist/types/extensibility/ExtensionNodeWrapper.d.ts +1 -5
  30. package/dist/types/ui/MultiBodiedExtension/index.d.ts +1 -0
  31. package/dist/types-ts4.5/extensibility/ExtensionNodeWrapper.d.ts +1 -5
  32. package/dist/types-ts4.5/ui/MultiBodiedExtension/index.d.ts +1 -0
  33. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 78.11.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#78796](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78796) [`76cf1e2f8fd4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/76cf1e2f8fd4) - [ux] Fixes macro backgrounds for macro interaction project
8
+ - [#79721](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/79721) [`8cff83fbb472`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8cff83fbb472) - [ux] Removes changes for inline macros for macro interaction updates
9
+
3
10
  ## 78.11.3
4
11
 
5
12
  ### Patch Changes
@@ -65,6 +65,9 @@ function ExtensionWithPluginState(props) {
65
65
  'with-children': hasChildren,
66
66
  'without-frame': removeBorder
67
67
  });
68
+ var contentClassNames = (0, _classnames2.default)({
69
+ 'remove-padding': showMacroInteractionDesignUpdates
70
+ });
68
71
  var customContainerStyles = {
69
72
  width: '100%'
70
73
  };
@@ -106,7 +109,8 @@ function ExtensionWithPluginState(props) {
106
109
  node: node,
107
110
  showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
108
111
  }), children), hasBody && (0, _react2.jsx)("div", {
109
- css: newContentStyles
112
+ css: newContentStyles,
113
+ className: contentClassNames
110
114
  }, (0, _react2.jsx)("div", {
111
115
  css: _styles2.content,
112
116
  ref: handleContentDOMRef,
@@ -1,17 +1,46 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.wrapperStyle = exports.widerLayoutClassName = exports.header = exports.contentWrapper = exports.content = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
7
  var _react = require("@emotion/react");
10
8
  var _colors = require("@atlaskit/theme/colors");
11
9
  var _styles = require("../styles");
12
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
13
10
  var widerLayoutClassName = exports.widerLayoutClassName = 'wider-layout';
14
- var wrapperStyle = exports.wrapperStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", "\n\n &.without-frame {\n background: transparent;\n }\n cursor: pointer;\n width: 100%;\n\n .extension-overflow-wrapper:not(.with-body) {\n overflow-x: auto;\n }\n"])), _styles.wrapperDefault);
15
- var header = exports.header = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n padding: ", "px ", "px 0px;\n vertical-align: middle;\n\n &.with-children:not(.without-frame) {\n padding: ", " ", "\n ", ";\n }\n &.without-frame {\n padding: 0;\n }\n"])), _styles.padding / 2, _styles.padding / 2, "var(--ds-space-050, 4px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)");
16
- var content = exports.content = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n padding: ", "px;\n background: ", ";\n border: 1px solid ", ";\n border-radius: ", ";\n cursor: initial;\n width: 100%;\n"])), _styles.padding, "var(--ds-surface, white)", "var(--ds-border, ".concat(_colors.N30, ")"), "var(--ds-border-radius, 3px)");
17
- var contentWrapper = exports.contentWrapper = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n padding: 0 ", "px ", "px;\n display: flex;\n justify-content: center;\n"])), _styles.padding, _styles.padding);
11
+ var wrapperStyle = exports.wrapperStyle = (0, _react.css)(_styles.wrapperDefault, {
12
+ '&.without-frame': {
13
+ background: 'transparent'
14
+ },
15
+ cursor: 'pointer',
16
+ width: '100%',
17
+ '.extension-overflow-wrapper:not(.with-body)': {
18
+ overflowX: 'auto'
19
+ }
20
+ });
21
+ var header = exports.header = (0, _react.css)({
22
+ padding: "".concat(_styles.padding / 2, "px ").concat(_styles.padding / 2, "px 0px"),
23
+ verticalAlign: 'middle',
24
+ '&.with-children:not(.without-frame)': {
25
+ padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
26
+ },
27
+ '&.without-frame': {
28
+ padding: 0
29
+ }
30
+ });
31
+ var content = exports.content = (0, _react.css)({
32
+ padding: "".concat(_styles.padding, "px"),
33
+ background: "var(--ds-surface, white)",
34
+ border: "1px solid ".concat("var(--ds-border, ".concat(_colors.N30, ")")),
35
+ borderRadius: "var(--ds-border-radius, 3px)",
36
+ cursor: 'initial',
37
+ width: '100%'
38
+ });
39
+ var contentWrapper = exports.contentWrapper = (0, _react.css)({
40
+ padding: "0 ".concat(_styles.padding, "px ").concat(_styles.padding, "px"),
41
+ display: 'flex',
42
+ justifyContent: 'center',
43
+ '&.remove-padding': {
44
+ padding: 0
45
+ }
46
+ });
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = void 0;
9
- var _react = _interopRequireWildcard(require("react"));
8
+ var _react = _interopRequireDefault(require("react"));
10
9
  var _react2 = require("@emotion/react");
11
10
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
12
11
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
@@ -15,8 +14,6 @@ var _ui = require("../../../ui");
15
14
  var _Lozenge = _interopRequireDefault(require("../Lozenge"));
16
15
  var _styles = require("../styles");
17
16
  var _styles2 = require("./styles");
18
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20
17
  /** @jsx jsx */
21
18
 
22
19
  var InlineExtension = function InlineExtension(props) {
@@ -31,11 +28,7 @@ var InlineExtension = function InlineExtension(props) {
31
28
  var className = hasChildren ? 'with-overlay with-children' : 'with-overlay';
32
29
  var rendererContainerWidth = widthState ? widthState.width - _editorSharedStyles.akEditorGutterPadding * 2 : 0;
33
30
  var extendedInlineExtension = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.inline_extension.extended_lcqdn') || false;
34
- var inlineExtensionInternal = (0, _react2.jsx)(_react.Fragment, null, showMacroInteractionDesignUpdates && (0, _react2.jsx)(_Lozenge.default, {
35
- node: node,
36
- isNodeSelected: isNodeSelected,
37
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
38
- }), (0, _react2.jsx)("div", {
31
+ var inlineExtensionInternal = (0, _react2.jsx)("div", {
39
32
  css: [_styles2.wrapperStyle, extendedInlineExtension && _styles2.inlineWrapperStyels],
40
33
  className: "extension-container inline ".concat(className)
41
34
  }, (0, _react2.jsx)("div", {
@@ -45,7 +38,7 @@ var InlineExtension = function InlineExtension(props) {
45
38
  node: node,
46
39
  isNodeSelected: isNodeSelected,
47
40
  showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
48
- })));
41
+ }));
49
42
  if (extendedInlineExtension) {
50
43
  return (0, _react2.jsx)(_ui.WidthContext.Provider, {
51
44
  value: (0, _ui.createWidthContext)(rendererContainerWidth)
@@ -6,19 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.ExtensionNodeWrapper = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
- var _react2 = require("@emotion/react");
10
- var _classnames = _interopRequireDefault(require("classnames"));
11
9
  var _utils = require("../utils");
12
- /** @jsx jsx */
13
-
14
- var styles = (0, _react2.css)({
15
- '&.inline-extension': {
16
- display: 'inline-block'
17
- }
18
- });
19
10
  /**
20
11
  * If inlineExtension, add zero width space to the end of the nodes and wrap with span;
21
- * Also if showMacroInteractionDesignUpdates is true, then add the inline-block style to account for the lozenge.
22
12
  * else wrap with a div (for multi bodied extensions)
23
13
  *
24
14
  * @param param0
@@ -26,13 +16,6 @@ var styles = (0, _react2.css)({
26
16
  */
27
17
  var ExtensionNodeWrapper = exports.ExtensionNodeWrapper = function ExtensionNodeWrapper(_ref) {
28
18
  var children = _ref.children,
29
- nodeType = _ref.nodeType,
30
- showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates;
31
- var wrapperClassNames = (0, _classnames.default)({
32
- 'inline-extension': nodeType === 'inlineExtension' && showMacroInteractionDesignUpdates
33
- });
34
- return (0, _react2.jsx)("span", {
35
- className: wrapperClassNames,
36
- css: styles
37
- }, children, nodeType === 'inlineExtension' && _utils.ZERO_WIDTH_SPACE);
19
+ nodeType = _ref.nodeType;
20
+ return /*#__PURE__*/_react.default.createElement("span", null, children, nodeType === 'inlineExtension' && _utils.ZERO_WIDTH_SPACE);
38
21
  };
@@ -99,7 +99,7 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
99
99
  var articleRef = _react.default.useCallback(function (node) {
100
100
  return handleContentDOMRef(node);
101
101
  }, [handleContentDOMRef]);
102
- var containerCssExtended = (0, _react2.css)(_MultiBodiedExtension.sharedMultiBodiedExtensionStyles.mbeExtensionContainer, (0, _defineProperty2.default)({}, ".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(".concat(activeChildIndex + 1, ")"), _MultiBodiedExtension.sharedMultiBodiedExtensionStyles.extensionFrameContent));
102
+ var containerCssExtended = (0, _react2.css)(_MultiBodiedExtension.sharedMultiBodiedExtensionStyles.mbeExtensionContainer, (0, _defineProperty2.default)({}, ".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(".concat(activeChildIndex + 1, ")"), (0, _react2.css)(_MultiBodiedExtension.sharedMultiBodiedExtensionStyles.extensionFrameContent, showMacroInteractionDesignUpdates && _MultiBodiedExtension.removeMargins)));
103
103
  var shouldBreakout =
104
104
  // Extension should breakout when the layout is set to 'full-width' or 'wide'.
105
105
  ['full-width', 'wide'].includes(node.attrs.layout) &&
@@ -118,6 +118,12 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
118
118
  var wrapperClassNames = (0, _classnames.default)('multiBodiedExtension--wrapper', 'extension-container', 'block', {
119
119
  'remove-margin-top': showMacroInteractionDesignUpdates
120
120
  });
121
+ var containerClassNames = (0, _classnames.default)('multiBodiedExtension--container', {
122
+ 'remove-padding': showMacroInteractionDesignUpdates
123
+ });
124
+ var navigationClassNames = (0, _classnames.default)('multiBodiedExtension--navigation', {
125
+ 'remove-margins': showMacroInteractionDesignUpdates
126
+ });
121
127
  return (0, _react2.jsx)(_react.Fragment, null, showMacroInteractionDesignUpdates && (0, _react2.jsx)(_Lozenge.default, {
122
128
  isNodeSelected: isNodeSelected,
123
129
  node: node,
@@ -129,12 +135,12 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
129
135
  "data-testid": "multiBodiedExtension--wrapper",
130
136
  style: mbeWrapperStyles
131
137
  }, getWrapperTitleContent(imageData, title, showMacroInteractionDesignUpdates), (0, _react2.jsx)("div", {
132
- className: "multiBodiedExtension--container",
138
+ className: containerClassNames,
133
139
  css: containerCssExtended,
134
140
  "data-testid": "multiBodiedExtension--container",
135
141
  "data-active-child-index": activeChildIndex
136
142
  }, (0, _react2.jsx)("nav", {
137
- className: "multiBodiedExtension-navigation",
143
+ className: navigationClassNames,
138
144
  css: _MultiBodiedExtension.sharedMultiBodiedExtensionStyles.mbeNavigation,
139
145
  "data-testid": "multiBodiedExtension-navigation"
140
146
  }, extensionHandlerResult), (0, _react2.jsx)("article", {
@@ -55,8 +55,7 @@ var ExtensionNode = exports.ExtensionNode = /*#__PURE__*/function (_ReactNodeVie
55
55
  value: function render(props, forwardRef) {
56
56
  var _props$extensionNodeV;
57
57
  return /*#__PURE__*/_react.default.createElement(_ExtensionNodeWrapper.ExtensionNodeWrapper, {
58
- nodeType: this.node.type.name,
59
- showMacroInteractionDesignUpdates: props.showMacroInteractionDesignUpdates
58
+ nodeType: this.node.type.name
60
59
  }, /*#__PURE__*/_react.default.createElement(_Extension.Extension, {
61
60
  editorView: this.view,
62
61
  node: this.node,
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
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.11.3";
19
+ var packageVersion = "78.11.4";
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() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
24
24
  var packageName = "@atlaskit/editor-common";
25
- var packageVersion = "78.11.3";
25
+ var packageVersion = "78.11.4";
26
26
  var halfFocusRing = 1;
27
27
  var dropOffset = '0, 8';
28
28
  var DropList = /*#__PURE__*/function (_Component) {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.sharedMultiBodiedExtensionStyles = void 0;
6
+ exports.sharedMultiBodiedExtensionStyles = exports.removeMargins = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  var _colors = require("@atlaskit/theme/colors");
9
9
  var _styles = require("../../styles");
@@ -17,6 +17,9 @@ var mbeExtensionContainer = (0, _react.css)({
17
17
  right: "var(--ds-space-100, 8px)".concat(" !important")
18
18
  },
19
19
  paddingBottom: "var(--ds-space-100, 8px)",
20
+ '&.remove-padding': {
21
+ paddingBottom: 0
22
+ },
20
23
  position: 'relative',
21
24
  verticalAlign: 'middle',
22
25
  cursor: 'pointer',
@@ -42,7 +45,11 @@ var mbeNavigation = (0, _react.css)({
42
45
  borderBottom: 'none !important',
43
46
  background: "var(--ds-surface, white)",
44
47
  marginLeft: "var(--ds-space-100, 8px)",
45
- marginRight: "var(--ds-space-100, 8px)"
48
+ marginRight: "var(--ds-space-100, 8px)",
49
+ '&.remove-margins': {
50
+ marginLeft: 0,
51
+ marginRight: 0
52
+ }
46
53
  });
47
54
  var extensionFrameContent = (0, _react.css)({
48
55
  padding: "var(--ds-space-100, 8px)".concat(" !important"),
@@ -66,6 +73,10 @@ var extensionFrameContent = (0, _react.css)({
66
73
  marginTop: "var(--ds-space-100, 8px)".concat(" !important")
67
74
  }
68
75
  });
76
+ var removeMargins = exports.removeMargins = (0, _react.css)({
77
+ marginLeft: 0,
78
+ marginRight: 0
79
+ });
69
80
  var sharedMultiBodiedExtensionStyles = exports.sharedMultiBodiedExtensionStyles = {
70
81
  mbeExtensionContainer: mbeExtensionContainer,
71
82
  mbeNavigation: mbeNavigation,
@@ -55,6 +55,9 @@ function ExtensionWithPluginState(props) {
55
55
  'with-children': hasChildren,
56
56
  'without-frame': removeBorder
57
57
  });
58
+ const contentClassNames = classnames({
59
+ 'remove-padding': showMacroInteractionDesignUpdates
60
+ });
58
61
  let customContainerStyles = {
59
62
  width: '100%'
60
63
  };
@@ -102,7 +105,8 @@ function ExtensionWithPluginState(props) {
102
105
  node: node,
103
106
  showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
104
107
  }), children), hasBody && jsx("div", {
105
- css: newContentStyles
108
+ css: newContentStyles,
109
+ className: contentClassNames
106
110
  }, jsx("div", {
107
111
  css: content,
108
112
  ref: handleContentDOMRef,
@@ -2,41 +2,39 @@ import { css } from '@emotion/react';
2
2
  import { N30 } from '@atlaskit/theme/colors';
3
3
  import { padding, wrapperDefault } from '../styles';
4
4
  export const widerLayoutClassName = 'wider-layout';
5
- export const wrapperStyle = css`
6
- ${wrapperDefault}
7
-
8
- &.without-frame {
9
- background: transparent;
5
+ export const wrapperStyle = css(wrapperDefault, {
6
+ '&.without-frame': {
7
+ background: 'transparent'
8
+ },
9
+ cursor: 'pointer',
10
+ width: '100%',
11
+ '.extension-overflow-wrapper:not(.with-body)': {
12
+ overflowX: 'auto'
10
13
  }
11
- cursor: pointer;
12
- width: 100%;
13
-
14
- .extension-overflow-wrapper:not(.with-body) {
15
- overflow-x: auto;
14
+ });
15
+ export const header = css({
16
+ padding: `${padding / 2}px ${padding / 2}px 0px`,
17
+ verticalAlign: 'middle',
18
+ '&.with-children:not(.without-frame)': {
19
+ padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"}`
20
+ },
21
+ '&.without-frame': {
22
+ padding: 0
16
23
  }
17
- `;
18
- export const header = css`
19
- padding: ${padding / 2}px ${padding / 2}px 0px;
20
- vertical-align: middle;
21
-
22
- &.with-children:not(.without-frame) {
23
- padding: ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-100, 8px)"}
24
- ${"var(--ds-space-100, 8px)"};
24
+ });
25
+ export const content = css({
26
+ padding: `${padding}px`,
27
+ background: "var(--ds-surface, white)",
28
+ border: `1px solid ${`var(--ds-border, ${N30})`}`,
29
+ borderRadius: "var(--ds-border-radius, 3px)",
30
+ cursor: 'initial',
31
+ width: '100%'
32
+ });
33
+ export const contentWrapper = css({
34
+ padding: `0 ${padding}px ${padding}px`,
35
+ display: 'flex',
36
+ justifyContent: 'center',
37
+ '&.remove-padding': {
38
+ padding: 0
25
39
  }
26
- &.without-frame {
27
- padding: 0;
28
- }
29
- `;
30
- export const content = css`
31
- padding: ${padding}px;
32
- background: ${"var(--ds-surface, white)"};
33
- border: 1px solid ${`var(--ds-border, ${N30})`};
34
- border-radius: ${"var(--ds-border-radius, 3px)"};
35
- cursor: initial;
36
- width: 100%;
37
- `;
38
- export const contentWrapper = css`
39
- padding: 0 ${padding}px ${padding}px;
40
- display: flex;
41
- justify-content: center;
42
- `;
40
+ });
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import React, { Fragment } from 'react';
2
+ import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  import { akEditorGutterPadding } from '@atlaskit/editor-shared-styles';
5
5
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
@@ -23,11 +23,7 @@ const InlineExtension = props => {
23
23
  const className = hasChildren ? 'with-overlay with-children' : 'with-overlay';
24
24
  const rendererContainerWidth = widthState ? widthState.width - akEditorGutterPadding * 2 : 0;
25
25
  const extendedInlineExtension = getBooleanFF('platform.editor.inline_extension.extended_lcqdn') || false;
26
- const inlineExtensionInternal = jsx(Fragment, null, showMacroInteractionDesignUpdates && jsx(ExtensionLozenge, {
27
- node: node,
28
- isNodeSelected: isNodeSelected,
29
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
30
- }), jsx("div", {
26
+ const inlineExtensionInternal = jsx("div", {
31
27
  css: [wrapperStyle, extendedInlineExtension && inlineWrapperStyels],
32
28
  className: `extension-container inline ${className}`
33
29
  }, jsx("div", {
@@ -37,7 +33,7 @@ const InlineExtension = props => {
37
33
  node: node,
38
34
  isNodeSelected: isNodeSelected,
39
35
  showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
40
- })));
36
+ }));
41
37
  if (extendedInlineExtension) {
42
38
  return jsx(WidthContext.Provider, {
43
39
  value: createWidthContext(rendererContainerWidth)
@@ -1,16 +1,7 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { css, jsx } from '@emotion/react';
4
- import classnames from 'classnames';
5
2
  import { ZERO_WIDTH_SPACE } from '../utils';
6
- const styles = css({
7
- '&.inline-extension': {
8
- display: 'inline-block'
9
- }
10
- });
11
3
  /**
12
4
  * If inlineExtension, add zero width space to the end of the nodes and wrap with span;
13
- * Also if showMacroInteractionDesignUpdates is true, then add the inline-block style to account for the lozenge.
14
5
  * else wrap with a div (for multi bodied extensions)
15
6
  *
16
7
  * @param param0
@@ -18,14 +9,5 @@ const styles = css({
18
9
  */
19
10
  export const ExtensionNodeWrapper = ({
20
11
  children,
21
- nodeType,
22
- showMacroInteractionDesignUpdates
23
- }) => {
24
- const wrapperClassNames = classnames({
25
- 'inline-extension': nodeType === 'inlineExtension' && showMacroInteractionDesignUpdates
26
- });
27
- return jsx("span", {
28
- className: wrapperClassNames,
29
- css: styles
30
- }, children, nodeType === 'inlineExtension' && ZERO_WIDTH_SPACE);
31
- };
12
+ nodeType
13
+ }) => /*#__PURE__*/React.createElement("span", null, children, nodeType === 'inlineExtension' && ZERO_WIDTH_SPACE);
@@ -7,7 +7,7 @@ import { css, jsx } from '@emotion/react';
7
7
  import classnames from 'classnames';
8
8
  import EditorFileIcon from '@atlaskit/icon/glyph/editor/file';
9
9
  import { useSharedPluginState } from '../../hooks';
10
- import { sharedMultiBodiedExtensionStyles } from '../../ui/MultiBodiedExtension';
10
+ import { removeMargins, sharedMultiBodiedExtensionStyles } from '../../ui/MultiBodiedExtension';
11
11
  import { calculateBreakoutStyles, getExtensionLozengeData } from '../../utils';
12
12
  import { WithPluginState } from '../../with-plugin-state';
13
13
  import ExtensionLozenge from '../Extension/Lozenge';
@@ -87,7 +87,7 @@ const MultiBodiedExtensionWithWidth = ({
87
87
  return handleContentDOMRef(node);
88
88
  }, [handleContentDOMRef]);
89
89
  const containerCssExtended = css(sharedMultiBodiedExtensionStyles.mbeExtensionContainer, {
90
- [`.multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(${activeChildIndex + 1})`]: sharedMultiBodiedExtensionStyles.extensionFrameContent
90
+ [`.multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(${activeChildIndex + 1})`]: css(sharedMultiBodiedExtensionStyles.extensionFrameContent, showMacroInteractionDesignUpdates && removeMargins)
91
91
  });
92
92
  const shouldBreakout =
93
93
  // Extension should breakout when the layout is set to 'full-width' or 'wide'.
@@ -108,6 +108,12 @@ const MultiBodiedExtensionWithWidth = ({
108
108
  const wrapperClassNames = classnames('multiBodiedExtension--wrapper', 'extension-container', 'block', {
109
109
  'remove-margin-top': showMacroInteractionDesignUpdates
110
110
  });
111
+ const containerClassNames = classnames('multiBodiedExtension--container', {
112
+ 'remove-padding': showMacroInteractionDesignUpdates
113
+ });
114
+ const navigationClassNames = classnames('multiBodiedExtension--navigation', {
115
+ 'remove-margins': showMacroInteractionDesignUpdates
116
+ });
111
117
  return jsx(Fragment, null, showMacroInteractionDesignUpdates && jsx(ExtensionLozenge, {
112
118
  isNodeSelected: isNodeSelected,
113
119
  node: node,
@@ -119,12 +125,12 @@ const MultiBodiedExtensionWithWidth = ({
119
125
  "data-testid": "multiBodiedExtension--wrapper",
120
126
  style: mbeWrapperStyles
121
127
  }, getWrapperTitleContent(imageData, title, showMacroInteractionDesignUpdates), jsx("div", {
122
- className: "multiBodiedExtension--container",
128
+ className: containerClassNames,
123
129
  css: containerCssExtended,
124
130
  "data-testid": "multiBodiedExtension--container",
125
131
  "data-active-child-index": activeChildIndex
126
132
  }, jsx("nav", {
127
- className: "multiBodiedExtension-navigation",
133
+ className: navigationClassNames,
128
134
  css: sharedMultiBodiedExtensionStyles.mbeNavigation,
129
135
  "data-testid": "multiBodiedExtension-navigation"
130
136
  }, extensionHandlerResult), jsx("article", {
@@ -28,8 +28,7 @@ export class ExtensionNode extends ReactNodeView {
28
28
  render(props, forwardRef) {
29
29
  var _props$extensionNodeV;
30
30
  return /*#__PURE__*/React.createElement(ExtensionNodeWrapper, {
31
- nodeType: this.node.type.name,
32
- showMacroInteractionDesignUpdates: props.showMacroInteractionDesignUpdates
31
+ nodeType: this.node.type.name
33
32
  }, /*#__PURE__*/React.createElement(Extension, {
34
33
  editorView: this.view,
35
34
  node: this.node,
@@ -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.11.3";
3
+ const packageVersion = "78.11.4";
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.11.3";
10
+ const packageVersion = "78.11.4";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -12,6 +12,9 @@ const mbeExtensionContainer = css({
12
12
  right: `${"var(--ds-space-100, 8px)"} !important`
13
13
  },
14
14
  paddingBottom: "var(--ds-space-100, 8px)",
15
+ '&.remove-padding': {
16
+ paddingBottom: 0
17
+ },
15
18
  position: 'relative',
16
19
  verticalAlign: 'middle',
17
20
  cursor: 'pointer',
@@ -37,7 +40,11 @@ const mbeNavigation = css({
37
40
  borderBottom: 'none !important',
38
41
  background: "var(--ds-surface, white)",
39
42
  marginLeft: "var(--ds-space-100, 8px)",
40
- marginRight: "var(--ds-space-100, 8px)"
43
+ marginRight: "var(--ds-space-100, 8px)",
44
+ '&.remove-margins': {
45
+ marginLeft: 0,
46
+ marginRight: 0
47
+ }
41
48
  });
42
49
  const extensionFrameContent = css({
43
50
  padding: `${"var(--ds-space-100, 8px)"} !important`,
@@ -61,6 +68,10 @@ const extensionFrameContent = css({
61
68
  marginTop: `${"var(--ds-space-100, 8px)"} !important`
62
69
  }
63
70
  });
71
+ export const removeMargins = css({
72
+ marginLeft: 0,
73
+ marginRight: 0
74
+ });
64
75
  export const sharedMultiBodiedExtensionStyles = {
65
76
  mbeExtensionContainer,
66
77
  mbeNavigation,
@@ -56,6 +56,9 @@ function ExtensionWithPluginState(props) {
56
56
  'with-children': hasChildren,
57
57
  'without-frame': removeBorder
58
58
  });
59
+ var contentClassNames = classnames({
60
+ 'remove-padding': showMacroInteractionDesignUpdates
61
+ });
59
62
  var customContainerStyles = {
60
63
  width: '100%'
61
64
  };
@@ -97,7 +100,8 @@ function ExtensionWithPluginState(props) {
97
100
  node: node,
98
101
  showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
99
102
  }), children), hasBody && jsx("div", {
100
- css: newContentStyles
103
+ css: newContentStyles,
104
+ className: contentClassNames
101
105
  }, jsx("div", {
102
106
  css: content,
103
107
  ref: handleContentDOMRef,
@@ -1,10 +1,40 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
3
1
  import { css } from '@emotion/react';
4
2
  import { N30 } from '@atlaskit/theme/colors';
5
3
  import { padding, wrapperDefault } from '../styles';
6
4
  export var widerLayoutClassName = 'wider-layout';
7
- export var wrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n &.without-frame {\n background: transparent;\n }\n cursor: pointer;\n width: 100%;\n\n .extension-overflow-wrapper:not(.with-body) {\n overflow-x: auto;\n }\n"])), wrapperDefault);
8
- export var header = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: ", "px ", "px 0px;\n vertical-align: middle;\n\n &.with-children:not(.without-frame) {\n padding: ", " ", "\n ", ";\n }\n &.without-frame {\n padding: 0;\n }\n"])), padding / 2, padding / 2, "var(--ds-space-050, 4px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)");
9
- export var content = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: ", "px;\n background: ", ";\n border: 1px solid ", ";\n border-radius: ", ";\n cursor: initial;\n width: 100%;\n"])), padding, "var(--ds-surface, white)", "var(--ds-border, ".concat(N30, ")"), "var(--ds-border-radius, 3px)");
10
- export var contentWrapper = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: 0 ", "px ", "px;\n display: flex;\n justify-content: center;\n"])), padding, padding);
5
+ export var wrapperStyle = css(wrapperDefault, {
6
+ '&.without-frame': {
7
+ background: 'transparent'
8
+ },
9
+ cursor: 'pointer',
10
+ width: '100%',
11
+ '.extension-overflow-wrapper:not(.with-body)': {
12
+ overflowX: 'auto'
13
+ }
14
+ });
15
+ export var header = css({
16
+ padding: "".concat(padding / 2, "px ").concat(padding / 2, "px 0px"),
17
+ verticalAlign: 'middle',
18
+ '&.with-children:not(.without-frame)': {
19
+ padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
20
+ },
21
+ '&.without-frame': {
22
+ padding: 0
23
+ }
24
+ });
25
+ export var content = css({
26
+ padding: "".concat(padding, "px"),
27
+ background: "var(--ds-surface, white)",
28
+ border: "1px solid ".concat("var(--ds-border, ".concat(N30, ")")),
29
+ borderRadius: "var(--ds-border-radius, 3px)",
30
+ cursor: 'initial',
31
+ width: '100%'
32
+ });
33
+ export var contentWrapper = css({
34
+ padding: "0 ".concat(padding, "px ").concat(padding, "px"),
35
+ display: 'flex',
36
+ justifyContent: 'center',
37
+ '&.remove-padding': {
38
+ padding: 0
39
+ }
40
+ });
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import React, { Fragment } from 'react';
2
+ import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  import { akEditorGutterPadding } from '@atlaskit/editor-shared-styles';
5
5
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
@@ -20,11 +20,7 @@ var InlineExtension = function InlineExtension(props) {
20
20
  var className = hasChildren ? 'with-overlay with-children' : 'with-overlay';
21
21
  var rendererContainerWidth = widthState ? widthState.width - akEditorGutterPadding * 2 : 0;
22
22
  var extendedInlineExtension = getBooleanFF('platform.editor.inline_extension.extended_lcqdn') || false;
23
- var inlineExtensionInternal = jsx(Fragment, null, showMacroInteractionDesignUpdates && jsx(ExtensionLozenge, {
24
- node: node,
25
- isNodeSelected: isNodeSelected,
26
- showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
27
- }), jsx("div", {
23
+ var inlineExtensionInternal = jsx("div", {
28
24
  css: [wrapperStyle, extendedInlineExtension && inlineWrapperStyels],
29
25
  className: "extension-container inline ".concat(className)
30
26
  }, jsx("div", {
@@ -34,7 +30,7 @@ var InlineExtension = function InlineExtension(props) {
34
30
  node: node,
35
31
  isNodeSelected: isNodeSelected,
36
32
  showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
37
- })));
33
+ }));
38
34
  if (extendedInlineExtension) {
39
35
  return jsx(WidthContext.Provider, {
40
36
  value: createWidthContext(rendererContainerWidth)
@@ -1,16 +1,7 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { css, jsx } from '@emotion/react';
4
- import classnames from 'classnames';
5
2
  import { ZERO_WIDTH_SPACE } from '../utils';
6
- var styles = css({
7
- '&.inline-extension': {
8
- display: 'inline-block'
9
- }
10
- });
11
3
  /**
12
4
  * If inlineExtension, add zero width space to the end of the nodes and wrap with span;
13
- * Also if showMacroInteractionDesignUpdates is true, then add the inline-block style to account for the lozenge.
14
5
  * else wrap with a div (for multi bodied extensions)
15
6
  *
16
7
  * @param param0
@@ -18,13 +9,6 @@ var styles = css({
18
9
  */
19
10
  export var ExtensionNodeWrapper = function ExtensionNodeWrapper(_ref) {
20
11
  var children = _ref.children,
21
- nodeType = _ref.nodeType,
22
- showMacroInteractionDesignUpdates = _ref.showMacroInteractionDesignUpdates;
23
- var wrapperClassNames = classnames({
24
- 'inline-extension': nodeType === 'inlineExtension' && showMacroInteractionDesignUpdates
25
- });
26
- return jsx("span", {
27
- className: wrapperClassNames,
28
- css: styles
29
- }, children, nodeType === 'inlineExtension' && ZERO_WIDTH_SPACE);
12
+ nodeType = _ref.nodeType;
13
+ return /*#__PURE__*/React.createElement("span", null, children, nodeType === 'inlineExtension' && ZERO_WIDTH_SPACE);
30
14
  };
@@ -12,7 +12,7 @@ import { css, jsx } from '@emotion/react';
12
12
  import classnames from 'classnames';
13
13
  import EditorFileIcon from '@atlaskit/icon/glyph/editor/file';
14
14
  import { useSharedPluginState } from '../../hooks';
15
- import { sharedMultiBodiedExtensionStyles } from '../../ui/MultiBodiedExtension';
15
+ import { removeMargins, sharedMultiBodiedExtensionStyles } from '../../ui/MultiBodiedExtension';
16
16
  import { calculateBreakoutStyles, getExtensionLozengeData } from '../../utils';
17
17
  import { WithPluginState } from '../../with-plugin-state';
18
18
  import ExtensionLozenge from '../Extension/Lozenge';
@@ -90,7 +90,7 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
90
90
  var articleRef = React.useCallback(function (node) {
91
91
  return handleContentDOMRef(node);
92
92
  }, [handleContentDOMRef]);
93
- var containerCssExtended = css(sharedMultiBodiedExtensionStyles.mbeExtensionContainer, _defineProperty({}, ".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(".concat(activeChildIndex + 1, ")"), sharedMultiBodiedExtensionStyles.extensionFrameContent));
93
+ var containerCssExtended = css(sharedMultiBodiedExtensionStyles.mbeExtensionContainer, _defineProperty({}, ".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true']:nth-of-type(".concat(activeChildIndex + 1, ")"), css(sharedMultiBodiedExtensionStyles.extensionFrameContent, showMacroInteractionDesignUpdates && removeMargins)));
94
94
  var shouldBreakout =
95
95
  // Extension should breakout when the layout is set to 'full-width' or 'wide'.
96
96
  ['full-width', 'wide'].includes(node.attrs.layout) &&
@@ -109,6 +109,12 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
109
109
  var wrapperClassNames = classnames('multiBodiedExtension--wrapper', 'extension-container', 'block', {
110
110
  'remove-margin-top': showMacroInteractionDesignUpdates
111
111
  });
112
+ var containerClassNames = classnames('multiBodiedExtension--container', {
113
+ 'remove-padding': showMacroInteractionDesignUpdates
114
+ });
115
+ var navigationClassNames = classnames('multiBodiedExtension--navigation', {
116
+ 'remove-margins': showMacroInteractionDesignUpdates
117
+ });
112
118
  return jsx(Fragment, null, showMacroInteractionDesignUpdates && jsx(ExtensionLozenge, {
113
119
  isNodeSelected: isNodeSelected,
114
120
  node: node,
@@ -120,12 +126,12 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
120
126
  "data-testid": "multiBodiedExtension--wrapper",
121
127
  style: mbeWrapperStyles
122
128
  }, getWrapperTitleContent(imageData, title, showMacroInteractionDesignUpdates), jsx("div", {
123
- className: "multiBodiedExtension--container",
129
+ className: containerClassNames,
124
130
  css: containerCssExtended,
125
131
  "data-testid": "multiBodiedExtension--container",
126
132
  "data-active-child-index": activeChildIndex
127
133
  }, jsx("nav", {
128
- className: "multiBodiedExtension-navigation",
134
+ className: navigationClassNames,
129
135
  css: sharedMultiBodiedExtensionStyles.mbeNavigation,
130
136
  "data-testid": "multiBodiedExtension-navigation"
131
137
  }, extensionHandlerResult), jsx("article", {
@@ -47,8 +47,7 @@ export var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
47
47
  value: function render(props, forwardRef) {
48
48
  var _props$extensionNodeV;
49
49
  return /*#__PURE__*/React.createElement(ExtensionNodeWrapper, {
50
- nodeType: this.node.type.name,
51
- showMacroInteractionDesignUpdates: props.showMacroInteractionDesignUpdates
50
+ nodeType: this.node.type.name
52
51
  }, /*#__PURE__*/React.createElement(Extension, {
53
52
  editorView: this.view,
54
53
  node: this.node,
@@ -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.11.3";
9
+ var packageVersion = "78.11.4";
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.11.3";
20
+ var packageVersion = "78.11.4";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -12,6 +12,9 @@ var mbeExtensionContainer = css({
12
12
  right: "var(--ds-space-100, 8px)".concat(" !important")
13
13
  },
14
14
  paddingBottom: "var(--ds-space-100, 8px)",
15
+ '&.remove-padding': {
16
+ paddingBottom: 0
17
+ },
15
18
  position: 'relative',
16
19
  verticalAlign: 'middle',
17
20
  cursor: 'pointer',
@@ -37,7 +40,11 @@ var mbeNavigation = css({
37
40
  borderBottom: 'none !important',
38
41
  background: "var(--ds-surface, white)",
39
42
  marginLeft: "var(--ds-space-100, 8px)",
40
- marginRight: "var(--ds-space-100, 8px)"
43
+ marginRight: "var(--ds-space-100, 8px)",
44
+ '&.remove-margins': {
45
+ marginLeft: 0,
46
+ marginRight: 0
47
+ }
41
48
  });
42
49
  var extensionFrameContent = css({
43
50
  padding: "var(--ds-space-100, 8px)".concat(" !important"),
@@ -61,6 +68,10 @@ var extensionFrameContent = css({
61
68
  marginTop: "var(--ds-space-100, 8px)".concat(" !important")
62
69
  }
63
70
  });
71
+ export var removeMargins = css({
72
+ marginLeft: 0,
73
+ marginRight: 0
74
+ });
64
75
  export var sharedMultiBodiedExtensionStyles = {
65
76
  mbeExtensionContainer: mbeExtensionContainer,
66
77
  mbeNavigation: mbeNavigation,
@@ -1,18 +1,14 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { jsx } from '@emotion/react';
4
2
  type Props = {
5
3
  children: React.ReactNode;
6
4
  nodeType: string;
7
- showMacroInteractionDesignUpdates?: boolean;
8
5
  };
9
6
  /**
10
7
  * If inlineExtension, add zero width space to the end of the nodes and wrap with span;
11
- * Also if showMacroInteractionDesignUpdates is true, then add the inline-block style to account for the lozenge.
12
8
  * else wrap with a div (for multi bodied extensions)
13
9
  *
14
10
  * @param param0
15
11
  * @returns
16
12
  */
17
- export declare const ExtensionNodeWrapper: ({ children, nodeType, showMacroInteractionDesignUpdates, }: Props) => jsx.JSX.Element;
13
+ export declare const ExtensionNodeWrapper: ({ children, nodeType }: Props) => JSX.Element;
18
14
  export {};
@@ -1,4 +1,5 @@
1
1
  /** @jsx jsx */
2
+ export declare const removeMargins: import("@emotion/react").SerializedStyles;
2
3
  export declare const sharedMultiBodiedExtensionStyles: {
3
4
  mbeExtensionContainer: import("@emotion/react").SerializedStyles;
4
5
  mbeNavigation: import("@emotion/react").SerializedStyles;
@@ -1,18 +1,14 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { jsx } from '@emotion/react';
4
2
  type Props = {
5
3
  children: React.ReactNode;
6
4
  nodeType: string;
7
- showMacroInteractionDesignUpdates?: boolean;
8
5
  };
9
6
  /**
10
7
  * If inlineExtension, add zero width space to the end of the nodes and wrap with span;
11
- * Also if showMacroInteractionDesignUpdates is true, then add the inline-block style to account for the lozenge.
12
8
  * else wrap with a div (for multi bodied extensions)
13
9
  *
14
10
  * @param param0
15
11
  * @returns
16
12
  */
17
- export declare const ExtensionNodeWrapper: ({ children, nodeType, showMacroInteractionDesignUpdates, }: Props) => jsx.JSX.Element;
13
+ export declare const ExtensionNodeWrapper: ({ children, nodeType }: Props) => JSX.Element;
18
14
  export {};
@@ -1,4 +1,5 @@
1
1
  /** @jsx jsx */
2
+ export declare const removeMargins: import("@emotion/react").SerializedStyles;
2
3
  export declare const sharedMultiBodiedExtensionStyles: {
3
4
  mbeExtensionContainer: import("@emotion/react").SerializedStyles;
4
5
  mbeNavigation: import("@emotion/react").SerializedStyles;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "78.11.3",
3
+ "version": "78.11.4",
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/"