@atlaskit/editor-core 204.3.2 → 204.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,29 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 204.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#120472](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120472)
8
+ [`73c800ab5f2fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73c800ab5f2fc) -
9
+ ED-26766 update adf-schema from 47.2.1 to 47.6.0 and adf-schema-json from 1.27.0 to 1.31.0
10
+
11
+ ### Patch Changes
12
+
13
+ - [#119706](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/119706)
14
+ [`42fd258ba482e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/42fd258ba482e) -
15
+ ED-26704: enables editor node virtualization experiment
16
+ - Updated dependencies
17
+
18
+ ## 204.3.3
19
+
20
+ ### Patch Changes
21
+
22
+ - [#121098](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/121098)
23
+ [`61ec93eced435`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/61ec93eced435) -
24
+ Revert autofocus setTimeout changes.
25
+ - Updated dependencies
26
+
3
27
  ## 204.3.2
4
28
 
5
29
  ### Patch Changes
@@ -1,15 +1,30 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.handleEditorFocus = handleEditorFocus;
8
+ var _react = _interopRequireDefault(require("react"));
7
9
  var _state = require("@atlaskit/editor-prosemirror/state");
10
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
8
11
  function handleEditorFocus(view) {
9
12
  if (view !== null && view !== void 0 && view.hasFocus()) {
10
13
  return;
11
14
  }
12
- return window.setTimeout(function () {
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 () {
13
28
  if (view !== null && view !== void 0 && view.hasFocus()) {
14
29
  return;
15
30
  }
@@ -42,5 +57,5 @@ function handleEditorFocus(view) {
42
57
  view.dispatch(tr);
43
58
  view.focus();
44
59
  }
45
- }, 0);
60
+ });
46
61
  }
@@ -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.3.2";
8
+ var version = exports.version = "204.4.0";
@@ -1,9 +1,19 @@
1
+ import React from 'react';
1
2
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
2
4
  export function handleEditorFocus(view) {
3
5
  if (view !== null && view !== void 0 && view.hasFocus()) {
4
6
  return;
5
7
  }
6
- return window.setTimeout(() => {
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(() => {
7
17
  if (view !== null && view !== void 0 && view.hasFocus()) {
8
18
  return;
9
19
  }
@@ -36,5 +46,5 @@ export function handleEditorFocus(view) {
36
46
  view.dispatch(tr);
37
47
  view.focus();
38
48
  }
39
- }, 0);
49
+ });
40
50
  }
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "204.3.2";
2
+ export const version = "204.4.0";
@@ -1,9 +1,23 @@
1
+ import React from 'react';
1
2
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
3
+ import { fg } from '@atlaskit/platform-feature-flags';
2
4
  export function handleEditorFocus(view) {
3
5
  if (view !== null && view !== void 0 && view.hasFocus()) {
4
6
  return;
5
7
  }
6
- return window.setTimeout(function () {
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 () {
7
21
  if (view !== null && view !== void 0 && view.hasFocus()) {
8
22
  return;
9
23
  }
@@ -36,5 +50,5 @@ export function handleEditorFocus(view) {
36
50
  view.dispatch(tr);
37
51
  view.focus();
38
52
  }
39
- }, 0);
53
+ });
40
54
  }
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "204.3.2";
2
+ export var version = "204.4.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "204.3.2",
3
+ "version": "204.4.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,28 +40,28 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@atlaskit/activity-provider": "^2.5.0",
43
- "@atlaskit/adf-schema": "^47.2.1",
43
+ "@atlaskit/adf-schema": "^47.6.0",
44
44
  "@atlaskit/analytics-namespaced-context": "^7.0.0",
45
45
  "@atlaskit/analytics-next": "^11.0.0",
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
47
47
  "@atlaskit/button": "^21.1.0",
48
48
  "@atlaskit/css": "^0.10.0",
49
- "@atlaskit/editor-common": "^100.4.0",
50
- "@atlaskit/editor-json-transformer": "^8.23.0",
49
+ "@atlaskit/editor-common": "^100.5.0",
50
+ "@atlaskit/editor-json-transformer": "^8.24.0",
51
51
  "@atlaskit/editor-performance-metrics": "2.0.2",
52
- "@atlaskit/editor-plugin-quick-insert": "2.0.2",
52
+ "@atlaskit/editor-plugin-quick-insert": "2.0.3",
53
53
  "@atlaskit/editor-plugins": "^8.0.0",
54
54
  "@atlaskit/editor-prosemirror": "7.0.0",
