@atlaskit/editor-common 79.2.1 → 79.2.3

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 79.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#98129](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/98129)
8
+ [`78612a7edba4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/78612a7edba4) -
9
+ [ux] [ED-23101] Updated Editor JSON, Slack, Confluence and Email transformers to support the new
10
+ `backgroundColor` mark
11
+ - Updated dependencies
12
+
13
+ ## 79.2.2
14
+
15
+ ### Patch Changes
16
+
17
+ - [#96925](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96925)
18
+ [`b19dc622d23a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b19dc622d23a) -
19
+ [ux] Adds margin above bodied macros since they always show the label for the new interaction
20
+ designs
21
+
3
22
  ## 79.2.1
4
23
 
5
24
  ### Patch Changes
@@ -56,7 +56,10 @@ var textStyles = (0, _react2.css)({
56
56
  var containerStyles = (0, _react2.css)({
57
57
  textAlign: 'left',
58
58
  zIndex: 1,
59
- position: 'relative'
59
+ position: 'relative',
60
+ '&.bodied': {
61
+ marginTop: "var(--ds-space-300, 24px)"
62
+ }
60
63
  });
61
64
  var ExtensionLabel = exports.ExtensionLabel = function ExtensionLabel(_ref) {
62
65
  var text = _ref.text,
@@ -66,7 +69,10 @@ var ExtensionLabel = exports.ExtensionLabel = function ExtensionLabel(_ref) {
66
69
  isNodeNested = _ref.isNodeNested,
67
70
  setIsNodeHovered = _ref.setIsNodeHovered,
68
71
  isBodiedMacro = _ref.isBodiedMacro;
69
- var classNames = (0, _classnames.default)('extension-title', 'extension-label', {
72
+ var containerClassNames = (0, _classnames.default)({
73
+ bodied: isBodiedMacro
74
+ });
75
+ var labelClassNames = (0, _classnames.default)('extension-label', {
70
76
  nested: isNodeNested,
71
77
  inline: extensionName === 'inlineExtension',
72
78
  bodied: isBodiedMacro,
@@ -86,13 +92,15 @@ var ExtensionLabel = exports.ExtensionLabel = function ExtensionLabel(_ref) {
86
92
  }, [setIsNodeHovered]);
87
93
  return (0, _react2.jsx)("div", {
88
94
  css: containerStyles,
95
+ className: containerClassNames,
89
96
  style: customContainerStyles,
90
97
  onMouseEnter: handleMouseEnter,
91
- onMouseLeave: handleMouseLeave
98
+ onMouseLeave: handleMouseLeave,
99
+ "data-testid": "new-lozenge-container"
92
100
  }, (0, _react2.jsx)("span", {
93
101
  "data-testid": "new-lozenge",
94
102
  css: labelStyles,
95
- className: classNames
103
+ className: labelClassNames
96
104
  }, (0, _react2.jsx)("span", {
97
105
  css: textStyles
98
106
  }, text)));
@@ -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 = "79.2.1";
19
+ var packageVersion = "79.2.3";
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
@@ -20,7 +20,7 @@ var _Layer = _interopRequireDefault(require("../Layer"));
20
20
  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); }; }
21
21
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "79.2.1";
23
+ var packageVersion = "79.2.3";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -48,7 +48,10 @@ const textStyles = css({
48
48
  const containerStyles = css({
49
49
  textAlign: 'left',
50
50
  zIndex: 1,
51
- position: 'relative'
51
+ position: 'relative',
52
+ '&.bodied': {
53
+ marginTop: "var(--ds-space-300, 24px)"
54
+ }
52
55
  });
53
56
  export const ExtensionLabel = ({
54
57
  text,
@@ -59,7 +62,10 @@ export const ExtensionLabel = ({
59
62
  setIsNodeHovered,
60
63
  isBodiedMacro
61
64
  }) => {
62
- const classNames = classnames('extension-title', 'extension-label', {
65
+ const containerClassNames = classnames({
66
+ bodied: isBodiedMacro
67
+ });
68
+ const labelClassNames = classnames('extension-label', {
63
69
  nested: isNodeNested,
64
70
  inline: extensionName === 'inlineExtension',
65
71
  bodied: isBodiedMacro,
@@ -79,13 +85,15 @@ export const ExtensionLabel = ({
79
85
  }, [setIsNodeHovered]);
80
86
  return jsx("div", {
81
87
  css: containerStyles,
88
+ className: containerClassNames,
82
89
  style: customContainerStyles,
83
90
  onMouseEnter: handleMouseEnter,
84
- onMouseLeave: handleMouseLeave
91
+ onMouseLeave: handleMouseLeave,
92
+ "data-testid": "new-lozenge-container"
85
93
  }, jsx("span", {
86
94
  "data-testid": "new-lozenge",
87
95
  css: labelStyles,
88
- className: classNames
96
+ className: labelClassNames
89
97
  }, jsx("span", {
90
98
  css: textStyles
91
99
  }, text)));
@@ -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 = "79.2.1";
3
+ const packageVersion = "79.2.3";
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 = "79.2.1";
10
+ const packageVersion = "79.2.3";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -48,7 +48,10 @@ var textStyles = css({
48
48
  var containerStyles = css({
49
49
  textAlign: 'left',
50
50
  zIndex: 1,
51
- position: 'relative'
51
+ position: 'relative',
52
+ '&.bodied': {
53
+ marginTop: "var(--ds-space-300, 24px)"
54
+ }
52
55
  });
53
56
  export var ExtensionLabel = function ExtensionLabel(_ref) {
54
57
  var text = _ref.text,
@@ -58,7 +61,10 @@ export var ExtensionLabel = function ExtensionLabel(_ref) {
58
61
  isNodeNested = _ref.isNodeNested,
59
62
  setIsNodeHovered = _ref.setIsNodeHovered,
60
63
  isBodiedMacro = _ref.isBodiedMacro;
61
- var classNames = classnames('extension-title', 'extension-label', {
64
+ var containerClassNames = classnames({
65
+ bodied: isBodiedMacro
66
+ });
67
+ var labelClassNames = classnames('extension-label', {
62
68
  nested: isNodeNested,
63
69
  inline: extensionName === 'inlineExtension',
64
70
  bodied: isBodiedMacro,
@@ -78,13 +84,15 @@ export var ExtensionLabel = function ExtensionLabel(_ref) {
78
84
  }, [setIsNodeHovered]);
79
85
  return jsx("div", {
80
86
  css: containerStyles,
87
+ className: containerClassNames,
81
88
  style: customContainerStyles,
82
89
  onMouseEnter: handleMouseEnter,
83
- onMouseLeave: handleMouseLeave
90
+ onMouseLeave: handleMouseLeave,
91
+ "data-testid": "new-lozenge-container"
84
92
  }, jsx("span", {
85
93
  "data-testid": "new-lozenge",
86
94
  css: labelStyles,
87
- className: classNames
95
+ className: labelClassNames
88
96
  }, jsx("span", {
89
97
  css: textStyles
90
98
  }, text)));
@@ -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 = "79.2.1";
9
+ var packageVersion = "79.2.3";
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
@@ -15,7 +15,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
15
15
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
16
16
  import Layer from '../Layer';
17
17
  var packageName = "@atlaskit/editor-common";
18
- var packageVersion = "79.2.1";
18
+ var packageVersion = "79.2.3";
19
19
  var halfFocusRing = 1;
20
20
  var dropOffset = '0, 8';
21
21
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,5 +1,4 @@
1
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
- import type { Node } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
3
2
  /**
4
3
  * Represents a ProseMirror "position" in a document.
5
4
  */
@@ -1,5 +1,4 @@
1
- import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
- import type { Node } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
3
2
  /**
4
3
  * Represents a ProseMirror "position" in a document.
5
4
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "79.2.1",
3
+ "version": "79.2.3",
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/"
@@ -107,7 +107,7 @@
107
107
  "@atlaskit/code": "^15.1.0",
108
108
  "@atlaskit/codemod-utils": "^4.2.0",
109
109
  "@atlaskit/custom-steps": "^0.1.0",
110
- "@atlaskit/editor-json-transformer": "^8.11.0",
110
+ "@atlaskit/editor-json-transformer": "^8.12.0",
111
111
  "@atlaskit/editor-palette": "1.6.0",
112
112
  "@atlaskit/editor-prosemirror": "4.0.1",
113
113
  "@atlaskit/editor-shared-styles": "^2.10.0",