@atlaskit/editor-common 117.3.0 → 117.4.0

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
+ ## 117.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`234fda770bd2b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/234fda770bd2b) -
8
+ [ux] Fixed unsafe styles that distorted the inline (top-layer) tooltip/popover by excluding
9
+ top-layer elements from the offending selectors via `:not(:where([popover], dialog))` (and
10
+ `:nth-last-child(... of ...)` for positional selectors). The `:where()` wrapper keeps the guard at
11
+ zero specificity, so matching is otherwise unchanged, and the guards are no-ops for the legacy
12
+ portalled tooltip.
13
+
14
+ `@atlassian/gemini` additionally ignores Emotion's `":nth-last-child"` server-side-rendering
15
+ console warning, which it already ignored for `":first-child"` and `":nth-child"`
16
+ (emotion-js/emotion#1105).
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 117.3.0
4
23
 
5
24
  ### Minor Changes
@@ -28,7 +28,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
28
28
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
29
29
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
30
30
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
31
- var packageVersion = "117.2.3";
31
+ var packageVersion = "117.3.0";
32
32
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
33
33
  // Remove URL as it has UGC
34
34
  // Ignored via go/ees007
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "117.2.3";
27
+ var packageVersion = "117.3.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -1,5 +1,5 @@
1
1
  ._1p8dglyw button:not(#local-media-upload-button):not([disabled]):after{border:none}
2
2
  ._89rs1b66 div[role=group]{gap:var(--ds-space-050,4px)}
3
- ._zulp1b66{gap:var(--ds-space-050,4px)}._11ko1txw>div{display:flex}
4
- ._1e0c116y{display:inline-flex}
5
- ._4cvr1h6o{align-items:center}
3
+ ._zulp1b66{gap:var(--ds-space-050,4px)}._1e0c116y{display:inline-flex}
4
+ ._4cvr1h6o{align-items:center}
5
+ ._sox11txw>div:not(:where([popover],dialog)){display:flex}
@@ -16,6 +16,6 @@ var buttonGroupStyleUnbounded = null;
16
16
  function ToolbarButtonGroup(_ref) {
17
17
  var children = _ref.children;
18
18
  return /*#__PURE__*/_react.default.createElement("span", {
19
- className: (0, _runtime.ax)(["_zulp1b66 _1e0c116y _4cvr1h6o", "_11ko1txw _1p8dglyw _89rs1b66"])
19
+ className: (0, _runtime.ax)(["_zulp1b66 _1e0c116y _4cvr1h6o", "_sox11txw _1p8dglyw _89rs1b66"])
20
20
  }, children);
21
21
  }
@@ -14,7 +14,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
14
14
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
15
15
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
16
16
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
17
- const packageVersion = "117.2.3";
17
+ const packageVersion = "117.3.0";
18
18
  const sanitiseSentryEvents = (data, _hint) => {
19
19
  // Remove URL as it has UGC
20
20
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "117.2.3";
17
+ const packageVersion = "117.3.0";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -1,5 +1,5 @@
1
1
  ._1p8dglyw button:not(#local-media-upload-button):not([disabled]):after{border:none}
2
2
  ._89rs1b66 div[role=group]{gap:var(--ds-space-050,4px)}
3
- ._zulp1b66{gap:var(--ds-space-050,4px)}._11ko1txw>div{display:flex}
4
- ._1e0c116y{display:inline-flex}
5
- ._4cvr1h6o{align-items:center}
3
+ ._zulp1b66{gap:var(--ds-space-050,4px)}._1e0c116y{display:inline-flex}
4
+ ._4cvr1h6o{align-items:center}
5
+ ._sox11txw>div:not(:where([popover],dialog)){display:flex}
@@ -10,6 +10,6 @@ export function ToolbarButtonGroup({
10
10
  children
11
11
  }) {
12
12
  return /*#__PURE__*/React.createElement("span", {
13
- className: ax(["_zulp1b66 _1e0c116y _4cvr1h6o", "_11ko1txw _1p8dglyw _89rs1b66"])
13
+ className: ax(["_zulp1b66 _1e0c116y _4cvr1h6o", "_sox11txw _1p8dglyw _89rs1b66"])
14
14
  }, children);
15
15
  }
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
20
20
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
21
21
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
22
22
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
23
- var packageVersion = "117.2.3";
23
+ var packageVersion = "117.3.0";
24
24
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
25
25
  // Remove URL as it has UGC
26
26
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "117.2.3";
24
+ var packageVersion = "117.3.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -1,5 +1,5 @@
1
1
  ._1p8dglyw button:not(#local-media-upload-button):not([disabled]):after{border:none}
2
2
  ._89rs1b66 div[role=group]{gap:var(--ds-space-050,4px)}
3
- ._zulp1b66{gap:var(--ds-space-050,4px)}._11ko1txw>div{display:flex}
4
- ._1e0c116y{display:inline-flex}
5
- ._4cvr1h6o{align-items:center}
3
+ ._zulp1b66{gap:var(--ds-space-050,4px)}._1e0c116y{display:inline-flex}
4
+ ._4cvr1h6o{align-items:center}
5
+ ._sox11txw>div:not(:where([popover],dialog)){display:flex}
@@ -9,6 +9,6 @@ var buttonGroupStyleUnbounded = null;
9
9
  export function ToolbarButtonGroup(_ref) {
10
10
  var children = _ref.children;
11
11
  return /*#__PURE__*/React.createElement("span", {
12
- className: ax(["_zulp1b66 _1e0c116y _4cvr1h6o", "_11ko1txw _1p8dglyw _89rs1b66"])
12
+ className: ax(["_zulp1b66 _1e0c116y _4cvr1h6o", "_sox11txw _1p8dglyw _89rs1b66"])
13
13
  }, children);
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "117.3.0",
3
+ "version": "117.4.0",
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/"
@@ -84,7 +84,7 @@
84
84
  "@atlaskit/teams-app-config": "^2.2.0",
85
85
  "@atlaskit/textfield": "^10.0.0",
86
86
  "@atlaskit/tmp-editor-statsig": "^141.1.0",
87
- "@atlaskit/tokens": "^16.3.0",
87
+ "@atlaskit/tokens": "^16.4.0",
88
88
  "@atlaskit/tooltip": "^24.0.0",
89
89
  "@atlaskit/width-detector": "^6.2.0",
90
90
  "@babel/runtime": "^7.0.0",