55
55
  "@atlaskit/editor-shared-styles": "^3.4.0",
56
56
  "@atlaskit/emoji": "^68.0.0",
57
57
  "@atlaskit/icon": "^24.1.0",
58
58
  "@atlaskit/media-card": "^79.0.0",
59
- "@atlaskit/mention": "^24.0.0",
59
+ "@atlaskit/mention": "^24.1.0",
60
60
  "@atlaskit/platform-feature-flags": "^1.1.0",
61
- "@atlaskit/react-ufo": "^3.1.0",
61
+ "@atlaskit/react-ufo": "^3.2.0",
62
62
  "@atlaskit/task-decision": "^19.0.0",
63
- "@atlaskit/tmp-editor-statsig": "^3.3.0",
64
- "@atlaskit/tokens": "^4.2.0",
63
+ "@atlaskit/tmp-editor-statsig": "^3.4.0",
64
+ "@atlaskit/tokens": "^4.3.0",
65
65
  "@atlaskit/tooltip": "^20.0.0",
66
66
  "@atlaskit/width-detector": "^5.0.0",
67
67
  "@babel/runtime": "^7.0.0",
@@ -86,13 +86,13 @@
86
86
  "devDependencies": {
87
87
  "@af/editor-libra": "*",
88
88
  "@af/visual-regression": "*",
89
- "@atlaskit/adf-utils": "^19.18.0",
89
+ "@atlaskit/adf-utils": "^19.19.0",
90
90
  "@atlaskit/analytics-listeners": "^9.0.0",
91
- "@atlaskit/collab-provider": "10.8.0",
92
- "@atlaskit/editor-plugin-annotation": "2.0.2",
93
- "@atlaskit/editor-plugin-card": "^5.0.0",
94
- "@atlaskit/editor-plugin-list": "^4.0.0",
95
- "@atlaskit/editor-plugin-paste": "^3.0.0",
91
+ "@atlaskit/collab-provider": "10.9.0",
92
+ "@atlaskit/editor-plugin-annotation": "2.1.0",
93
+ "@atlaskit/editor-plugin-card": "^5.1.0",
94
+ "@atlaskit/editor-plugin-list": "^4.1.0",
95
+ "@atlaskit/editor-plugin-paste": "^3.1.0",
96
96
  "@atlaskit/link-provider": "^2.0.0",
97
97
  "@atlaskit/logo": "^16.0.0",
98
98
  "@atlaskit/media-core": "^35.0.0",
@@ -100,15 +100,15 @@
100
100
  "@atlaskit/media-test-helpers": "^35.0.0",
101
101
  "@atlaskit/modal-dialog": "^13.0.0",
102
102
  "@atlaskit/primitives": "^14.1.0",
103
- "@atlaskit/renderer": "^113.0.0",
103
+ "@atlaskit/renderer": "^113.1.0",
104
104
  "@atlaskit/smart-card": "^35.1.0",
105
105
  "@atlaskit/synchrony-test-helpers": "^3.1.0",
106
106
  "@atlaskit/toggle": "^15.0.0",
107
107
  "@atlaskit/util-data-test": "^18.0.0",
108
108
  "@atlaskit/visual-regression": "*",
109
- "@atlassian/adf-schema-json": "^1.27.0",
109
+ "@atlassian/adf-schema-json": "^1.31.0",
110
110
  "@atlassian/feature-flags-test-utils": "*",
111
- "@atlassian/search-provider": "3.0.39",
111
+ "@atlassian/search-provider": "3.0.40",
112
112
  "@emotion/jest": "^11.8.0",
113
113
  "@storybook/addon-knobs": "^6.4.0",
114
114
  "@testing-library/react": "^13.4.0",
@@ -404,10 +404,6 @@
404
404
  "type": "boolean",
405
405
  "referenceOnly": true
406
406
  },
407
- "platform_editor_lego__inline_node_virtualization": {
408
- "type": "boolean",
409
- "referenceOnly": true
410
- },
411
407
  "platform_editor_advanced_layouts_accessibility": {
412
408
  "type": "boolean",
413
409
  "referenceOnly": true
@@ -513,6 +509,10 @@
513
509
  "platform_editor_elements_dnd_multi_select_patch_1": {
514
510
  "type": "boolean",
515
511
  "referenceOnly": true
512
+ },
513
+ "platform_editor_table_column_selected_state_fix": {
514
+ "type": "boolean",
515
+ "referenceOnly": true
516
516
  }
517
517
  },
518
518
  "stricter": {