@atlaskit/editor-core 203.18.3 → 204.0.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,39 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 204.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#118064](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/118064)
8
+ [`4f4166d9ade1e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4f4166d9ade1e) -
9
+ EDF-2233: Reimplement setTimeout in React18 to revert to previous behaviour to avoid .contains
10
+ permission errors in iframes.
11
+ - Updated dependencies
12
+
13
+ ## 204.0.0
14
+
15
+ ### Major Changes
16
+
17
+ - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
18
+ [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
19
+ This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
20
+ status of only supporting React 18 going forward. No explicit breaking change to React support has
21
+ been made in this release, but this is to signify going forward, breaking changes for React 16 or
22
+ React 17 may come via non-major semver releases.
23
+
24
+ Please refer this community post for more details:
25
+ https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
26
+
27
+ ### Minor Changes
28
+
29
+ - [#116198](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/116198)
30
+ [`3f2a72e33616f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3f2a72e33616f) -
31
+ ED-26667 remove borders for the Editor status node
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies
36
+
3
37
  ## 203.18.3
4
38
 
5
39
  ### Patch 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
  }
@@ -22,4 +22,4 @@ var getVisualRefreshStatusStyles = function getVisualRefreshStatusStyles() {
22
22
  };
23
23
 
24
24
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
25
- var statusStyles = exports.statusStyles = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t.", ",\n\t\t.", ",\n\t\t[data-layout-section] {\n\t\t.", " {\n\t\t\tmax-width: 100%;\n\t\t\tline-height: 0;\n\n\t\t\t> span {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n\t.", " {\n\t\t> span {\n\t\t\tcursor: pointer;\n\t\t\tline-height: 0; /* Prevent responsive layouts increasing height of container. */\n\t\t}\n\n\t\t", "\n\n\t\t", "\n\t}\n\n\t.danger {\n\t\t.", " > span {\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t.", ".", "\n\t\t\t.", "\n\t\t\t> span {\n\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t}\n\t}\n"])), _styles.TableSharedCssClassName.TABLE_CELL_WRAPPER, _styles.TableSharedCssClassName.TABLE_HEADER_CELL_WRAPPER, _styles.StatusSharedCssClassName.STATUS_CONTAINER, _styles.StatusSharedCssClassName.STATUS_CONTAINER, (0, _styles.getStatusSharedStyles)(), getVisualRefreshStatusStyles(), _styles.StatusSharedCssClassName.STATUS_LOZENGE, _editorSharedStyles.akEditorDeleteBackgroundWithOpacity, _styles.StatusSharedCssClassName.STATUS_CONTAINER, _editorSharedStyles.akEditorSelectedNodeClassName, _styles.StatusSharedCssClassName.STATUS_LOZENGE, _editorSharedStyles.akEditorSelectedBorderSize, _editorSharedStyles.akEditorDeleteBorder);
25
+ var statusStyles = exports.statusStyles = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t.", ",\n\t\t.", ",\n\t\t[data-layout-section] {\n\t\t.", " {\n\t\t\tmax-width: 100%;\n\t\t\tline-height: 0;\n\n\t\t\t> span {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n\t.", " {\n\t\t> span {\n\t\t\tcursor: pointer;\n\t\t\tline-height: 0; /* Prevent responsive layouts increasing height of container. */\n\t\t}\n\n\t\t", "\n\t}\n\n\t.danger {\n\t\t.", " > span {\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t.", ".", "\n\t\t\t.", "\n\t\t\t> span {\n\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t}\n\t}\n"])), _styles.TableSharedCssClassName.TABLE_CELL_WRAPPER, _styles.TableSharedCssClassName.TABLE_HEADER_CELL_WRAPPER, _styles.StatusSharedCssClassName.STATUS_CONTAINER, _styles.StatusSharedCssClassName.STATUS_CONTAINER, getVisualRefreshStatusStyles(), _styles.StatusSharedCssClassName.STATUS_LOZENGE, _editorSharedStyles.akEditorDeleteBackgroundWithOpacity, _styles.StatusSharedCssClassName.STATUS_CONTAINER, _editorSharedStyles.akEditorSelectedNodeClassName, _styles.StatusSharedCssClassName.STATUS_LOZENGE, _editorSharedStyles.akEditorSelectedBorderSize, _editorSharedStyles.akEditorDeleteBorder);
@@ -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 = "203.18.3";
8
+ var version = exports.version = "204.0.1";
@@ -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,6 +1,6 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
- import { StatusSharedCssClassName, TableSharedCssClassName, getStatusSharedStyles } from '@atlaskit/editor-common/styles';
3
+ import { StatusSharedCssClassName, TableSharedCssClassName } from '@atlaskit/editor-common/styles';
4
4
  import { akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, akEditorSelectedBoldBoxShadow, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
5
5
  import { fg } from '@atlaskit/platform-feature-flags';
6
6
 
@@ -41,8 +41,6 @@ export const statusStyles = css`
41
41
  line-height: 0; /* Prevent responsive layouts increasing height of container. */
42
42
  }
43
43
 
44
- ${getStatusSharedStyles()}
45
-
46
44
  ${getVisualRefreshStatusStyles()}
47
45
  }
48
46
 
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "203.18.3";
2
+ export const version = "204.0.1";
@@ -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
  }
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject, _templateObject2, _templateObject3;
3
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
4
  import { css } from '@emotion/react';
5
- import { StatusSharedCssClassName, TableSharedCssClassName, getStatusSharedStyles } from '@atlaskit/editor-common/styles';
5
+ import { StatusSharedCssClassName, TableSharedCssClassName } from '@atlaskit/editor-common/styles';
6
6
  import { akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, akEditorSelectedBoldBoxShadow, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
8
 
@@ -17,4 +17,4 @@ var getVisualRefreshStatusStyles = function getVisualRefreshStatusStyles() {
17
17
  };
18
18
 
19
19
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
20
- export var statusStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t.", ",\n\t\t.", ",\n\t\t[data-layout-section] {\n\t\t.", " {\n\t\t\tmax-width: 100%;\n\t\t\tline-height: 0;\n\n\t\t\t> span {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n\t.", " {\n\t\t> span {\n\t\t\tcursor: pointer;\n\t\t\tline-height: 0; /* Prevent responsive layouts increasing height of container. */\n\t\t}\n\n\t\t", "\n\n\t\t", "\n\t}\n\n\t.danger {\n\t\t.", " > span {\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t.", ".", "\n\t\t\t.", "\n\t\t\t> span {\n\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t}\n\t}\n"])), TableSharedCssClassName.TABLE_CELL_WRAPPER, TableSharedCssClassName.TABLE_HEADER_CELL_WRAPPER, StatusSharedCssClassName.STATUS_CONTAINER, StatusSharedCssClassName.STATUS_CONTAINER, getStatusSharedStyles(), getVisualRefreshStatusStyles(), StatusSharedCssClassName.STATUS_LOZENGE, akEditorDeleteBackgroundWithOpacity, StatusSharedCssClassName.STATUS_CONTAINER, akEditorSelectedNodeClassName, StatusSharedCssClassName.STATUS_LOZENGE, akEditorSelectedBorderSize, akEditorDeleteBorder);
20
+ export var statusStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t.", ",\n\t\t.", ",\n\t\t[data-layout-section] {\n\t\t.", " {\n\t\t\tmax-width: 100%;\n\t\t\tline-height: 0;\n\n\t\t\t> span {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n\t.", " {\n\t\t> span {\n\t\t\tcursor: pointer;\n\t\t\tline-height: 0; /* Prevent responsive layouts increasing height of container. */\n\t\t}\n\n\t\t", "\n\t}\n\n\t.danger {\n\t\t.", " > span {\n\t\t\tbackground-color: ", ";\n\t\t}\n\n\t\t.", ".", "\n\t\t\t.", "\n\t\t\t> span {\n\t\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\t}\n\t}\n"])), TableSharedCssClassName.TABLE_CELL_WRAPPER, TableSharedCssClassName.TABLE_HEADER_CELL_WRAPPER, StatusSharedCssClassName.STATUS_CONTAINER, StatusSharedCssClassName.STATUS_CONTAINER, getVisualRefreshStatusStyles(), StatusSharedCssClassName.STATUS_LOZENGE, akEditorDeleteBackgroundWithOpacity, StatusSharedCssClassName.STATUS_CONTAINER, akEditorSelectedNodeClassName, StatusSharedCssClassName.STATUS_LOZENGE, akEditorSelectedBorderSize, akEditorDeleteBorder);
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "203.18.3";
2
+ export var version = "204.0.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "203.18.3",
3
+ "version": "204.0.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,28 +39,28 @@
39
39
  "dependencies": {
40
40
  "@atlaskit/activity-provider": "^2.5.0",
41
41
  "@atlaskit/adf-schema": "^47.2.1",
42
- "@atlaskit/analytics-namespaced-context": "^6.14.0",
43
- "@atlaskit/analytics-next": "^10.3.0",
42
+ "@atlaskit/analytics-namespaced-context": "^7.0.0",
43
+ "@atlaskit/analytics-next": "^11.0.0",
44
44
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
45
- "@atlaskit/button": "^20.5.0",
46
- "@atlaskit/editor-common": "^99.19.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": "1.5.1",
49
- "@atlaskit/editor-plugin-quick-insert": "1.10.2",
50
- "@atlaskit/editor-plugins": "^7.2.0",
48
+ "@atlaskit/editor-performance-metrics": "2.0.1",
49
+ "@atlaskit/editor-plugin-quick-insert": "2.0.0",
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
- "@atlaskit/emoji": "^67.14.0",
54
- "@atlaskit/icon": "^23.11.0",
55
- "@atlaskit/media-card": "^78.19.0",
56
- "@atlaskit/mention": "^23.11.0",
53
+ "@atlaskit/emoji": "^68.0.0",
54
+ "@atlaskit/icon": "^24.0.0",
55
+ "@atlaskit/media-card": "^79.0.0",
56
+ "@atlaskit/mention": "^24.0.0",
57
57
  "@atlaskit/platform-feature-flags": "^1.1.0",
58
- "@atlaskit/react-ufo": "^2.16.0",
59
- "@atlaskit/task-decision": "^18.0.0",
60
- "@atlaskit/tmp-editor-statsig": "^2.47.0",
61
- "@atlaskit/tokens": "^3.3.0",
62
- "@atlaskit/tooltip": "^19.2.0",
63
- "@atlaskit/width-detector": "^4.4.0",
58
+ "@atlaskit/react-ufo": "^3.0.0",
59
+ "@atlaskit/task-decision": "^19.0.0",
60
+ "@atlaskit/tmp-editor-statsig": "^3.1.0",
61
+ "@atlaskit/tokens": "^4.1.0",
62
+ "@atlaskit/tooltip": "^20.0.0",
63
+ "@atlaskit/width-detector": "^5.0.0",
64
64
  "@babel/runtime": "^7.0.0",
65
65
  "@emotion/react": "^11.7.1",
66
66
  "@types/react-loadable": "^5.4.1",
@@ -74,38 +74,38 @@
74
74
  "uuid": "^3.1.0"
75
75
  },
76
76
  "peerDependencies": {
77
- "@atlaskit/link-provider": "^1.17.0",
78
- "@atlaskit/media-core": "^34.3.0",
79
- "react": "^16.8.0 || ^17.0.0 || ~18.2.0",
80
- "react-dom": "^16.8.0 || ^17.0.0 || ~18.2.0",
77
+ "@atlaskit/link-provider": "^2.0.0",
78
+ "@atlaskit/media-core": "^35.0.0",
79
+ "react": "^18.2.0",
80
+ "react-dom": "^18.2.0",
81
81
  "react-intl-next": "npm:react-intl@^5.18.1"
82
82
  },
83
83
  "devDependencies": {
84
84
  "@af/editor-libra": "*",
85
85
  "@af/visual-regression": "*",
86
86
  "@atlaskit/adf-utils": "^19.18.0",
87
- "@atlaskit/analytics-listeners": "^8.15.0",
88
- "@atlaskit/collab-provider": "10.7.1",
89
- "@atlaskit/editor-plugin-annotation": "1.28.1",
90
- "@atlaskit/editor-plugin-card": "^4.6.0",
91
- "@atlaskit/editor-plugin-list": "^3.10.0",
92
- "@atlaskit/editor-plugin-paste": "^2.3.0",
93
- "@atlaskit/link-provider": "^1.19.0",
94
- "@atlaskit/logo": "^15.4.0",
95
- "@atlaskit/media-core": "^34.5.0",
96
- "@atlaskit/media-integration-test-helpers": "^3.1.0",
97
- "@atlaskit/media-test-helpers": "^34.8.0",
98
- "@atlaskit/modal-dialog": "^12.20.0",
99
- "@atlaskit/primitives": "^13.6.0",
100
- "@atlaskit/renderer": "^112.15.0",
101
- "@atlaskit/smart-card": "^34.11.0",
87
+ "@atlaskit/analytics-listeners": "^9.0.0",
88
+ "@atlaskit/collab-provider": "10.7.2",
89
+ "@atlaskit/editor-plugin-annotation": "2.0.0",
90
+ "@atlaskit/editor-plugin-card": "^5.0.0",
91
+ "@atlaskit/editor-plugin-list": "^4.0.0",
92
+ "@atlaskit/editor-plugin-paste": "^3.0.0",
93
+ "@atlaskit/link-provider": "^2.0.0",
94
+ "@atlaskit/logo": "^16.0.0",
95
+ "@atlaskit/media-core": "^35.0.0",
96
+ "@atlaskit/media-integration-test-helpers": "^4.0.0",
97
+ "@atlaskit/media-test-helpers": "^35.0.0",
98
+ "@atlaskit/modal-dialog": "^13.0.0",
99
+ "@atlaskit/primitives": "^14.0.0",
100
+ "@atlaskit/renderer": "^113.0.0",
101
+ "@atlaskit/smart-card": "^35.0.0",
102
102
  "@atlaskit/synchrony-test-helpers": "^3.1.0",
103
- "@atlaskit/toggle": "^14.2.0",
103
+ "@atlaskit/toggle": "^15.0.0",
104
104
  "@atlaskit/util-data-test": "^18.0.0",
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.37",
108
+ "@atlassian/search-provider": "3.0.38",
109
109
  "@emotion/jest": "^11.8.0",
110
110
  "@storybook/addon-knobs": "^6.4.0",
111
111
  "@testing-library/react": "^13.4.0",
@@ -476,6 +476,10 @@
476
476
  "platform_editor_nested_tables_bodied_extension_fix": {
477
477
  "type": "boolean",
478
478
  "referenceOnly": true
479
+ },
480
+ "platform_editor_nested_tables_resize_border_fix": {
481
+ "type": "boolean",
482
+ "referenceOnly": true
479
483
  }
480
484
  },
481
485
  "stricter": {