@atlaskit/editor-core 204.0.0 → 204.0.2

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,21 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 204.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 204.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#118064](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/118064)
14
+ [`4f4166d9ade1e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4f4166d9ade1e) -
15
+ EDF-2233: Reimplement setTimeout in React18 to revert to previous behaviour to avoid .contains
16
+ permission errors in iframes.
17
+ - Updated dependencies
18
+
3
19
  ## 204.0.0
4
20
 
5
21
  ### Major Changes
@@ -1,30 +1,15 @@
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.handleEditorFocus = handleEditorFocus;
8
- var _react = _interopRequireDefault(require("react"));
9
7
  var _state = require("@atlaskit/editor-prosemirror/state");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
8
  function handleEditorFocus(view) {
12
9
  if (view !== null && view !== void 0 && view.hasFocus()) {
13
10
  return;
14
11
  }
15
-
16
- /**
17
- * If startTransition is available (in React 18),
18
- * don't use setTimeout as startTransition will be used in ReactEditorViewNext.
19
- * setTimeout(fn, 0) will not defer the focus reliably in React 18 with
20
- * concurrent rendering.
21
- */
22
- var react16OnlySetTimeout = _react.default !== null && _react.default !== void 0 && _react.default.startTransition && (0, _platformFeatureFlags.fg)('platform_editor_react_18_autofocus_fix') ? function (fn) {
23
- return fn();
24
- } : function (fn) {
25
- return window.setTimeout(fn, 0);
26
- };
27
- return react16OnlySetTimeout(function () {
12
+ return window.setTimeout(function () {
28
13
  if (view !== null && view !== void 0 && view.hasFocus()) {
29
14
  return;
30
15
  }
@@ -57,5 +42,5 @@ function handleEditorFocus(view) {
57
42
  view.dispatch(tr);
58
43
  view.focus();
59
44
  }
60
- });
45
+ }, 0);
61
46
  }
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "204.0.0";
8
+ var version = exports.version = "204.0.2";
@@ -1,19 +1,9 @@
1
- import React from 'react';
2
1
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
2
  export function handleEditorFocus(view) {
5
3
  if (view !== null && view !== void 0 && view.hasFocus()) {
6
4
  return;
7
5
  }
8
-
9
- /**
10
- * If startTransition is available (in React 18),
11
- * don't use setTimeout as startTransition will be used in ReactEditorViewNext.
12
- * setTimeout(fn, 0) will not defer the focus reliably in React 18 with
13
- * concurrent rendering.
14
- */
15
- const react16OnlySetTimeout = React !== null && React !== void 0 && React.startTransition && fg('platform_editor_react_18_autofocus_fix') ? fn => fn() : fn => window.setTimeout(fn, 0);
16
- return react16OnlySetTimeout(() => {
6
+ return window.setTimeout(() => {
17
7
  if (view !== null && view !== void 0 && view.hasFocus()) {
18
8
  return;
19
9
  }
@@ -46,5 +36,5 @@ export function handleEditorFocus(view) {
46
36
  view.dispatch(tr);
47
37
  view.focus();
48
38
  }
49
- });
39
+ }, 0);
50
40
  }
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "204.0.0";
2
+ export const version = "204.0.2";
@@ -1,23 +1,9 @@
1
- import React from 'react';
2
1
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
2
  export function handleEditorFocus(view) {
5
3
  if (view !== null && view !== void 0 && view.hasFocus()) {
6
4
  return;
7
5
  }
8
-
9
- /**
10
- * If startTransition is available (in React 18),
11
- * don't use setTimeout as startTransition will be used in ReactEditorViewNext.
12
- * setTimeout(fn, 0) will not defer the focus reliably in React 18 with
13
- * concurrent rendering.
14
- */
15
- var react16OnlySetTimeout = React !== null && React !== void 0 && React.startTransition && fg('platform_editor_react_18_autofocus_fix') ? function (fn) {
16
- return fn();
17
- } : function (fn) {
18
- return window.setTimeout(fn, 0);
19
- };
20
- return react16OnlySetTimeout(function () {
6
+ return window.setTimeout(function () {
21
7
  if (view !== null && view !== void 0 && view.hasFocus()) {
22
8
  return;
23
9
  }
@@ -50,5 +36,5 @@ export function handleEditorFocus(view) {
50
36
  view.dispatch(tr);
51
37
  view.focus();
52
38
  }
53
- });
39
+ }, 0);
54
40
  }
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "204.0.0";
2
+ export var version = "204.0.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "204.0.0",
3
+ "version": "204.0.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -42,23 +42,23 @@
42
42
  "@atlaskit/analytics-namespaced-context": "^7.0.0",
43
43
  "@atlaskit/analytics-next": "^11.0.0",
44
44
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
45
- "@atlaskit/button": "^21.0.0",
46
- "@atlaskit/editor-common": "^100.0.0",
45
+ "@atlaskit/button": "^21.1.0",
46
+ "@atlaskit/editor-common": "^100.1.0",
47
47
  "@atlaskit/editor-json-transformer": "^8.23.0",
48
- "@atlaskit/editor-performance-metrics": "2.0.0",
48
+ "@atlaskit/editor-performance-metrics": "2.0.2",
49
49
  "@atlaskit/editor-plugin-quick-insert": "2.0.0",
50
50
  "@atlaskit/editor-plugins": "^8.0.0",
51
51
  "@atlaskit/editor-prosemirror": "7.0.0",
52
52
  "@atlaskit/editor-shared-styles": "^3.3.0",
53
53
  "@atlaskit/emoji": "^68.0.0",
54
- "@atlaskit/icon": "^24.0.0",
54
+ "@atlaskit/icon": "^24.1.0",
55
55
  "@atlaskit/media-card": "^79.0.0",
56
56
  "@atlaskit/mention": "^24.0.0",
57
57
  "@atlaskit/platform-feature-flags": "^1.1.0",
58
58
  "@atlaskit/react-ufo": "^3.0.0",
59
59
  "@atlaskit/task-decision": "^19.0.0",
60
- "@atlaskit/tmp-editor-statsig": "^3.0.0",
61
- "@atlaskit/tokens": "^4.0.0",
60
+ "@atlaskit/tmp-editor-statsig": "^3.2.0",
61
+ "@atlaskit/tokens": "^4.2.0",
62
62
  "@atlaskit/tooltip": "^20.0.0",
63
63
  "@atlaskit/width-detector": "^5.0.0",
64
64
  "@babel/runtime": "^7.0.0",
@@ -85,8 +85,8 @@
85
85
  "@af/visual-regression": "*",
86
86
  "@atlaskit/adf-utils": "^19.18.0",
87
87
  "@atlaskit/analytics-listeners": "^9.0.0",
88
- "@atlaskit/collab-provider": "10.7.2",
89
- "@atlaskit/editor-plugin-annotation": "2.0.0",
88
+ "@atlaskit/collab-provider": "10.7.3",
89
+ "@atlaskit/editor-plugin-annotation": "2.0.1",
90
90
  "@atlaskit/editor-plugin-card": "^5.0.0",
91
91
  "@atlaskit/editor-plugin-list": "^4.0.0",
92
92
  "@atlaskit/editor-plugin-paste": "^3.0.0",
@@ -96,7 +96,7 @@
96
96
  "@atlaskit/media-integration-test-helpers": "^4.0.0",
97
97
  "@atlaskit/media-test-helpers": "^35.0.0",
98
98
  "@atlaskit/modal-dialog": "^13.0.0",
99
- "@atlaskit/primitives": "^14.0.0",
99
+ "@atlaskit/primitives": "^14.1.0",
100
100
  "@atlaskit/renderer": "^113.0.0",
101
101
  "@atlaskit/smart-card": "^35.0.0",
102
102
  "@atlaskit/synchrony-test-helpers": "^3.1.0",
@@ -105,7 +105,7 @@
105
105
  "@atlaskit/visual-regression": "*",
106
106
  "@atlassian/adf-schema-json": "^1.27.0",
107
107
  "@atlassian/feature-flags-test-utils": "*",
108
- "@atlassian/search-provider": "3.0.38",
108
+ "@atlassian/search-provider": "3.0.39",
109
109
  "@emotion/jest": "^11.8.0",
110
110
  "@storybook/addon-knobs": "^6.4.0",
111
111
  "@testing-library/react": "^13.4.0",
@@ -217,16 +217,9 @@
217
217
  "type": "boolean",
218
218
  "referenceOnly": true
219
219
  },
220
- "platform_editor_annotation_react_18_mem_leak": {
221
- "type": "boolean",
222
- "referenceOnly": true
223
- },
224
220
  "platform_editor_ssr_fix_block_controls": {
225
221
  "type": "boolean"
226
222
  },
227
- "platform_editor_react18_mention_with_provider_fix": {
228
- "type": "boolean"
229
- },
230
223
  "platform_editor_ssr_fix_smartlinks": {
231
224
  "type": "boolean",
232
225
  "referenceOnly": true
@@ -239,9 +232,6 @@
239
232
  "type": "boolean",
240
233
  "referenceOnly": true
241
234
  },
242
- "platform_editor_react18_extension_component_v2": {
243
- "type": "boolean"
244
- },
245
235
  "platform_editor_heading_margin_fix": {
246
236
  "type": "boolean",
247
237
  "referenceOnly": true
@@ -476,6 +466,14 @@
476
466
  "platform_editor_nested_tables_bodied_extension_fix": {
477
467
  "type": "boolean",
478
468
  "referenceOnly": true
469
+ },
470
+ "platform_editor_nested_tables_resize_border_fix": {
471
+ "type": "boolean",
472
+ "referenceOnly": true
473
+ },
474
+ "platform_editor_nested_tables_column_drag_fix": {
475
+ "type": "boolean",
476
+ "referenceOnly": true
479
477
  }
480
478
  },
481
479
  "stricter": {