@atlaskit/editor-common 134.16.1 → 134.16.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,20 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 134.16.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 134.16.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`6bc3894066dc8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6bc3894066dc8) -
14
+ Clean up the `platform_editor_toolbar_multi_editor_fix` experiment. The selection toolbar now
15
+ always scopes mouseups to its own editor, so it closes correctly when multiple editors are open.
16
+ - Updated dependencies
17
+
3
18
  ## 134.16.1
4
19
 
5
20
  ### Patch Changes
package/compass.yml CHANGED
@@ -35,7 +35,7 @@ customFields:
35
35
  value: true
36
36
  - name: Reviewer Selection Mechanism
37
37
  type: text
38
- value: random(2)
38
+ value: randomTZIgnored(2)
39
39
  - name: Required Reviewer Approvals
40
40
  type: number
41
41
  value: 1
@@ -27,7 +27,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
27
27
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
28
28
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
29
29
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
30
- var packageVersion = "134.16.0";
30
+ var packageVersion = "134.16.2";
31
31
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
32
32
  // Remove URL as it has UGC
33
33
  // Ignored via go/ees007
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.EditorToolbarUIProvider = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _uiContext = require("@atlaskit/editor-toolbar/ui-context");
10
- var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
11
10
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
12
11
  var EditorToolbarUIProvider = exports.EditorToolbarUIProvider = function EditorToolbarUIProvider(_ref) {
13
12
  var children = _ref.children,
@@ -27,7 +26,7 @@ var EditorToolbarUIProvider = exports.EditorToolbarUIProvider = function EditorT
27
26
  // When closed via keyboard Escape, keep focus on the trigger for better keyboard UX.
28
27
  var isKeyboardEscape = event instanceof KeyboardEvent && event.key === 'Escape';
29
28
  var shouldFocusEditor = !isKeyboardEscape;
30
- if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_toolbar_multi_editor_fix') && event instanceof MouseEvent && event.target instanceof Element && !event.target.closest('[role="menu"]')) {
29
+ if (event instanceof MouseEvent && event.target instanceof Element && !event.target.closest('[role="menu"]')) {
31
30
  return;
32
31
  }
33
32
  if (shouldFocusEditor) {
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
23
23
  * @jsx jsx
24
24
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
25
  var packageName = "@atlaskit/editor-common";
26
- var packageVersion = "134.16.0";
26
+ var packageVersion = "134.16.2";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -13,7 +13,7 @@ const NETWORK_FAILURE_REGEX = /^network failure/i;
13
13
  const RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
14
14
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
15
15
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
16
- const packageVersion = "134.16.0";
16
+ const packageVersion = "134.16.2";
17
17
  const sanitiseSentryEvents = (data, _hint) => {
18
18
  // Remove URL as it has UGC
19
19
  // Ignored via go/ees007
@@ -1,6 +1,5 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import { ToolbarUIProvider } from '@atlaskit/editor-toolbar/ui-context';
3
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
4
3
  export const EditorToolbarUIProvider = ({
5
4
  children,
6
5
  api,
@@ -21,7 +20,7 @@ export const EditorToolbarUIProvider = ({
21
20
  // When closed via keyboard Escape, keep focus on the trigger for better keyboard UX.
22
21
  const isKeyboardEscape = event instanceof KeyboardEvent && event.key === 'Escape';
23
22
  const shouldFocusEditor = !isKeyboardEscape;
24
- if (isExperimentEnabled('platform_editor_toolbar_multi_editor_fix') && event instanceof MouseEvent && event.target instanceof Element && !event.target.closest('[role="menu"]')) {
23
+ if (event instanceof MouseEvent && event.target instanceof Element && !event.target.closest('[role="menu"]')) {
25
24
  return;
26
25
  }
27
26
  if (shouldFocusEditor) {
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "134.16.0";
16
+ const packageVersion = "134.16.2";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -19,7 +19,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
19
19
  var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "134.16.0";
22
+ var packageVersion = "134.16.2";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -1,6 +1,5 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import { ToolbarUIProvider } from '@atlaskit/editor-toolbar/ui-context';
3
- import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
4
3
  export var EditorToolbarUIProvider = function EditorToolbarUIProvider(_ref) {
5
4
  var children = _ref.children,
6
5
  api = _ref.api,
@@ -19,7 +18,7 @@ export var EditorToolbarUIProvider = function EditorToolbarUIProvider(_ref) {
19
18
  // When closed via keyboard Escape, keep focus on the trigger for better keyboard UX.
20
19
  var isKeyboardEscape = event instanceof KeyboardEvent && event.key === 'Escape';
21
20
  var shouldFocusEditor = !isKeyboardEscape;
22
- if (isExperimentEnabled('platform_editor_toolbar_multi_editor_fix') && event instanceof MouseEvent && event.target instanceof Element && !event.target.closest('[role="menu"]')) {
21
+ if (event instanceof MouseEvent && event.target instanceof Element && !event.target.closest('[role="menu"]')) {
23
22
  return;
24
23
  }
25
24
  if (shouldFocusEditor) {
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
20
20
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "134.16.0";
23
+ var packageVersion = "134.16.2";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "134.16.1",
3
+ "version": "134.16.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/"
@@ -75,7 +75,7 @@
75
75
  "@atlaskit/popper": "^9.4.0",
76
76
  "@atlaskit/popup": "^10.2.0",
77
77
  "@atlaskit/primitives": "^22.7.0",
78
- "@atlaskit/profilecard": "^27.7.0",
78
+ "@atlaskit/profilecard": "^27.8.0",
79
79
  "@atlaskit/prosemirror-history": "^1.3.0",
80
80
  "@atlaskit/react-compiler-gating": "^0.2.0",
81
81
  "@atlaskit/react-ufo": "^8.4.0",
@@ -86,7 +86,7 @@
86
86
  "@atlaskit/task-decision": "^21.16.0",
87
87
  "@atlaskit/teams-app-config": "^3.1.0",
88
88
  "@atlaskit/textfield": "^10.3.0",
89
- "@atlaskit/tmp-editor-statsig": "^260.0.0",
89
+ "@atlaskit/tmp-editor-statsig": "^261.0.0",
90
90
  "@atlaskit/tokens": "^20.11.0",
91
91
  "@atlaskit/tooltip": "^24.4.0",
92
92
  "@atlaskit/width-detector": "^7.2.0",