@atlaskit/editor-common 78.33.0 → 78.33.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 78.33.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#94190](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/94190) [`a630077ab3ca`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a630077ab3ca) - [ux] Removes outline from bodied outline borders for new macro design
8
+
3
9
  ## 78.33.0
4
10
 
5
11
  ### Minor Changes
@@ -17,9 +17,9 @@ var labelStyles = (0, _react2.css)({
17
17
  width: 'max-content',
18
18
  justifyContent: 'left',
19
19
  position: 'absolute',
20
- // Unfortunately, these need to be these exact numbers - otherwise there will be a gap/noticeable overlap
20
+ // Unfortunately, these need to be these exact numbers - otherwise there will be a noticeable gap/overlap
21
21
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
22
- top: '-18px',
22
+ top: '-19px',
23
23
  '&.inline': {
24
24
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
25
25
  top: '-17px',
@@ -42,9 +42,11 @@ var labelStyles = (0, _react2.css)({
42
42
  background: "var(--ds-surface, ".concat(_colors.N0, ")")
43
43
  },
44
44
  '&.bodied-border': {
45
- border: "1px solid ".concat("var(--ds-border, ".concat(_colors.N30, ")")),
46
- borderBottom: 'none'
47
- }
45
+ border: "1px solid ".concat("var(--ds-border, ".concat(_colors.N30, ")"))
46
+ },
47
+ // to account for bodied having borders now - adding this to help with less conditional styling
48
+ border: '1px solid transparent',
49
+ borderBottom: 'none'
48
50
  });
49
51
  var textStyles = (0, _react2.css)({
50
52
  fontSize: '14px',
@@ -63,7 +65,7 @@ var ExtensionLabel = exports.ExtensionLabel = function ExtensionLabel(_ref) {
63
65
  nested: isNodeNested,
64
66
  inline: extensionName === 'inlineExtension',
65
67
  bodied: isBodiedMacro,
66
- 'bodied-border': isBodiedMacro,
68
+ 'bodied-border': isBodiedMacro && !isNodeHovered,
67
69
  'bodied-background': isBodiedMacro && !isNodeHovered,
68
70
  'show-label': isNodeHovered || isBodiedMacro
69
71
  });
@@ -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.33.0";
19
+ var packageVersion = "78.33.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
@@ -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 = "78.33.0";
23
+ var packageVersion = "78.33.1";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -9,9 +9,9 @@ const labelStyles = css({
9
9
  width: 'max-content',
10
10
  justifyContent: 'left',
11
11
  position: 'absolute',
12
- // Unfortunately, these need to be these exact numbers - otherwise there will be a gap/noticeable overlap
12
+ // Unfortunately, these need to be these exact numbers - otherwise there will be a noticeable gap/overlap
13
13
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
14
- top: '-18px',
14
+ top: '-19px',
15
15
  '&.inline': {
16
16
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
17
17
  top: '-17px',
@@ -34,9 +34,11 @@ const labelStyles = css({
34
34
  background: `var(--ds-surface, ${N0})`
35
35
  },
36
36
  '&.bodied-border': {
37
- border: `1px solid ${`var(--ds-border, ${N30})`}`,
38
- borderBottom: 'none'
39
- }
37
+ border: `1px solid ${`var(--ds-border, ${N30})`}`
38
+ },
39
+ // to account for bodied having borders now - adding this to help with less conditional styling
40
+ border: '1px solid transparent',
41
+ borderBottom: 'none'
40
42
  });
41
43
  const textStyles = css({
42
44
  fontSize: '14px',
@@ -56,7 +58,7 @@ export const ExtensionLabel = ({
56
58
  nested: isNodeNested,
57
59
  inline: extensionName === 'inlineExtension',
58
60
  bodied: isBodiedMacro,
59
- 'bodied-border': isBodiedMacro,
61
+ 'bodied-border': isBodiedMacro && !isNodeHovered,
60
62
  'bodied-background': isBodiedMacro && !isNodeHovered,
61
63
  'show-label': isNodeHovered || isBodiedMacro
62
64
  });
@@ -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.33.0";
3
+ const packageVersion = "78.33.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.33.0";
10
+ const packageVersion = "78.33.1";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -9,9 +9,9 @@ var labelStyles = css({
9
9
  width: 'max-content',
10
10
  justifyContent: 'left',
11
11
  position: 'absolute',
12
- // Unfortunately, these need to be these exact numbers - otherwise there will be a gap/noticeable overlap
12
+ // Unfortunately, these need to be these exact numbers - otherwise there will be a noticeable gap/overlap
13
13
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
14
- top: '-18px',
14
+ top: '-19px',
15
15
  '&.inline': {
16
16
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
17
17
  top: '-17px',
@@ -34,9 +34,11 @@ var labelStyles = css({
34
34
  background: "var(--ds-surface, ".concat(N0, ")")
35
35
  },
36
36
  '&.bodied-border': {
37
- border: "1px solid ".concat("var(--ds-border, ".concat(N30, ")")),
38
- borderBottom: 'none'
39
- }
37
+ border: "1px solid ".concat("var(--ds-border, ".concat(N30, ")"))
38
+ },
39
+ // to account for bodied having borders now - adding this to help with less conditional styling
40
+ border: '1px solid transparent',
41
+ borderBottom: 'none'
40
42
  });
41
43
  var textStyles = css({
42
44
  fontSize: '14px',
@@ -55,7 +57,7 @@ export var ExtensionLabel = function ExtensionLabel(_ref) {
55
57
  nested: isNodeNested,
56
58
  inline: extensionName === 'inlineExtension',
57
59
  bodied: isBodiedMacro,
58
- 'bodied-border': isBodiedMacro,
60
+ 'bodied-border': isBodiedMacro && !isNodeHovered,
59
61
  'bodied-background': isBodiedMacro && !isNodeHovered,
60
62
  'show-label': isNodeHovered || isBodiedMacro
61
63
  });
@@ -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.33.0";
9
+ var packageVersion = "78.33.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
@@ -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 = "78.33.0";
18
+ var packageVersion = "78.33.1";
19
19
  var halfFocusRing = 1;
20
20
  var dropOffset = '0, 8';
21
21
  var DropList = /*#__PURE__*/function (_Component) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "78.33.0",
3
+ "version": "78.33.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/"